-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat: allow token override with theme provider #5005
Conversation
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.
LGTM
@@ -110,6 +110,9 @@ const defaultPreview = { | |||
React.createElement(ThemeProvider, { | |||
key: 'theme-provider-decorator', | |||
theme: context.globals.theme, | |||
// tokensOverride: { |
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.
Should we keep this comment ?
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.
Was to have an example available somewhere but i agree it's not the best way to comment it
Size Change: +235 B (0%) Total Size: 13.4 MB
ℹ️ View Unchanged
|
What is the problem this PR is trying to solve?
We can't override some specific token using the theme provider
What is the chosen solution to this problem?
Allow to pass some css variables, for instance :
Please check if the PR fulfills these requirements
yarn changeset
to a request a release from the CI if wanted.[ ] This PR introduces a breaking change