feat: add auto theme mode
This commit is contained in:
parent
ab2d732ec5
commit
50640d0590
6 changed files with 39 additions and 15 deletions
|
@ -28,6 +28,23 @@ theme-toggle {
|
|||
stroke: var(--moon);
|
||||
}
|
||||
|
||||
& > .auto svg {
|
||||
& path:nth-of-type(3) {
|
||||
stroke: var(--moon);
|
||||
}
|
||||
|
||||
& path:nth-of-type(2),
|
||||
& path:nth-of-type(4),
|
||||
& path:nth-of-type(5),
|
||||
& path:nth-of-type(6) {
|
||||
stroke: var(--sun);
|
||||
}
|
||||
|
||||
& path:nth-of-type(7) {
|
||||
stroke: var(--twilight);
|
||||
}
|
||||
}
|
||||
|
||||
.light,
|
||||
.dark {
|
||||
display: none;
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
|
||||
--moon: #6a5acd;
|
||||
--sun: #ffa500;
|
||||
--twilight: #9e7485;
|
||||
|
||||
--article: light-dark(#007272, #00ffff);
|
||||
--about: light-dark(#e4513a, #ff967d);
|
||||
|
|
Reference in a new issue