Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
Some components such as Typography have a color
, bg
/backgroundColor
and opacity
props, this functionality is provided by styled-system/color
.
You can use a CSS string, the name of a palette colour or design tokens.
Using the name of a palette color ensures if we update the theme your components will also be updated, for this reason we advise not using a CSS string.
Hex | Palette Color | Tint | Shade | Opacity |
---|---|---|---|---|
#00DC00 | brilliantGreen | brilliantGreenTint | brilliantGreenShade | ❌ |
#E96400 | carrotOrange | carrotOrangeTint | carrotOrangeShade | ❌ |
#C7384F | errorRed | errorRedTint | errorRedShade | ❌ |
#009900 | genericGreen | genericGreenTint | genericGreenShade | ❌ |
#FFB500 | gold | goldTint | goldShade | ❌ |
#00A376 | productGreen | productGreenTint | productShade | ❌ |
#0077C8 | productBlue | productBlueTint | productBlueShade | ❌ |
#004B87 | navyBlue | navyBlueTint | navyBlueShade | ❌ |
#582C83 | amethyst | amethystTint | amethystShade | ❌ |
#8246AF | plum | plumTint | plumShade | ❌ |
#003349 | slate | slateTint | slateShade | ❌ |
#000000 | ❌ | ❌ | ❌ | blackOpacity |
#ffffff | ❌ | ❌ | ❌ | whiteOpacity |
Tint, Shade and Opacity properties must be followed by a number.
Where there is a collision between CSS strings and the palette color (e.g. gold) the palette color takes presedence.
Using design tokens ensures visual consistency across the application and means that we will always have up-to-date values, if the colors are updated by designers using design tools.
The name of the chosen design token must be always preceded by --
, for example, if we want to use colorsYang100
token in our code, we have to pass --colorsYang100
as a prop. See Design Tokens documentation for more information.