diff --git a/scripts/userstyles.yml b/scripts/userstyles.yml index 57c1872f88..0099c370cf 100644 --- a/scripts/userstyles.yml +++ b/scripts/userstyles.yml @@ -873,6 +873,14 @@ userstyles: icon: snapchat color: yellow current-maintainers: [*itzTheMeow] + snips-sh: + name: snips.sh + link: https://snips.sh + categories: [development] + icon: pastebin + color: blue + note: Accent color appearance options are overriden by this userstyle. + current-maintainers: [*42willow] spotify-web: name: Spotify Web link: https://open.spotify.com diff --git a/styles/snips-sh/catppuccin.user.less b/styles/snips-sh/catppuccin.user.less new file mode 100644 index 0000000000..47eb158ae5 --- /dev/null +++ b/styles/snips-sh/catppuccin.user.less @@ -0,0 +1,48 @@ +/* ==UserStyle== +@name snips.sh Catppuccin +@namespace github.com/catppuccin/userstyles/styles/snips-sh +@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/snips-sh +@version 2026.03.16 +@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/snips-sh/catppuccin.user.less +@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Asnips-sh +@description Soothing pastel theme for snips.sh +@author Catppuccin +@license MIT + +@preprocessor less +@var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"] +@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"] +@var select accentColor "Accent" ["rosewater:Rosewater", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve*", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire", "sky:Sky", "lavender:Lavender", "subtext0:Gray"] +==/UserStyle== */ +@import "https://userstyles.catppuccin.com/lib/lib.less"; + +@-moz-document domain("snips.sh") { + :root { + @media (prefers-color-scheme: light) { + #catppuccin(@lightFlavor); + } + @media (prefers-color-scheme: dark) { + #catppuccin(@darkFlavor); + } + } + + #catppuccin(@flavor) { + #lib.palette(); + #lib.defaults(); + + --color-primary: @accent !important; + --color-surface-0: @base; + --color-surface-1: @mantle; + --color-border: @surface0; + --color-gray: @subtext0; + --color-blue: @blue; + --color-red: @red; + --color-amber: @yellow; + --color-green: @green; + --color-teal: @teal; + --color-purple: @mauve; + --color-pink: @pink; + --color-white: @text; + } +} +