Skip to content

Commit db60f8d

Browse files
committed
Add dark mode support with updated color variables in SpeedStack.css
1 parent f0e580b commit db60f8d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/SpeedStack.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,36 @@ html {
8080
--board-max-width: 350px;
8181
}
8282

83+
@media (prefers-color-scheme: dark) {
84+
:root {
85+
/* Base colors */
86+
--color-black: #e8e8e8;
87+
--color-gray-dark: #b0b0b0;
88+
--color-gray-medium: #505050;
89+
--color-gray-light: #404040;
90+
--color-gray-lighter: #2a2a2a;
91+
--color-gray-lightest: #1f1f1f;
92+
--color-white: #1a1a1a;
93+
--color-white-semi: #222222;
94+
95+
/* Semantic colors */
96+
--color-text-primary: var(--color-black);
97+
--color-text-secondary: var(--color-gray-dark);
98+
--color-bg-primary: var(--color-white);
99+
--color-bg-secondary: var(--color-gray-lightest);
100+
--color-bg-tertiary: var(--color-gray-lighter);
101+
--color-bg-hover: var(--color-white-semi);
102+
--color-border: var(--color-gray-medium);
103+
--color-border-light: var(--color-gray-light);
104+
--color-accent: var(--color-black);
105+
--color-accent-hover: #d0d0d0;
106+
--color-accent-active: #ffffff;
107+
108+
/* Overlays */
109+
--overlay-bg: rgba(0, 0, 0, 0.7);
110+
}
111+
}
112+
83113
.speed-stack {
84114
display: flex;
85115
flex-direction: column;

0 commit comments

Comments
 (0)