Skip to content

Commit 777b4bb

Browse files
committed
fix(css): ajout d'un thème sombre
1 parent a761d85 commit 777b4bb

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

app/css/styles.css

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,42 @@
2121
--color-text: black;
2222
--color-bg: #fff;
2323
--color-light: grey;
24+
--color-lighter: rgb(0 0 0 / 20%);
2425
--color-ultra-light: rgb(255 255 255 / 25%);
2526
--color-link: darkblue;
2627
}
2728

29+
@media (prefers-color-scheme: dark) {
30+
:root {
31+
--body-bg: #171919;
32+
--h1-bg: #171919;
33+
--main-bg: linear-gradient(
34+
90deg,
35+
#1e2021,
36+
#202223,
37+
#222425,
38+
#242627,
39+
#272929
40+
);
41+
--main-border-color: transparent;
42+
--controls-bg: #171919;
43+
--color-text: #e0ddd7;
44+
--color-bg: #171919;
45+
--color-light: #888;
46+
--color-lighter: rgb(255 255 255 / 20%);
47+
--color-ultra-light: rgb(0 0 0 / 10%);
48+
--color-link: #6eb4ff;
49+
}
50+
.messageOptions a {
51+
--color-light: #444 !important;
52+
}
53+
.admonition {
54+
--info-color-title: white !important;
55+
--success-color-title: white !important;
56+
--warning-color-title: white !important;
57+
}
58+
}
59+
2860
body {
2961
margin: 0;
3062
display: flex;
@@ -103,7 +135,7 @@ main {
103135

104136
#input-container {
105137
width: 95%;
106-
border: 1px solid rgba(0, 0, 0, 0.2);
138+
border: 1px solid var(--color-lighter);
107139
background: var(--color-bg);
108140
min-height: 2em;
109141
max-height: 3em;

app/css/styles.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)