Skip to content

Commit 106f89b

Browse files
committed
Add styles for light and dark modes
1 parent 835ef53 commit 106f89b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/assets/css/_example/_example.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
/* Example stylesheet */
2+
@media screen and (prefers-color-scheme: light), screen and (prefers-color-scheme: no-preference) {
3+
/*light theme*/
4+
body{
5+
color: black;
6+
background-color: white;
7+
}
8+
}
9+
10+
@media screen and (prefers-color-scheme: dark) {
11+
/*dark theme*/
12+
body {
13+
color: white;
14+
background-color: black;
15+
}
16+
}
217

318
h1 {
419
font-family: helvetica;

0 commit comments

Comments
 (0)