Skip to content

Commit 6aa1d54

Browse files
authored
Update style.css
1 parent 1d8a32a commit 6aa1d54

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

style.css

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
.view-switcher a:hover,
3131
.view-switcher a:focus {
32-
background-color: rgba(var(--ctp-latte-overlay1-rgb)), 1);
32+
background-color: rgba(var(--ctp-latte-overlay1-rgb), 1); /* Latte hover/focus */
3333
padding: 8px 32px; /* Ensure the padding is the same on hover/focus */
3434
border-radius: 6px;
3535
}
@@ -46,13 +46,12 @@
4646
justify-content: center; /* Center the view switcher horizontally */
4747
align-items: center; /* Align items vertically in the center */
4848
height: 47px; /* Set the headerbar height to 47px */
49-
background-color: rgb(--ctp-latte-mantle-rgb);
5049
padding: 0; /* Remove padding around the header */
5150
width: 100%; /* Ensure the header bar spans the full width */
5251
}
5352

5453
body {
55-
background: rgb(var(--ctp-latte-base-rgb));
54+
background: rgb(var(--ctp-latte-base-rgb)); /* Default to latte theme */
5655
}
5756

5857
h1 {
@@ -74,3 +73,28 @@ h1 {
7473
font-family: InterVariable, sans-serif;
7574
}
7675
}
76+
77+
/* Dark mode styles */
78+
@media (prefers-color-scheme: dark) {
79+
/* View Switcher */
80+
.view-switcher a {
81+
color: rgb(var(--ctp-frappe-text-rgb)); /* Frappe text color */
82+
}
83+
84+
.view-switcher a:hover,
85+
.view-switcher a:focus {
86+
background-color: rgba(var(--ctp-frappe-overlay1-rgb), 1); /* Frappe hover/focus */
87+
}
88+
89+
.view-switcher .current {
90+
background-color: rgb(var(--ctp-frappe-crust-rgb)); /* Frappe current item */
91+
}
92+
93+
body {
94+
background: rgb(var(--ctp-frappe-base-rgb)); /* Frappe background */
95+
}
96+
97+
h1 {
98+
color: var(--ctp-frappe-lavender); /* Frappe lavender color */
99+
}
100+
}

0 commit comments

Comments
 (0)