🧑💻(tokens) add getThemesFromGlobals utils
Export a new util method `getThemesFromGlobals` to easily generate theme with its variant only by providing a partial globals object. By default it returns both available theme variants (light & dark). Through options you can prefix variant property keys, only generate theme with a subset of variant and also overrides/extend theme.
This commit is contained in:
committed by
Jean-Baptiste PENRATH
parent
fe8eb4b802
commit
db26e21b88
2
.gitignore
vendored
2
.gitignore
vendored
@@ -33,4 +33,6 @@ env.d
|
||||
.turbo
|
||||
ghpages-output
|
||||
|
||||
# Project ignore files
|
||||
packages/react/chromatic.config.json
|
||||
packages/tokens/src/lib/cunningham.ts
|
||||
|
||||
Reference in New Issue
Block a user