Skip to content

Commit 21a293f

Browse files
Copilotpethers
andauthored
Fix class-based dark theme variant
Agent-Logs-Url: https://github.com/Hack23/cia-compliance-manager/sessions/8afb7db1-569b-4501-9612-e7adf0fb4c2d Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
1 parent ae1e20f commit 21a293f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/index.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
@import "./styles/light-theme.css";
1313
@import "./styles/dark-theme.css";
1414

15+
/* Use the app-controlled `.dark` class instead of OS color-scheme media queries. */
16+
@custom-variant dark (&:where(.dark, .dark *));
17+
1518
/* Global styles that use CSS variables */
1619
:root {
1720
/* Any global variables should be here, not outside a selector */

0 commit comments

Comments
 (0)