mirror of
https://github.com/glassflame/glassflame.github.io.git
synced 2024-11-22 08:04:27 +00:00
Create basic style
This commit is contained in:
parent
edd7ffaffb
commit
df345593e5
3 changed files with 19 additions and 0 deletions
6
style/dark.css
Normal file
6
style/dark.css
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
--color-background: #1E1E1E;
|
||||||
|
--color-foreground: #FFFFFF;
|
||||||
|
}
|
||||||
|
}
|
7
style/index.css
Normal file
7
style/index.css
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
@import "./light.css";
|
||||||
|
@import "./dark.css";
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: var(--color-background);
|
||||||
|
color: var(--color-foreground);
|
||||||
|
}
|
6
style/light.css
Normal file
6
style/light.css
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
@media (prefers-color-scheme: light) {
|
||||||
|
:root {
|
||||||
|
--color-background: #FFFFFF;
|
||||||
|
--color-foreground: #1E1E1E;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue