diff --git a/pages/css/support/color-system.md b/pages/css/support/color-system.md index 7712879f..9448e93b 100644 --- a/pages/css/support/color-system.md +++ b/pages/css/support/color-system.md @@ -5,10 +5,12 @@ status: Stable status_issue: 'https://github.com/github/design-systems/issues/301' --- -import {Box, BorderBox, Flex, Link, Heading, Text} from '@primer/components' -import {gradientPalettes, gradientHues, variables} from '../../../docs/color-variables' -import {ColorVariable, FadeVariables, Var, overlayColor} from '../../../docs/color-system' -const {black, white} = variables +import {MarkdownHeading} from '@primer/blueprints' +import {Box, Link} from '@primer/components' +import Table from '../../../docs/Table' +import {palettes} from '../../../docs/color-variables' +import {Var, overlayColor} from '../../../docs/color-system' +const {Cell, Row} = Table # Table of contents @@ -17,7 +19,7 @@ const {black, white} = variables ## Color palette
- {gradientPalettes.map(({name, title, value, ...palette}) => ( + {palettes.map(({name, title, value, ...palette}) => ( {title} @@ -32,27 +34,55 @@ const {black, white} = variables ## Color variables -
- {gradientHues.map(hue => ( - + + + + + + + + + + + {palettes.map(({name, title, values}) => ( + + + + + {title} + + + + {values.map(({value, aliases, index, variable, slug}) => ( + + + ${variable} + + + {value} + + + {aliases.bg ? ( + <>.{aliases.bg}, + ) : null} + .bg-{slug} + + + {aliases.text ? ( + <>.{aliases.text}, + ) : null} + .color-{slug} + + {aliases.border ? ( + + ) : + ))} + ))} - - - - Black fades apply alpha transparency to the $black variable. The black color value has a slight - blue hue to match our grays. - - - - - - - White fades apply alpha transparency to the $white variable. - Below, these are shown overlaid on a $black background. - - - - +
VariableValueBackgroundForegroundBorder
+ .{aliases.border} + } +
## Color utilities