Skip to content

Commit d99a2b4

Browse files
committed
Add dark/light theme toggle with styles
1 parent 3f93e84 commit d99a2b4

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

css/theme-dark.css

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* theme-dark.css */
2+
3+
body {
4+
background-color: #121212;
5+
color: #f1f1f1;
6+
}
7+
8+
a {
9+
color: #90caf9;
10+
}
11+
12+
.navbar {
13+
background-color: #1f1f1f;
14+
}
15+
16+
#tg-sb-sidebar {
17+
background-color: #1e1e1e;
18+
border-right: 1px solid #333;
19+
}
20+
21+
#tg-sb-content {
22+
background-color: #1a1a1a;
23+
}
24+
25+
pre, code {
26+
background-color: #2c2c2c;
27+
color: #e0e0e0;
28+
}

css/theme-light.css

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* theme-light.css */
2+
3+
body {
4+
background-color: #ffffff;
5+
color: #000000;
6+
}
7+
8+
a {
9+
color: #1a0dab;
10+
}
11+
12+
.navbar {
13+
background-color: #f8f9fa;
14+
}
15+
16+
#tg-sb-sidebar {
17+
background-color: #f1f1f1;
18+
border-right: 1px solid #ccc;
19+
}
20+
21+
#tg-sb-content {
22+
background-color: #ffffff;
23+
}
24+
25+
pre, code {
26+
background-color: #f5f5f5;
27+
color: #333333;
28+
}

0 commit comments

Comments
 (0)