Skip to content

Commit

Permalink
fix: prevent screen flash by loading css vars for both dark and light…
Browse files Browse the repository at this point in the history
… theme in initial load
  • Loading branch information
jeangovil committed Jun 12, 2023
1 parent 5496f40 commit f4f4e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/logos-docusaurus-theme/src/client/theme/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const useTheme = () => {
const useThemeCssVars = (theme: Theme, light: boolean = false) =>
useMemo(
() => css`
[data-theme='${light ? 'light' : 'dark'}'] {
[data-theme=${light ? 'light' : 'dark'}] {
${theme.cssVars}
}
`,
Expand Down

0 comments on commit f4f4e93

Please sign in to comment.