Skip to content

Commit d9c63c0

Browse files
committed
wrap app with div that assigns dark-theme and light-theme class names
1 parent aee1ec0 commit d9c63c0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/Viewer/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
background-color: #2C2F38;
3838
}
3939

40-
.dark-theme .overlay-content {
40+
.dark-theme .overlay-content.active {
4141
color: #8b91ff;
4242
}

src/style/themeRoot.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export function ThemeRoot({ children }: { children: React.ReactNode }) {
1818

1919
return (
2020
<ConfigProvider theme={isDark ? darkTheme : lightTheme}>
21-
{children}
21+
<div className={isDark ? "dark-theme" : "light-theme"}>
22+
{children}
23+
</div>
2224
</ConfigProvider>
2325
);
2426
}

0 commit comments

Comments
 (0)