Skip to content

Commit e033e34

Browse files
committed
feat: add color-scheme support for dark and light themes, and style selected options in UI
1 parent 6c99112 commit e033e34

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/styles/globals.css‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
:root,
66
html.theme-dark {
7+
color-scheme: dark;
78
--app-bg: #141824;
89
--surface: #1e2433;
910
--surface-light: #262d3d;
@@ -24,6 +25,7 @@ html.theme-dark {
2425
}
2526

2627
html.theme-light {
28+
color-scheme: light;
2729
--app-bg: #eef3fb;
2830
--surface: #f6f9ff;
2931
--surface-light: #edf3ff;
@@ -372,6 +374,11 @@ html.compact-widgets .widget-root {
372374
padding: 6px 10px;
373375
}
374376

377+
.ui-select option:checked {
378+
background: var(--surface-hover);
379+
color: var(--text-primary);
380+
}
381+
375382
.ui-range {
376383
-webkit-appearance: none;
377384
appearance: none;

0 commit comments

Comments
 (0)