feat: auto switch dark-light themes

ref: #1
1-auto-switch-between-dark-and-light-theme
Lucas Colombo 11 months ago
parent c909a416b3
commit a4d75356eb
No known key found for this signature in database
GPG Key ID: EF34786CFEFFAE35

@ -12,6 +12,10 @@
![light theme](figs/light.png)
## `auto`
Switches between `dark` and `light` automatically based on the user's system preference.
## Usage
1. Clone this repo
@ -20,7 +24,7 @@
```ini
[ui]
THEMES=...,dark,light
THEMES=...,dark,light,auto
DEFAULT_THEME=dark # optional
```

@ -0,0 +1 @@
@import "./theme-light.css"(prefers-color-scheme:light);@import "./theme-dark.css"(prefers-color-scheme:dark);

@ -0,0 +1,2 @@
@import "./theme-light.css" (prefers-color-scheme: light);
@import "./theme-dark.css" (prefers-color-scheme: dark);
Loading…
Cancel
Save