Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 677
Theming for css with primitives#3238
New issue
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
3f1248903bb2e4b7b0da2a0643a00f0c16b8d2f89ebe2df334712900ee53819eede7dac18b4427c6d44f9a07bcde6b0848a3531aa4402437File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| @import '@primer/css/dist/primitives.css'; | ||
| @import '@primer/css/dist/color-modes.css'; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| /* size/typography */ | ||
| @import '@primer/primitives/tokens-next-private/css/base/size/size.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/base/typography/typography.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/size/border.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/size/breakpoints.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/size/size-coarse.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/size/size-fine.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/size/size.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/size/viewport.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/typography/typography.css'; | ||
| /* color */ | ||
| @import '@primer/primitives/tokens-next-private/css/functional/themes/light.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/themes/light-tritanopia.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/themes/light-high-contrast.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/themes/light-colorblind.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/themes/dark.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/themes/dark-colorblind.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/themes/dark-dimmed.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/themes/dark-high-contrast.css'; | ||
| @import '@primer/primitives/tokens-next-private/css/functional/themes/dark-tritanopia.css'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im a little confused about "day" and "night". Can we standardize on just using light/dark/auto? https://github.com/primer/primitives/blob/main/docs/storybook/.storybook/preview.js#L35
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would love to 😭 but we've been stuck with this for a while for backward compatibility. Created an issue to deprecate them in next major release