From b55330c94aef38c4915d548f3c54004ae2c70220 Mon Sep 17 00:00:00 2001 From: Tnixc Date: Fri, 23 Aug 2024 21:02:01 +0800 Subject: [PATCH] fix(modrinth): add theming for new ui (#1230) * fix(modrinth): add theming for new ui * chore: remove duplicate "--color-button-bg" --- styles/modrinth/catppuccin.user.css | 115 ++++++++++++++++------------ 1 file changed, 66 insertions(+), 49 deletions(-) diff --git a/styles/modrinth/catppuccin.user.css b/styles/modrinth/catppuccin.user.css index aa37f7f4..1139c918 100644 --- a/styles/modrinth/catppuccin.user.css +++ b/styles/modrinth/catppuccin.user.css @@ -2,7 +2,7 @@ @name Modrinth Catppuccin @namespace github.com/catppuccin/userstyles/styles/modrinth @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/modrinth -@version 1.2.6 +@version 1.2.7 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/modrinth/catppuccin.user.css @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Amodrinth @description Soothing pastel theme for Modrinth @@ -68,54 +68,71 @@ color: @subtext0 !important; } } - - --color-base: @text; - --color-bg: @crust; - --color-ad-raised: @surface2; - --color-ad: @surface1; - --color-ad-highlight: @teal; - --color-brand: @accent-color; - --color-brand-green: @green; - --color-button-bg-active: @overlay0; - --color-button-bg-hover: @surface1; - --color-button-bg: @surface0; - --color-button-text-hover: @text; - --color-button-text: @subtext1; - --color-divider: @surface0; - --color-heading: @text; - --color-icon: @text; - --color-link-active: @teal; - --color-link-hover: @sky; - --color-link: @sapphire; - --color-raised-bg: @base; - --color-blue: @sapphire; - --color-special-blue: @sapphire; - --color-orange: @peach; - --color-special-orange: @peach; - --color-purple: @mauve; - --color-special-purple: @mauve; - --color-red: @red; - --color-gray: @subtext0; - --color-special-gray: @subtext0; - --color-green: @green; - --color-text: @subtext1; - --color-text-dark: @text; - --color-text-inactive: @overlay1; - --color-brand-highlight: @surface0; - --color-brand-inverted: @shadow; - --color-table-alternate-row: @crust; - --color-table-border: @overlay0; - --color-contrast: @text; - --color-accent-contrast: @mantle; - --color-brand-shadow: @accent-color; - --color-warning-banner-side: @red; - --color-warning-banner-bg: fade(@red, 10%); - --color-warning-banner-text: @text; - --landing-green-label: @accent-color; - --landing-green-label-bg: fade(@accent-color, 10%); - --landing-blue-label: @blue; - --landing-blue-label-bg: fade(@blue, 10%); - + * { + --text-color: @text; + --color-base: @text; + --color-bg: @crust; + --color-ad-raised: @surface2; + --color-ad: @surface1; + --color-ad-highlight: @teal; + --color-brand: @accent-color; + --color-brand-green: @green; + --color-button-bg-active: @overlay0; + --color-button-bg-hover: @surface1; + --color-button-bg: @surface0; + --color-button-text-hover: @text; + --color-button-text: @subtext1; + --color-button-text-active: @text; + --color-divider: @surface0; + --color-heading: @text; + --color-icon: @text; + --color-link-active: @teal; + --color-link-hover: @sky; + --color-link: @sapphire; + --color-raised-bg: @base; + --color-blue: @sapphire; + --color-special-blue: @sapphire; + --color-orange: @peach; + --color-special-orange: @peach; + --color-purple: @mauve; + --color-special-purple: @mauve; + --color-red: @red; + --color-gray: @subtext0; + --color-special-gray: @subtext0; + --color-green: @green; + --color-text: @subtext1; + --color-text-dark: @text; + --color-text-inactive: @overlay1; + --color-brand-highlight: @surface0; + --color-brand-inverted: @shadow; + --color-table-alternate-row: @crust; + --color-table-border: @overlay0; + --color-contrast: @text; + --color-accent-contrast: @mantle; + --color-brand-shadow: @accent-color; + --color-warning-banner-side: @red; + --color-warning-banner-bg: fade(@red, 10%); + --color-warning-banner-text: @text; + --landing-green-label: @accent-color; + --landing-green-label-bg: fade(@accent-color, 10%); + --landing-blue-label: @blue; + --landing-blue-label-bg: fade(@blue, 10%); + --color-platform-fabric: @pink; + --color-platform-quilt: @mauve; + --color-platform-forge: @blue; + --color-platform-neoforge: @peach; + --color-platform-liteloader: @sky; + --color-platform-bukkit: @peach; + --color-platform-bungeecord: @yellow; + --color-platform-folia: @green; + --color-platform-paper: @red; + --color-platform-purpur: @lavender; + --color-platform-spigot: @yellow; + --color-platform-velocity: @teal; + --color-platform-waterfall: @blue; + --color-platform-sponge: @yellow; + --color-button-border: fade(@crust, 20%); + } // homepage .blob-demonstration, .blob-demonstration::after {