Skip to content

Commit

Permalink
feat(theme): support for scoped theme via data-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
CatsJuice committed May 14, 2024
1 parent c5f734b commit 053b389
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/theme/src/index.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ globalStyle(':root', {
vars: lightCssVariables,
});

globalStyle(':root[data-theme="dark"]', {
globalStyle('[data-theme="light"]', {
vars: lightCssVariables,
});

globalStyle('[data-theme="dark"]', {
vars: darkCssVariables,
});

0 comments on commit 053b389

Please sign in to comment.