Skip to content

Commit bb0f2ae

Browse files
committed
implements support for multiple light/dark theme in django
1 parent 04b8104 commit bb0f2ae

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

image_uploader_widget/static/widgets/image_uploader_widget.css

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
body {
2-
--iuw-background: #121212;
3-
--iuw-color: #FFF;
4-
--iuw-border-color: #CCC;
2+
--iuw-background: #ffffff;
3+
--iuw-color: #222;
4+
--iuw-border-color: #222;
55
--iuw-item-background-color: #CCC;
6-
--iuw-item-foreground-color: #121212;
6+
--iuw-item-foreground-color: #222;
7+
}
8+
@media (prefers-color-scheme: dark) {
9+
body {
10+
--iuw-background: #121212;
11+
--iuw-color: #FFF;
12+
--iuw-border-color: #CCC;
13+
--iuw-item-background-color: #CCC;
14+
--iuw-item-foreground-color: #121212;
15+
}
716
}
817
.iuw-root,
918
.iuw-inline-root {

0 commit comments

Comments
 (0)