-
Notifications
You must be signed in to change notification settings - Fork 61
Expand color scale with custom steps #4458
Copy link
Copy link
Open
Labels
$ tokensEverything related to tokens and Work related to @digdir/designsystemet-themeEverything related to tokens and Work related to @digdir/designsystemet-theme🎨 theme-builderEverything related to our theme builderEverything related to our theme builder💡feature request
Description
Activity
Metadata
Metadata
Assignees
Labels
$ tokensEverything related to tokens and Work related to @digdir/designsystemet-themeEverything related to tokens and Work related to @digdir/designsystemet-theme🎨 theme-builderEverything related to our theme builderEverything related to our theme builder💡feature request
Type
Projects
- StatusShow more project fields📋 Todo
Description
There has been multiple feedback on the need of a color used for icons. Out thought when building the color system was that
text-subtleandtext-defaultwould be used. But in some cases there are a need to specificly control color for icons.Naming
Icon is a very narrow use case. We should find a name that is more generic, but still semantic enough so that users understand what is should be used for.
Breaking changes
It must be backwards compatible, if not it would have to wait until v.2. But best case is to not do anything that breaks anything in production.
Solutions
1. Add another token to our color scales.
Simple solution, but need to be thought trough to fit with the rest of our semantic scale. It should be obvious what the color is supposed to be used for.
Adding it to the end of our scale would not break anything. (I think) But needs to implemented in theme builder, CLI and config.
Downside
2. Alias tokens in the semantic layer
Another suggestion is to add a layer in the semantic/style. This would work as a way to connect one color from the color scale to an icon token.
Downside
3. Add custom steps to color scale
Let the user create custom steps with unique name and color value for their use cases.