Skip to content

Commit 20d1954

Browse files
fix(plugin-basic-ui): theme branching via :root's dataset (#459)
1 parent a29f142 commit 20d1954

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.changeset/weak-jobs-whisper.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@stackflow/plugin-basic-ui": minor
3+
---
4+
5+
theme branching via :root's dataset

extensions/plugin-basic-ui/src/basicUIPlugin.css.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,17 @@ export const cupertino = createTheme(globalVars, {
8888
...cupertinoValues,
8989
});
9090

91+
createGlobalTheme(
92+
":root[data-stackflow-plugin-basic-ui-theme=cupertino]",
93+
globalVars,
94+
cupertinoValues,
95+
);
96+
createGlobalTheme(
97+
":root[data-stackflow-plugin-basic-ui-theme=android]",
98+
globalVars,
99+
androidValues,
100+
);
101+
91102
export const stackWrapper = recipe({
92103
base: {},
93104
variants: {

0 commit comments

Comments
 (0)