We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make an internal component that automates documentation of a components "component tokens" to be used in Storybook (and Storefront in the future).
Notes:
import
Something along the lines of: Input CSS:
.ds-button { --dsc-button-background--active: var(--ds-color-accent-base-active); /** Button background */ … }
Component use:
import css from '@digidr/designsystemet-css/button' <ComponentTokens css={css} />
Rendered table:
--dsc-button-background--active
var(--ds-color-accent-base-active)
The text was updated successfully, but these errors were encountered:
I like this, but we should probably filter on --dsc-, and mark our internal variables with something like --dsci- (i for internal`)
--dsc-
--dsci-
i
Sorry, something went wrong.
Agree! Like the concept - good work 💪 and marking internal is a good suggestion @Barsnes 🙌
2a51c04
Barsnes
Successfully merging a pull request may close this issue.
Make an internal component that automates documentation of a components "component tokens" to be used in Storybook (and Storefront in the future).
Notes:
import
do the work and pass the content to the componentSomething along the lines of:
Input CSS:
Component use:
Rendered table:
--dsc-button-background--active
var(--ds-color-accent-base-active)
The text was updated successfully, but these errors were encountered: