-
-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(themes) Implementation idea on new design tokens handling
Until now themes could only describe each component variable. This made creating a theme difficult: we had to override all component variables (hundreds of them) if we wanted to change one color shade used globally. Here is an idea of a cssVars.designTokens prop that is a combination of current `colors`, `vars` and `theme` props: - all design tokens are overridable by a theme - colors are now named in a more abstract way so that it makes sense for a theme changing the primary color Everything is explained in details in the cssVars.designTokens comments
- Loading branch information
1 parent
b77bbf7
commit 2243fc8
Showing
6 changed files
with
1,266 additions
and
1,165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.