designsystemet icon indicating copy to clipboard operation
designsystemet copied to clipboard

Introduce a `colors` script in our cli

Open mimarz opened this issue 1 year ago • 2 comments

With our new token structure we have the feature of auto-generating color scales for accent color.

We want to add the logic for generating the color scales in the cli so we can re-use it several places such as figma plugins, websites or just as pure cli script.

The color function should have names props for each color definition. When exposed through the cli, the color set could be a comma separated string.

For example npx @digdir/designsystemet add-theme Altinn --colors "#0062BA, #1E2B3C, ##F45F63, #E5AA20, #1E98F5"

mimarz avatar Apr 26 '24 08:04 mimarz

Duplicate of #2085

mrosvik avatar Jun 03 '24 12:06 mrosvik

Re-opened as @Thuneer is going to move the logic for colors to cli/src/colors and this will be part of #2085

mimarz avatar Jun 05 '24 11:06 mimarz

This was solved by #2290

mimarz avatar Sep 19 '24 07:09 mimarz