-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: storybook missing assets (#1814)
- Loading branch information
1 parent
ae4d6ea
commit 54d2882
Showing
26 changed files
with
293 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import { create } from '@storybook/theming/create'; | ||
|
||
export const light = create({ | ||
base: 'light', | ||
|
||
colorPrimary: '#2d3232', | ||
colorSecondary: '#825fff', | ||
|
||
// UI | ||
appBg: 'white', | ||
appBorderColor: '#EAEBEE', | ||
appBorderRadius: 4, | ||
|
||
// Typography | ||
fontBase: | ||
"'Space Grotesk Frontify', Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'", | ||
fontCode: 'Menlo, Courier, monospace', | ||
|
||
// Text colors | ||
textColor: '#2d3232', | ||
|
||
// Toolbar default and active colors | ||
barTextColor: '#2d3232', | ||
barSelectedColor: '#2d3232', | ||
barBg: '#FFFFFF', | ||
|
||
// Form colors | ||
inputBg: '#FFFFFF', | ||
inputBorder: '#EAEBEE', | ||
inputTextColor: '#2d3232', | ||
inputBorderRadius: 4, | ||
|
||
brandTitle: 'Frontify Storybook', | ||
brandUrl: 'https://frontify.com', | ||
brandImage: '/img/logo-charcoal.svg', | ||
}); | ||
|
||
export const dark = create({ | ||
base: 'dark', | ||
|
||
colorPrimary: '#fafafa', | ||
colorSecondary: '#825fff', | ||
|
||
// UI | ||
appBg: '#1a1c1c', | ||
appBorderColor: '#424747', | ||
appBorderRadius: 4, | ||
|
||
// Typography | ||
fontBase: | ||
"'Space Grotesk Frontify', Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'", | ||
fontCode: 'Menlo, Courier, monospace', | ||
|
||
// Text colors | ||
textColor: '#fafafa', | ||
|
||
// Toolbar default and active colors | ||
barTextColor: '#fafafa', | ||
barSelectedColor: '#fafafa', | ||
barBg: '#1a1d1d', | ||
|
||
// Form colors | ||
inputBg: '#1a1c1c', | ||
inputBorder: '#424747', | ||
inputTextColor: '#fafafa', | ||
inputBorderRadius: 4, | ||
|
||
brandTitle: 'Frontify Storybook', | ||
brandUrl: 'https://frontify.com', | ||
brandImage: '/img/logo-white.svg', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Custom CSS for Storybook interface goes here --> | ||
<style> | ||
.sidebar-header { | ||
/* Center dropdown button */ | ||
align-items: center !important; | ||
} | ||
|
||
.sidebar-header img { | ||
/* Responsive sidebar header image */ | ||
width: 100%; | ||
max-width: 200px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* (c) Copyright Frontify Ltd., all rights reserved. */ | ||
|
||
import { addons } from '@storybook/manager-api'; | ||
import { light } from './frontifyTheme'; | ||
|
||
addons.setConfig({ | ||
theme: light, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
tailwindcss: {}, | ||
}, | ||
}; |
Binary file added
BIN
+35.6 KB
packages/components/.storybook/assets/fonts/SpaceGroteskFrontify-Bold.woff
Binary file not shown.
Binary file added
BIN
+28.3 KB
packages/components/.storybook/assets/fonts/SpaceGroteskFrontify-Bold.woff2
Binary file not shown.
Binary file added
BIN
+36.3 KB
packages/components/.storybook/assets/fonts/SpaceGroteskFrontify-Medium.woff
Binary file not shown.
Binary file added
BIN
+28.9 KB
packages/components/.storybook/assets/fonts/SpaceGroteskFrontify-Medium.woff2
Binary file not shown.
Binary file added
BIN
+36.7 KB
packages/components/.storybook/assets/fonts/SpaceGroteskFrontify-Regular.woff
Binary file not shown.
Binary file added
BIN
+29.3 KB
packages/components/.storybook/assets/fonts/SpaceGroteskFrontify-Regular.woff2
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import { create } from '@storybook/theming/create'; | ||
|
||
export const light = create({ | ||
base: 'light', | ||
|
||
colorPrimary: '#2d3232', | ||
colorSecondary: '#825fff', | ||
|
||
// UI | ||
appBg: 'white', | ||
appBorderColor: '#EAEBEE', | ||
appBorderRadius: 4, | ||
|
||
// Typography | ||
fontBase: | ||
"'Space Grotesk Frontify', Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'", | ||
fontCode: 'Menlo, Courier, monospace', | ||
|
||
// Text colors | ||
textColor: '#2d3232', | ||
|
||
// Toolbar default and active colors | ||
barTextColor: '#2d3232', | ||
barSelectedColor: '#2d3232', | ||
barBg: '#FFFFFF', | ||
|
||
// Form colors | ||
inputBg: '#FFFFFF', | ||
inputBorder: '#EAEBEE', | ||
inputTextColor: '#2d3232', | ||
inputBorderRadius: 4, | ||
|
||
brandTitle: 'Frontify Storybook', | ||
brandUrl: 'https://frontify.com', | ||
brandImage: '/img/logo-charcoal.svg', | ||
}); | ||
|
||
export const dark = create({ | ||
base: 'dark', | ||
|
||
colorPrimary: '#fafafa', | ||
colorSecondary: '#825fff', | ||
|
||
// UI | ||
appBg: '#1a1c1c', | ||
appBorderColor: '#424747', | ||
appBorderRadius: 4, | ||
|
||
// Typography | ||
fontBase: | ||
"'Space Grotesk Frontify', Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'", | ||
fontCode: 'Menlo, Courier, monospace', | ||
|
||
// Text colors | ||
textColor: '#fafafa', | ||
|
||
// Toolbar default and active colors | ||
barTextColor: '#fafafa', | ||
barSelectedColor: '#fafafa', | ||
barBg: '#1a1d1d', | ||
|
||
// Form colors | ||
inputBg: '#1a1c1c', | ||
inputBorder: '#424747', | ||
inputTextColor: '#fafafa', | ||
inputBorderRadius: 4, | ||
|
||
brandTitle: 'Frontify Storybook', | ||
brandUrl: 'https://frontify.com', | ||
brandImage: '/img/logo-white.svg', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Custom CSS for Storybook interface goes here --> | ||
<style> | ||
.sidebar-header { | ||
/* Center dropdown button */ | ||
align-items: center !important; | ||
} | ||
|
||
.sidebar-header img { | ||
/* Responsive sidebar header image */ | ||
width: 100%; | ||
max-width: 200px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* (c) Copyright Frontify Ltd., all rights reserved. */ | ||
|
||
import { addons } from '@storybook/manager-api'; | ||
import { light } from './frontifyTheme'; | ||
|
||
addons.setConfig({ | ||
theme: light, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<style> | ||
@font-face { | ||
font-display: swap; | ||
font-family: 'Space Grotesk Frontify'; | ||
font-style: normal; | ||
font-weight: 300; | ||
src: | ||
url('/fonts/SpaceGroteskFrontify-Light.woff2') format('woff2'), | ||
url('/fonts/SpaceGroteskFrontify-Light.woff') format('woff'); | ||
} | ||
|
||
@font-face { | ||
font-display: swap; | ||
font-family: 'Space Grotesk Frontify'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: | ||
url('/fonts/SpaceGroteskFrontify-Regular.woff2') format('woff2'), | ||
url('/fonts/SpaceGroteskFrontify-Regular.woff') format('woff'); | ||
} | ||
|
||
@font-face { | ||
font-display: swap; | ||
font-family: 'Space Grotesk Frontify'; | ||
font-style: normal; | ||
font-weight: 500; | ||
src: | ||
url('/fonts/SpaceGroteskFrontify-Medium.woff2') format('woff2'), | ||
url('/fonts/SpaceGroteskFrontify-Medium.woff') format('woff'); | ||
} | ||
|
||
@font-face { | ||
font-display: swap; | ||
font-family: 'Space Grotesk Frontify'; | ||
font-style: normal; | ||
font-weight: 600; | ||
src: | ||
url('/fonts/SpaceGroteskFrontify-SemiBold.woff2') format('woff2'), | ||
url('/fonts/SpaceGroteskFrontify-SemiBold.woff') format('woff'); | ||
} | ||
|
||
@font-face { | ||
font-display: swap; | ||
font-family: 'Space Grotesk Frontify'; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: | ||
url('/fonts/SpaceGroteskFrontify-Bold.woff2') format('woff2'), | ||
url('/fonts/SpaceGroteskFrontify-Bold.woff') format('woff'); | ||
} | ||
|
||
.side-by-side { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
height: 100%; | ||
min-height: 100vh; | ||
} | ||
|
||
.light.theme { | ||
background: white; | ||
padding: 1rem; | ||
} | ||
|
||
.tw-dark.theme { | ||
background: #1a1c1c; | ||
padding: 1rem; | ||
height: 100%; | ||
min-height: 100vh; | ||
} | ||
</style> | ||
|
||
<script> | ||
const global = globalThis; | ||
</script> |
Oops, something went wrong.