mirror of
https://github.com/primer/css.git
synced 2024-11-30 01:04:04 +03:00
Adding note to color-systems doc
This commit is contained in:
parent
baf2db0d9d
commit
b501ecb0ac
@ -17,13 +17,11 @@ import {PaletteTable, PaletteCell, ColorModeTable, CSSModeVars, overlayColor} fr
|
||||
|
||||
The Primer color system contains multiple color modes; currently, Primer ships with a light mode and a dark mode. Each color mode comes with a set of CSS variables that can be used to style elements based on the functionality of the element. These should be used instead of specifying colors directly so that the colors adapt correctly when switching between color modes.
|
||||
|
||||
When at all possible, favor using [color utility classes](/utilities/colors) over using custom CSS to set colors.
|
||||
When at all possible, favor using [color utility classes](/utilities/colors) over using custom CSS to set colors. Because the new Primer CSS color system is based on *functional* colors, you should only use colors designed for the element you're applying them to. For example, text colors, which start with `--color-text-`, should not be used for icons, backgrounds, or any other non-text element.
|
||||
|
||||
<Flash scheme="yellow">
|
||||
|
||||
Note: because the new Primer CSS color system is based on *functional* colors, you should only use colors designed for the element you're applying them to. For example, text colors, which start with `--color-text-`, should not be used for icons, backgrounds, or any other non-text element.
|
||||
|
||||
</Flash>
|
||||
<Note>
|
||||
Please note Primer v16 has changed the naming of these color classes to *functional*. Check the migration guide to make sure your app is up to date.
|
||||
</Note>
|
||||
|
||||
### Text
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user