Skip to content

Commit

Permalink
fix: ensure that dark theme colors get written into the dom (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
wp-aberg authored Mar 26, 2024
1 parent f99b577 commit 9fb968e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ui/theme/src/stitches.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,16 @@ const _darkTheme = createTheme(`${prefix}-dark.${prefix}-dark`, {
});

export const darkTheme = {
className: `${prefix}-dark`,
get className() {
_darkTheme.className;
return `${prefix}-dark`;
},
selector: _darkTheme.selector,
colors: _darkTheme.colors,
toString: () => `${prefix}-dark`,
toString: () => {
_darkTheme.toString();
return `${prefix}-dark`;
},
};

export const globalStyles = globalCss({
Expand Down

0 comments on commit 9fb968e

Please sign in to comment.