From b231a144317cf7403002ab167351e474d79f78d6 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Thu, 21 Sep 2023 10:59:01 -0400 Subject: [PATCH] feat(vercel): theme select for light/dark mode (#211) Co-authored-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com> --- styles/vercel/catppuccin.user.css | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/styles/vercel/catppuccin.user.css b/styles/vercel/catppuccin.user.css index 7eca7a4..6b37116 100644 --- a/styles/vercel/catppuccin.user.css +++ b/styles/vercel/catppuccin.user.css @@ -1,17 +1,23 @@ /* ==UserStyle== @name Vercel Catppuccin @namespace github.com/catppuccin/userstyles/styles/vercel -@version 0.0.4 +@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/vercel +@version 0.0.5 @description Soothing pastel theme for Vercel @author Catppuccin @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/vercel/catppuccin.user.css -@license MIT +@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 domain("vercel.com") { - :root { - #catppuccin(@flavor); + :root.dark-theme { + #catppuccin(@darkFlavor); + } + :root.light-theme { + #catppuccin(@lightFlavor); } @catppuccin: {