Commit db26e21
committed
π§βπ»(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.1 parent fe8eb4b commit db26e21
File tree
19 files changed
+1768
-2350
lines changed- .changeset
- apps/demo
- src
- packages/tokens
- src
- bin
- ThemeColors
- tests
- lib
- utils
19 files changed
+1768
-2350
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
| 38 | + | |
0 commit comments