-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from dolthub/taylor/storybook
components: Up storybook to v8
- Loading branch information
Showing
5 changed files
with
952 additions
and
3,257 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
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,71 @@ | ||
import { Meta, ColorPalette, ColorItem } from "@storybook/blocks"; | ||
import { staticColors, baseColorVariableValues } from "../tailwind/theme/base/colors" | ||
import { colors as dolthubColors } from "../tailwind/theme/dolthub/colors" | ||
import { tailwindColorTheme as hostedTailwindColorTheme, colors as hostedColors } from "../tailwind/theme/hosted/colors" | ||
import { tailwindColorTheme as workbenchTailwindColorTheme, colors as workbenchColors } from "../tailwind/theme/workbench/colors" | ||
|
||
<Meta title="Colors" /> | ||
|
||
# Colors | ||
|
||
Colors we use in our design system. | ||
|
||
## Base Colors | ||
|
||
<ColorPalette> | ||
{Object.entries(staticColors).map(([k, v], i) => { | ||
return ( | ||
<ColorItem key={i} title={k} colors={[v]} /> | ||
) | ||
})} | ||
</ColorPalette> | ||
|
||
## Theme Colors | ||
|
||
Colors with <code>(c)</code> share a name among all themes but have different values. | ||
|
||
### DoltHub | ||
|
||
<ColorPalette> | ||
{Object.entries(baseColorVariableValues).map(([k, v], i) => { | ||
return ( | ||
<ColorItem key={i} title={`${k.replace("rgb-", "")} (c)`} colors={[`rgba(${v})`]} /> | ||
) | ||
})} | ||
{Object.entries(dolthubColors).map(([k, v], i) => { | ||
return ( | ||
<ColorItem key={i} title={k} colors={[v]} /> | ||
) | ||
})} | ||
</ColorPalette> | ||
|
||
### Hosted | ||
|
||
<ColorPalette> | ||
{Object.entries(hostedTailwindColorTheme).map(([k, v], i) => { | ||
return ( | ||
<ColorItem key={i} title={`${k.replace("rgb-", "")} (c)`} colors={[`rgba(${v})`]} /> | ||
) | ||
})} | ||
{Object.entries(hostedColors).map(([k, v], i) => { | ||
return ( | ||
<ColorItem key={i} title={k} colors={[v]} /> | ||
) | ||
})} | ||
</ColorPalette> | ||
|
||
### Workbench | ||
|
||
<ColorPalette> | ||
{Object.entries(workbenchTailwindColorTheme).map(([k, v], i) => { | ||
return ( | ||
<ColorItem key={i} title={`${k.replace("rgb-", "")} (c)`} colors={[`rgba(${v})`]} /> | ||
) | ||
})} | ||
{Object.entries(workbenchColors).map(([k, v], i) => { | ||
return ( | ||
<ColorItem key={i} title={k} colors={[v]} /> | ||
) | ||
})} | ||
</ColorPalette> | ||
|
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
Oops, something went wrong.