Skip to content

Commit

Permalink
feat(google): split flavor variable into light and dark
Browse files Browse the repository at this point in the history
This splits the flavor variable into light and dark flavors that can be selected
independently by the user.

The userstyle version is also bumped to 0.1.2.
  • Loading branch information
Kardyne committed Dec 25, 2023
1 parent 6d7ddeb commit 49eb3e5
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions styles/google/catppuccin.user.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
@name Google Catppuccin
@namespace github.com/catppuccin/userstyles/styles/google
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/google
@version 0.1.1
@version 0.1.2
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/google/catppuccin.user.css
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Agoogle
@description Soothing pastel theme for Google
@author Catppuccin
@license MIT
@preprocessor less
@var select flavor "Flavor" ["latte:Latte", "frappe:Frappe", "macchiato:Macchiato", "mocha:Mocha*"]
@var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappe", "macchiato:Macchiato", "mocha:Mocha"]
@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappe", "macchiato:Macchiato", "mocha:Mocha*"]
==/UserStyle== */

@-moz-document regexp("^https?://(www\\.|images\\.)?google\\..*")
Expand Down Expand Up @@ -1216,7 +1217,17 @@
color: @subtext0;
}
body {
#catppuccin(@flavor);
#catppuccin(@lightFlavor);
}
@media (prefers-color-scheme: light) {
body {
#catppuccin(@lightFlavor);
}
}
@media (prefers-color-scheme: dark) {
body {
#catppuccin(@darkFlavor);
}
}
}

Expand Down Expand Up @@ -1348,7 +1359,17 @@
}
}
body {
#catppuccin(@flavor);
#catppuccin(@lightFlavor);
}
@media (prefers-color-scheme: light) {
body {
#catppuccin(@lightFlavor);
}
}
@media (prefers-color-scheme: dark) {
body {
#catppuccin(@darkFlavor);
}
}
}

Expand Down

0 comments on commit 49eb3e5

Please sign in to comment.