Skip to content

Commit

Permalink
feat(theme): support for scoped theme via data-theme (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
CatsJuice authored May 18, 2024
1 parent c271f71 commit 04adbc2
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 04adbc2

Please sign in to comment.