Skip to content

Commit

Permalink
[feature/themes] Add auto-switching themes for blurple/brutalist/sola…
Browse files Browse the repository at this point in the history
…rized (#3588)
  • Loading branch information
CDN authored Dec 2, 2024
1 parent 44b7bc7 commit dce85a2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions web/assets/themes/blurple-auto.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
theme-title: Blurple (auto)
theme-description: Official blurple theme that adapts to system preferences
*/

/* Default to dark theme */
@import url("blurple-dark.css");

@import url("blurple-light.css") screen and (prefers-color-scheme: light);
@import url("blurple-dark.css") screen and (prefers-color-scheme: dark);
10 changes: 10 additions & 0 deletions web/assets/themes/brutalist-auto.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
theme-title: Brutalist (auto)
theme-description: Official (Pseudo-)monochrome brutality theme that adapts to system preferences
*/

/* Default to brutalist theme */
@import url("brutalist.css");

@import url("brutalist.css") screen and (prefers-color-scheme: light);
@import url("brutalist-dark.css") screen and (prefers-color-scheme: dark);
10 changes: 10 additions & 0 deletions web/assets/themes/solarized-auto.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
theme-title: Solarized (auto)
theme-description: Solarized theme that adapts to system preferences
*/

/* Default to dark theme */
@import url("solarized-dark.css");

@import url("solarized-light.css") screen and (prefers-color-scheme: light);
@import url("solarized-dark.css") screen and (prefers-color-scheme: dark);

0 comments on commit dce85a2

Please sign in to comment.