Skip to content

Commit ed236bb

Browse files
committed
adjust theme dropdown
1 parent 72395ba commit ed236bb

1 file changed

Lines changed: 37 additions & 13 deletions

File tree

shared/styles.css

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
:root {
2-
--bg: #ffffff;
3-
--fg: #1a1a1a;
4-
--border: #e0e0e0;
5-
--subtle: #666;
6-
--accent: #27ae60;
7-
--shadow: rgba(0, 0, 0, 0.1);
8-
2+
/* User Customizable Colors - Set by colorManager */
3+
--user-bg: #eff1f5;
4+
--user-fg: #4c4f69;
5+
--user-accent: #1e66f5;
6+
--user-border: #dce0e8;
7+
--user-subtle: #8c8fa1;
8+
--user-shadow: rgba(220, 224, 232, 0.5);
9+
10+
/* Derived Colors - Use user colors */
11+
--bg: var(--user-bg);
12+
--fg: var(--user-fg);
13+
--accent: var(--user-accent);
14+
--border: var(--user-border);
15+
--subtle: var(--user-subtle);
16+
--shadow: var(--user-shadow);
17+
18+
/* Font & Layout */
919
--font-ui: ui-monospace, SFMono-Regular, Menlo, monospace;
1020
--font-body: "Georgia", serif;
1121
--measure: 65ch;
@@ -14,11 +24,12 @@
1424
}
1525

1626
[data-theme="dark"] {
17-
--bg: #111111;
18-
--fg: #f0f0f0;
19-
--border: #333333;
20-
--subtle: #888;
21-
--shadow: rgba(0, 0, 0, 0.5);
27+
--user-bg: #303446;
28+
--user-fg: #c6d0f5;
29+
--user-accent: #8caaee;
30+
--user-border: #51576d;
31+
--user-subtle: #838ba7;
32+
--user-shadow: rgba(30, 32, 48, 0.5);
2233
}
2334

2435
*,
@@ -221,7 +232,20 @@ textarea:focus {
221232
/* font-size: 0.85rem; */
222233
}
223234

224-
#font-family:focus {
235+
#font-family:focus,
236+
#theme-selector:focus {
225237
outline: none;
226238
border-color: var(--subtle);
239+
}
240+
241+
#theme-selector {
242+
width: 100%;
243+
padding: 0.25rem 0.5rem;
244+
background: var(--bg);
245+
color: var(--fg);
246+
border: 1px solid var(--border);
247+
border-radius: 4px;
248+
cursor: pointer;
249+
font-family: var(--font-ui);
250+
/* font-size: 0.85rem; */
227251
}

0 commit comments

Comments
 (0)