Skip to content

Commit

Permalink
fix: themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Niznikr committed Nov 5, 2024
1 parent 1f4db51 commit 67aecdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/tokens/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ sd.registerFormat({
});
});

const defaultTokens = `${header}:root, [data-theme='default'] {\n${dictionary.allTokens
const defaultTokens = `${header}:root, [data-theme] {\n${dictionary.allTokens
.filter((token) => !!token.$value)
.map(formatProperty)
.join('\n')}\n}\n`;
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/stories/theme.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const NestedThemes = {
<p>Currently, we are in a default mode context.</p>
<Button>Click me</Button>

<div data-theme={context.globals.theme === 'default' ? 'dark' : 'default'}>
<div data-theme={context.globals.theme === 'dark' ? 'default' : 'dark'}>
<div
style={{
backgroundColor: 'var(--lp-color-bg-ui-primary)',
Expand Down

0 comments on commit 67aecdc

Please sign in to comment.