Skip to content

feat(css): postcss-parse-data-color - #5394

Draft
eirikbacker wants to merge 9 commits into
mainfrom
feat/postcss-parse-data-color
Draft

eirikbacker wants to merge 9 commits into
mainfrom
feat/postcss-parse-data-color

Conversation

@eirikbacker

@eirikbacker eirikbacker commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor
  • POC to test tokens parsing i CSS, made robust by postcss ™
  • Related to Use CSS file as config for Designsystemet CLI #5104
  • Calculates colors in pure CSS
  • Generates a JSON of tokens both for color, size and other --ds- props
  • Aguments --ds-color-*--(light|dark) automatically to [data-color="SCALE"]
    • Note; in theory, stuff like @media(max-width: 400px) { [data-color="danger"] { --ds-color: tomato } } is now possible, but since Figma can not replicate this, we now keep the augmenting to top level only :)

@eirikbacker eirikbacker self-assigned this Sep 18, 2026
@changeset-bot

changeset-bot Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 043ad46

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployments for this pull request:

storybook - 28. Sep 2026 - 13:40

themebuilder - 28. Sep 2026 - 13:40

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants