From 8c8f33bff9265e8168e43ec7a07caee26e207065 Mon Sep 17 00:00:00 2001 From: WalkQuackBack Date: Thu, 6 Nov 2025 17:46:13 -0700 Subject: [PATCH] refactor(youtube): use single !important (#1960) --- styles/youtube/catppuccin.user.less | 810 ++++++++++++++-------------- 1 file changed, 405 insertions(+), 405 deletions(-) diff --git a/styles/youtube/catppuccin.user.less b/styles/youtube/catppuccin.user.less index 863fe25f..716813df 100644 --- a/styles/youtube/catppuccin.user.less +++ b/styles/youtube/catppuccin.user.less @@ -23,10 +23,10 @@ @-moz-document domain("youtube.com") { :root[dark] { - #catppuccin(@darkFlavor); + #catppuccin(@darkFlavor) !important; } :root:not([dark]) { - #catppuccin(@lightFlavor); + #catppuccin(@lightFlavor) !important; } #catppuccin(@flavor) { @@ -37,7 +37,7 @@ @black: if(@flavor = latte, @text, @base); color: @text; - background: @base !important; + background: @base; &, [dark], @@ -46,269 +46,269 @@ &[dark], &[system-icons], &[darker-dark-theme] { - --efyt-control-bar-background-color: @mantle !important; - --dimmer-text: @text !important; - --yt-spec-white-1: @text !important; - --yt-spec-white-2: @subtext0 !important; - --yt-spec-white-3: @subtext1 !important; - --yt-spec-white-4: darken(@subtext1, 5%) !important; - --yt-spec-black-1: @overlay1 !important; - --yt-spec-black-2: @overlay0 !important; - --yt-spec-black-3: @surface2 !important; - --yt-spec-black-4: @surface1 !important; - --yt-spec-black-pure: @surface0 !important; - --yt-spec-grey-1: @text !important; - --yt-spec-grey-2: @subtext0 !important; - --yt-spec-grey-3: @subtext1 !important; - --yt-spec-grey-4: @overlay2 !important; - --yt-spec-grey-5: @overlay1 !important; - --yt-brand-youtube-red: @accent !important; - --yt-brand-medium-red: @accent !important; - --yt-brand-light-red: @accent !important; - --yt-spec-red-30: @peach !important; - --yt-spec-red-70: @red !important; - --yt-spec-red-indicator: @accent !important; - --yt-spec-pale-blue: @sky !important; - --yt-spec-light-blue: @sky !important; - --yt-spec-dark-blue: @sapphire !important; - --yt-spec-navy-blue: @teal !important; - --yt-spec-light-green: @green !important; - --yt-spec-dark-green: @green !important; - --yt-spec-yellow: @peach !important; - --yt-spec-black-pure-alpha-5: @subtext0 !important; - --yt-spec-black-pure-alpha-10: @overlay2 !important; - --yt-spec-black-pure-alpha-15: fade(@crust, 85%) !important; - --yt-spec-black-pure-alpha-30: fade(@crust, 70%) !important; - --yt-spec-black-pure-alpha-60: fade(@crust, 40%) !important; - --yt-spec-black-pure-alpha-80: fade(@crust, 20%) !important; - --yt-spec-black-1-alpha-98: fade(@crust, 2%) !important; - --yt-spec-black-1-alpha-95: fade(@crust, 5%) !important; - --yt-spec-white-1-alpha-10: fade(@text, 90%) !important; - --yt-spec-white-1-alpha-20: fade(@text, 80%) !important; - --yt-spec-white-1-alpha-25: fade(@text, 75%) !important; - --yt-spec-white-1-alpha-30: fade(@text, 70%) !important; - --yt-spec-white-1-alpha-70: fade(@text, 30%) !important; - --yt-spec-white-1-alpha-95: fade(@text, 5%) !important; - --yt-spec-white-1-alpha-98: fade(@text, 2%) !important; - --yt-brand-medium-red-alpha-90: fade(@accent, 10%) !important; - --yt-brand-medium-red-alpha-30: fade(@accent, 70%) !important; - --yt-brand-light-red-alpha-30: fade(@accent, 70%) !important; - --yt-spec-light-blue-alpha-30: fade(@sapphire, 70%) !important; - --yt-spec-dark-blue-alpha-30: fade(@sapphire, 70%) !important; + --efyt-control-bar-background-color: @mantle; + --dimmer-text: @text; + --yt-spec-white-1: @text; + --yt-spec-white-2: @subtext0; + --yt-spec-white-3: @subtext1; + --yt-spec-white-4: darken(@subtext1, 5%); + --yt-spec-black-1: @overlay1; + --yt-spec-black-2: @overlay0; + --yt-spec-black-3: @surface2; + --yt-spec-black-4: @surface1; + --yt-spec-black-pure: @surface0; + --yt-spec-grey-1: @text; + --yt-spec-grey-2: @subtext0; + --yt-spec-grey-3: @subtext1; + --yt-spec-grey-4: @overlay2; + --yt-spec-grey-5: @overlay1; + --yt-brand-youtube-red: @accent; + --yt-brand-medium-red: @accent; + --yt-brand-light-red: @accent; + --yt-spec-red-30: @peach; + --yt-spec-red-70: @red; + --yt-spec-red-indicator: @accent; + --yt-spec-pale-blue: @sky; + --yt-spec-light-blue: @sky; + --yt-spec-dark-blue: @sapphire; + --yt-spec-navy-blue: @teal; + --yt-spec-light-green: @green; + --yt-spec-dark-green: @green; + --yt-spec-yellow: @peach; + --yt-spec-black-pure-alpha-5: @subtext0; + --yt-spec-black-pure-alpha-10: @overlay2; + --yt-spec-black-pure-alpha-15: fade(@crust, 85%); + --yt-spec-black-pure-alpha-30: fade(@crust, 70%); + --yt-spec-black-pure-alpha-60: fade(@crust, 40%); + --yt-spec-black-pure-alpha-80: fade(@crust, 20%); + --yt-spec-black-1-alpha-98: fade(@crust, 2%); + --yt-spec-black-1-alpha-95: fade(@crust, 5%); + --yt-spec-white-1-alpha-10: fade(@text, 90%); + --yt-spec-white-1-alpha-20: fade(@text, 80%); + --yt-spec-white-1-alpha-25: fade(@text, 75%); + --yt-spec-white-1-alpha-30: fade(@text, 70%); + --yt-spec-white-1-alpha-70: fade(@text, 30%); + --yt-spec-white-1-alpha-95: fade(@text, 5%); + --yt-spec-white-1-alpha-98: fade(@text, 2%); + --yt-brand-medium-red-alpha-90: fade(@accent, 10%); + --yt-brand-medium-red-alpha-30: fade(@accent, 70%); + --yt-brand-light-red-alpha-30: fade(@accent, 70%); + --yt-spec-light-blue-alpha-30: fade(@sapphire, 70%); + --yt-spec-dark-blue-alpha-30: fade(@sapphire, 70%); - --yt-spec-base-background: @base !important; - --yt-spec-raised-background: @base !important; - --yt-spec-menu-background: @mantle !important; - --yt-spec-inverted-background: @text !important; - --yt-spec-additive-background: fade(@surface1, 90%) !important; - --yt-spec-outline: @surface0 !important; - --yt-spec-shadow: fade(@crust, 75%) !important; - --yt-spec-text-primary: @text !important; - --yt-spec-text-secondary: @subtext0 !important; - --yt-spec-text-disabled: @subtext1 !important; - --yt-spec-text-primary-inverse: @crust !important; - --yt-spec-call-to-action: @accent !important; - --yt-spec-call-to-action-inverse: @accent !important; - --yt-spec-suggested-action: fade(@accent, 20%) !important; - --yt-spec-suggested-action-inverse: @text !important; - --yt-spec-icon-active-other: @text !important; - --yt-spec-button-chip-background-hover: @surface1 !important; - --yt-spec-touch-response: @surface0 !important; + --yt-spec-base-background: @base; + --yt-spec-raised-background: @base; + --yt-spec-menu-background: @mantle; + --yt-spec-inverted-background: @text; + --yt-spec-additive-background: fade(@surface1, 90%); + --yt-spec-outline: @surface0; + --yt-spec-shadow: fade(@crust, 75%); + --yt-spec-text-primary: @text; + --yt-spec-text-secondary: @subtext0; + --yt-spec-text-disabled: @subtext1; + --yt-spec-text-primary-inverse: @crust; + --yt-spec-call-to-action: @accent; + --yt-spec-call-to-action-inverse: @accent; + --yt-spec-suggested-action: fade(@accent, 20%); + --yt-spec-suggested-action-inverse: @text; + --yt-spec-icon-active-other: @text; + --yt-spec-button-chip-background-hover: @surface1; + --yt-spec-touch-response: @surface0; - --yt-spec-touch-response-inverse: @accent !important; - --yt-spec-brand-icon-active: @accent !important; - --yt-spec-brand-button-background: @accent !important; - --yt-spec-brand-link-text: @sapphire !important; - --yt-spec-wordmark-text: @text !important; - --yt-spec-error-indicator: @red !important; - --yt-spec-themed-blue: @accent !important; - --yt-spec-themed-green: @green !important; - --yt-spec-ad-indicator: @teal !important; - --yt-spec-themed-overlay-background: fade(@crust, 80%) !important; - --yt-spec-commerce-badge-background: @green !important; - --yt-spec-static-brand-red: @accent !important; - --yt-spec-static-brand-white: @text !important; - --yt-spec-static-brand-black: @base !important; - --yt-spec-static-clear-color: fade(@crust, 100%) !important; - --yt-spec-static-clear-black: fade(@crust, 100%) !important; - --yt-spec-static-ad-yellow: @peach !important; - --yt-spec-static-grey: @subtext0 !important; - --yt-spec-static-overlay-background-solid: @crust !important; + --yt-spec-touch-response-inverse: @accent; + --yt-spec-brand-icon-active: @accent; + --yt-spec-brand-button-background: @accent; + --yt-spec-brand-link-text: @sapphire; + --yt-spec-wordmark-text: @text; + --yt-spec-error-indicator: @red; + --yt-spec-themed-blue: @accent; + --yt-spec-themed-green: @green; + --yt-spec-ad-indicator: @teal; + --yt-spec-themed-overlay-background: fade(@crust, 80%); + --yt-spec-commerce-badge-background: @green; + --yt-spec-static-brand-red: @accent; + --yt-spec-static-brand-white: @text; + --yt-spec-static-brand-black: @base; + --yt-spec-static-clear-color: fade(@crust, 100%); + --yt-spec-static-clear-black: fade(@crust, 100%); + --yt-spec-static-ad-yellow: @peach; + --yt-spec-static-grey: @subtext0; + --yt-spec-static-overlay-background-solid: @crust; --yt-spec-static-overlay-background-heavy: @crust; - --yt-spec-static-overlay-background-medium: fade(@crust, 50%) !important; + --yt-spec-static-overlay-background-medium: fade(@crust, 50%); --yt-spec-static-overlay-background-light: fade( @crust, 90% - ) !important; - --yt-spec-static-overlay-text-primary: @text !important; + ); + --yt-spec-static-overlay-text-primary: @text; --yt-spec-static-overlay-text-secondary: fade( @subtext0, 30% - ) !important; + ); --yt-spec-static-overlay-text-disabled: fade( @subtext0, 70% - ) !important; - --yt-spec-static-overlay-call-to-action: @accent !important; - --yt-spec-static-overlay-icon-active-other: @crust !important; - --yt-spec-static-overlay-icon-inactive: @surface1 !important; - --yt-spec-static-overlay-icon-disabled: @surface2 !important; - --yt-spec-static-overlay-button-primary: @accent !important; - --yt-spec-static-overlay-touch-response: @overlay1 !important; - --yt-spec-static-overlay-touch-response-inverse: @surface1 !important; - --yt-spec-static-overlay-background-brand: @accent !important; - --yt-spec-assistive-feed-themed-gradient-1: @subtext0 !important; - --yt-spec-assistive-feed-themed-gradient-2: @lavender !important; - --yt-spec-assistive-feed-themed-gradient-3: @red !important; - --yt-spec-brand-background-solid: @base !important; - --yt-spec-brand-background-primary: @base !important; - --yt-spec-brand-background-secondary: @mantle !important; - --yt-spec-general-background-a: @base !important; - --yt-spec-general-background-b: @base !important; - --yt-spec-general-background-c: @crust !important; - --yt-spec-error-background: @base !important; - --yt-spec-10-percent-layer: @surface1 !important; - --yt-spec-snackbar-background: @mantle !important; - --yt-spec-snackbar-background-updated: @mantle !important; + ); + --yt-spec-static-overlay-call-to-action: @accent; + --yt-spec-static-overlay-icon-active-other: @crust; + --yt-spec-static-overlay-icon-inactive: @surface1; + --yt-spec-static-overlay-icon-disabled: @surface2; + --yt-spec-static-overlay-button-primary: @accent; + --yt-spec-static-overlay-touch-response: @overlay1; + --yt-spec-static-overlay-touch-response-inverse: @surface1; + --yt-spec-static-overlay-background-brand: @accent; + --yt-spec-assistive-feed-themed-gradient-1: @subtext0; + --yt-spec-assistive-feed-themed-gradient-2: @lavender; + --yt-spec-assistive-feed-themed-gradient-3: @red; + --yt-spec-brand-background-solid: @base; + --yt-spec-brand-background-primary: @base; + --yt-spec-brand-background-secondary: @mantle; + --yt-spec-general-background-a: @base; + --yt-spec-general-background-b: @base; + --yt-spec-general-background-c: @crust; + --yt-spec-error-background: @base; + --yt-spec-10-percent-layer: @surface1; + --yt-spec-snackbar-background: @mantle; + --yt-spec-snackbar-background-updated: @mantle; --yt-spec-badge-chip-background: if( @flavor = latte, @crust, @surface0 - ) !important; - --yt-spec-verified-badge-background: @overlay0 !important; - --yt-spec-call-to-action-fadeoutd: fade(@sapphire, 70%) !important; - --yt-spec-call-to-action-hover: @accent !important; - --yt-spec-brand-button-background-hover: @accent !important; + ); + --yt-spec-verified-badge-background: @overlay0; + --yt-spec-call-to-action-fadeoutd: fade(@sapphire, 70%); + --yt-spec-call-to-action-hover: @accent; + --yt-spec-brand-button-background-hover: @accent; --yt-spec-brand-link-text-fadeoutd: fade( @accent, 70% - ) !important; - --yt-spec-filled-button-focus-outline: @surface0 !important; - --yt-spec-static-overlay-button-hover: @surface1 !important; - --yt-spec-mono-filled-hover: @surface1 !important; - --yt-spec-commerce-filled-hover: @accent !important; - --yt-spec-mono-tonal-hover: @surface1 !important; - --yt-spec-commerce-tonal-hover: @surface2 !important; - --yt-spec-static-overlay-filled-hover: @overlay1 !important; - --yt-spec-static-overlay-tonal-hover: @surface1 !important; + ); + --yt-spec-filled-button-focus-outline: @surface0; + --yt-spec-static-overlay-button-hover: @surface1; + --yt-spec-mono-filled-hover: @surface1; + --yt-spec-commerce-filled-hover: @accent; + --yt-spec-mono-tonal-hover: @surface1; + --yt-spec-commerce-tonal-hover: @surface2; + --yt-spec-static-overlay-filled-hover: @overlay1; + --yt-spec-static-overlay-tonal-hover: @surface1; --yt-spec-paper-tab-ink: fade(@text, 70%); - --yt-spec-filled-button-text: @text !important; - --yt-spec-selected-nav-text: @text !important; - --iron-icon-fill-color: @text !important; + --yt-spec-filled-button-text: @text; + --yt-spec-selected-nav-text: @text; + --iron-icon-fill-color: @text; /* Search bar */ - --ytd-searchbox-border-color: @surface0 !important; - --ytd-searchbox-legacy-border-color: @surface0 !important; + --ytd-searchbox-border-color: @surface0; + --ytd-searchbox-legacy-border-color: @surface0; --ytd-searchbox-legacy-border-shadow-color: fade( @crust, 100% - ) !important; - --ytd-searchbox-legacy-button-color: @mantle !important; - --ytd-searchbox-legacy-button-border-color: @surface0 !important; - --ytd-searchbox-legacy-button-focus-color: @accent !important; - --ytd-searchbox-legacy-button-hover-color: @mantle !important; - --ytd-searchbox-legacy-button-hover-border-color: @surface0 !important; - --ytd-searchbox-legacy-button-icon-color: @accent !important; - --ytd-searchbox-background: @base !important; - --ytd-searchbox-text-color: @text !important; + ); + --ytd-searchbox-legacy-button-color: @mantle; + --ytd-searchbox-legacy-button-border-color: @surface0; + --ytd-searchbox-legacy-button-focus-color: @accent; + --ytd-searchbox-legacy-button-hover-color: @mantle; + --ytd-searchbox-legacy-button-hover-border-color: @surface0; + --ytd-searchbox-legacy-button-icon-color: @accent; + --ytd-searchbox-background: @base; + --ytd-searchbox-text-color: @text; /* System icons */ - --yt-spec-icon-inactive: @text !important; - --yt-spec-icon-disabled: @overlay1 !important; - --yt-spec-brand-icon-inactive: @overlay2 !important; + --yt-spec-icon-inactive: @text; + --yt-spec-icon-disabled: @overlay1; + --yt-spec-brand-icon-inactive: @overlay2; /* Yt video Page */ - --yt-live-chat-background-color: @base !important; - --yt-live-chat-action-panel-background-color: @base !important; + --yt-live-chat-background-color: @base; + --yt-live-chat-action-panel-background-color: @base; --yt-live-chat-secondary-background-color: @surface1; - --yt-live-chat-toast-background-color: @surface2 !important; - --yt-live-chat-mode-change-background-color: @base !important; - --yt-live-chat-secondary-text-color: @subtext0 !important; - --yt-live-chat-tertiary-text-color: fade(@text, 46%) !important; + --yt-live-chat-toast-background-color: @surface2; + --yt-live-chat-mode-change-background-color: @base; + --yt-live-chat-secondary-text-color: @subtext0; + --yt-live-chat-tertiary-text-color: fade(@text, 46%); --yt-live-chat-text-input-field-inactive-underline-color: @subtext0 - !important; - --yt-live-chat-text-input-field-placeholder-color: @subtext0 !important; - --yt-live-chat-enabled-send-button-color: @text !important; - --yt-live-chat-disabled-icon-button-color: @subtext1 !important; - --yt-live-chat-picker-button-hover-color: @accent !important; - --yt-live-chat-mention-background-color: @accent !important; - --yt-live-chat-mention-text-color: @text !important; + ; + --yt-live-chat-text-input-field-placeholder-color: @subtext0; + --yt-live-chat-enabled-send-button-color: @text; + --yt-live-chat-disabled-icon-button-color: @subtext1; + --yt-live-chat-picker-button-hover-color: @accent; + --yt-live-chat-mention-background-color: @accent; + --yt-live-chat-mention-text-color: @text; --yt-live-chat-deleted-message-color: @subtext0; - --yt-live-chat-deleted-message-bar-color: @subtext1 !important; - --yt-live-chat-reconnect-message-color: @text !important; - --yt-live-chat-disabled-button-background-color: @overlay0 !important; - --yt-live-chat-sub-panel-background-color: @base !important; - --yt-live-chat-sub-panel-background-color-transparent: @mantle !important; - --yt-live-chat-moderator-color: @lavender !important; - --yt-live-chat-owner-color: @peach !important; - --yt-live-chat-message-highlight-background-color: @base !important; - --yt-live-chat-sponsor-color: @green !important; + --yt-live-chat-deleted-message-bar-color: @subtext1; + --yt-live-chat-reconnect-message-color: @text; + --yt-live-chat-disabled-button-background-color: @overlay0; + --yt-live-chat-sub-panel-background-color: @base; + --yt-live-chat-sub-panel-background-color-transparent: @mantle; + --yt-live-chat-moderator-color: @lavender; + --yt-live-chat-owner-color: @peach; + --yt-live-chat-message-highlight-background-color: @base; + --yt-live-chat-sponsor-color: @green; --yt-live-chat-overlay-color: fade(@mantle, 50%); - --yt-live-chat-dialog-background-color: @base !important; - --yt-emoji-picker-variant-selector-bg-color: @base !important; + --yt-live-chat-dialog-background-color: @base; + --yt-emoji-picker-variant-selector-bg-color: @base; --yt-live-chat-moderation-mode-hover-background-color: fade( @mantle, 70% - ) !important; - --yt-grey: @subtext0 !important; + ); + --yt-grey: @subtext0; --yt-live-chat-text-input-field-suggestion-background-color: @subtext0 - !important; + ; --yt-live-chat-text-input-field-suggestion-background-color-hover: @subtext1 - !important; - --yt-emoji-picker-search-background-color: @surface0 !important; - --yt-emoji-picker-search-color: @text !important; - --yt-emoji-picker-search-placeholder-color: @accent !important; - --yt-live-chat-slider-active-color: @accent !important; - --yt-live-chat-slider-container-color: @surface0 !important; - --yt-live-chat-slider-markers-color: @text !important; + ; + --yt-emoji-picker-search-background-color: @surface0; + --yt-emoji-picker-search-color: @text; + --yt-emoji-picker-search-placeholder-color: @accent; + --yt-live-chat-slider-active-color: @accent; + --yt-live-chat-slider-container-color: @surface0; + --yt-live-chat-slider-markers-color: @text; --yt-live-chat-banner-gradient-scrim: linear-gradient( @mantle, transparent - ) !important; + ); --yt-live-chat-action-panel-gradient-scrim: linear-gradient( to top, @mantle, transparent - ) !important; + ); --yt-live-chat-automod-button-background-color-hover: fade( @crust, 50% - ) !important; + ); --yt-live-chat-automod-button-explanation-color: fade( @accent, 30% - ) !important; - --yt-live-chat-shimmer-background-color: fade(@crust, 60%) !important; + ); + --yt-live-chat-shimmer-background-color: fade(@crust, 60%); --yt-live-chat-shimmer-linear-gradient: linear-gradient( 0deg, fade(@text, 90%) 40%, fade(@base, 70%) 50%, fade(@text, 90%) 60% - ) !important; - --yt-live-chat-vem-background-color: @mantle !important; - --yt-live-chat-product-picker-icon-color: fade(@text, 50%) !important; - --yt-live-chat-product-picker-hover-color: @overlay0 !important; + ); + --yt-live-chat-vem-background-color: @mantle; + --yt-live-chat-product-picker-icon-color: fade(@text, 50%); + --yt-live-chat-product-picker-hover-color: @overlay0; --yt-live-chat-product-picker-disabled-icon-color: fade( @text, 70% - ) !important; + ); --yt-live-chat-action-panel-background-color-transparent: (null) - !important; + ; - --paper-tooltip-background: @overlay0 !important; - --paper-tooltip-text-color: @text !important; + --paper-tooltip-background: @overlay0; + --paper-tooltip-text-color: @text; /* Links */ - --yt-endpoint-color: @accent !important; - --yt-endpoint-visited-color: @accent !important; - --yt-endpoint-hover-color: @accent !important; + --yt-endpoint-color: @accent; + --yt-endpoint-visited-color: @accent; + --yt-endpoint-hover-color: @accent; - --sb-dark-red-outline: @accent !important; - --sb-main-bg-color: @base !important; - --sb-main-fg-color: @text !important; - --sb-grey-bg-color: @base !important; - --sb-grey-fg-color: @subtext0 !important; - --sb-red-bg-color: @accent !important; + --sb-dark-red-outline: @accent; + --sb-main-bg-color: @base; + --sb-main-fg-color: @text; + --sb-grey-bg-color: @base; + --sb-grey-fg-color: @subtext0; + --sb-red-bg-color: @accent; & when (@sponsorBlock = 1) { --sb-category-sponsor: @green; @@ -325,30 +325,30 @@ } &:not(.style-scope) { - --primary-text-color: @text !important; - --primary-background-color: @base !important; - --secondary-text-color: @subtext0 !important; - --disabled-text-color: @subtext1 !important; - --divider-color: @overlay0 !important; - --error-color: @red !important; - --primary-color: @accent !important; - --light-primary-color: @accent !important; - --dark-primary-color: @blue !important; - --accent-color: @accent !important; - --light-accent-color: @accent !important; - --dark-accent-color: @accent !important; - --light-theme-background-color: @base !important; - --light-theme-base-color: @text !important; - --light-theme-text-color: @text !important; - --light-theme-secondary-color: @subtext0 !important; - --light-theme-disabled-color: @subtext1 !important; - --light-theme-divider-color: @overlay0 !important; - --dark-theme-background-color: @base !important; - --dark-theme-base-color: @text !important; - --dark-theme-text-color: @text !important; - --dark-theme-secondary-color: @subtext0 !important; - --dark-theme-disabled-color: @subtext1 !important; - --dark-theme-divider-color: @overlay0 !important; + --primary-text-color: @text; + --primary-background-color: @base; + --secondary-text-color: @subtext0; + --disabled-text-color: @subtext1; + --divider-color: @overlay0; + --error-color: @red; + --primary-color: @accent; + --light-primary-color: @accent; + --dark-primary-color: @blue; + --accent-color: @accent; + --light-accent-color: @accent; + --dark-accent-color: @accent; + --light-theme-background-color: @base; + --light-theme-base-color: @text; + --light-theme-text-color: @text; + --light-theme-secondary-color: @subtext0; + --light-theme-disabled-color: @subtext1; + --light-theme-divider-color: @overlay0; + --dark-theme-background-color: @base; + --dark-theme-base-color: @text; + --dark-theme-text-color: @text; + --dark-theme-secondary-color: @subtext0; + --dark-theme-disabled-color: @subtext1; + --dark-theme-divider-color: @overlay0; } /* Misc */ @@ -361,55 +361,55 @@ } #channel-name.ytd-video-meta-block { - --yt-endpoint-color: @accent !important; - --yt-endpoint-visited-color: @accent !important; - color: @accent !important; + --yt-endpoint-color: @accent; + --yt-endpoint-visited-color: @accent; + color: @accent; } .yt-page-navigation-progress { - background: @accent !important; + background: @accent; } /* Selected chapter */ ytd-macro-markers-list-item-renderer { - --ytd-macro-markers-list-item-background-color: @surface0 !important; - --ytd-macro-markers-list-item-title-color: @text !important; - --ytd-macro-markers-list-item-secondary-color: @subtext1 !important; + --ytd-macro-markers-list-item-background-color: @surface0; + --ytd-macro-markers-list-item-title-color: @text; + --ytd-macro-markers-list-item-secondary-color: @subtext1; --ytd-macro-markers-list-item-timestamp-background-color: @surface1 - !important; + ; } ytd-playlist-panel-video-renderer { - --yt-lightsource-section2-color: @surface1 !important; - --yt-lightsource-section4-color: @surface2 !important; - --yt-lightsource-primary-title-color: @text !important; - --yt-lightsource-secondary-title-color: @text !important; - --yt-active-playlist-panel-background-color: @surface0 !important; + --yt-lightsource-section2-color: @surface1; + --yt-lightsource-section4-color: @surface2; + --yt-lightsource-primary-title-color: @text; + --yt-lightsource-secondary-title-color: @text; + --yt-active-playlist-panel-background-color: @surface0; } ytd-playlist-panel-renderer[collapsible][collapsed][use-color-palette] .header.ytd-playlist-panel-renderer { - --iron-icon-fill-color: @text !important; - background-color: @base !important; + --iron-icon-fill-color: @text; + background-color: @base; } #container.ytd-masthead { - --iron-icon-fill-color: @text !important; + --iron-icon-fill-color: @text; } #background.ytd-masthead, #frosted-glass { - --yt-frosted-glass-desktop: @base !important; + --yt-frosted-glass-desktop: @base; } ytd-feed-filter-chip-bar-renderer[expand-instead-of-scroll] #chips-wrapper.ytd-feed-filter-chip-bar-renderer { - --iron-icon-fill-color: @text !important; - background-color: @base !important; + --iron-icon-fill-color: @text; + background-color: @base; } #ytd-player #container when (@oled = 0) { - background: @crust !important; + background: @crust; } .ytp-progress-list when not(@flavor = latte) { @@ -420,20 +420,20 @@ } ytd-expandable-metadata-renderer { - --yt-lightsource-section1-color: @base !important; - --yt-lightsource-section2-color: @surface0 !important; - --yt-lightsource-section3-color: @surface1 !important; - --yt-lightsource-section4-color: @surface2 !important; - --yt-lightsource-primary-title-color: @text !important; - --yt-lightsource-secondary-title-color: @subtext0 !important; + --yt-lightsource-section1-color: @base; + --yt-lightsource-section2-color: @surface0; + --yt-lightsource-section3-color: @surface1; + --yt-lightsource-section4-color: @surface2; + --yt-lightsource-primary-title-color: @text; + --yt-lightsource-secondary-title-color: @subtext0; } yt-live-chat-renderer { - --yt-button-default-text-color: @text !important; - --yt-button-default-background-color: @base !important; - --yt-button-dark-text-color: @base !important; - --yt-button-dark-background-color: @accent !important; - --yt-button-payment-background-color: @accent !important; + --yt-button-default-text-color: @text; + --yt-button-default-background-color: @base; + --yt-button-dark-text-color: @base; + --yt-button-dark-background-color: @accent; + --yt-button-payment-background-color: @accent; } yt-icon-button.yt-live-chat-item-list-renderer { @@ -448,11 +448,11 @@ ytd-author-comment-badge-renderer:not( [style*="--ytd-author-comment-badge-icon-background-color: transparent;"] ) { - --yt-basic-background-color: @surface0 !important; - --yt-basic-foreground-title-color: @surface0 !important; - --ytd-author-comment-badge-background-color: @surface0 !important; - --ytd-author-comment-badge-name-color: @text !important; - --ytd-author-comment-badge-icon-color: @text !important; + --yt-basic-background-color: @surface0; + --yt-basic-foreground-title-color: @surface0; + --ytd-author-comment-badge-background-color: @surface0; + --ytd-author-comment-badge-name-color: @text; + --ytd-author-comment-badge-icon-color: @text; } /* Skeleton */ @@ -494,11 +494,11 @@ [fill="#FF0000"], [fill="#f03"], [fill="#FF0033"] { - fill: @accent !important; + fill: @accent; } [fill="white"] { - fill: if(@flavor = latte, @base, @text) !important; + fill: if(@flavor = latte, @base, @text); } /* verification badge */ @@ -507,7 +507,7 @@ } yt-icon.ytd-logo [fill="white"] { - fill: @crust !important; + fill: @crust; } .yt-spec-icon-shape { @@ -516,7 +516,7 @@ [fill="#fff"], [fill="#FFF"], [fill="#FFFFFF"] { - fill: @crust !important; + fill: @crust; } } @@ -527,8 +527,8 @@ .yt-spec-icon-badge-shape--type-notification .yt-spec-icon-badge-shape__badge { - background-color: @accent !important; - color: @surface0 !important; + background-color: @accent; + color: @surface0; } /* Buttons */ @@ -541,21 +541,21 @@ [fill="rgb(3,3,3)"], [fill="rgb(0,0,0)"], [fill="rgb(255,255,255)"] { - fill: @text !important; + fill: @text; } [stroke="rgb(0,0,0)"], [stroke="rgb(255,255,255)"] { - stroke: @text !important; + stroke: @text; } /* Accent for filled-in thumbs up (like button) */ [animated-icon-type="LIKE"] { g path[fill] { - fill: @accent !important; + fill: @accent; + [stroke] { - stroke: @accent !important; + stroke: @accent; } } } @@ -669,50 +669,50 @@ .ytSearchboxComponentInputBox, .ytSearchboxComponentInputBoxDark { - background: var(--ytd-searchbox-background) !important; - color: var(--ytd-searchbox-text-color) !important; - border-color: var(--ytd-searchbox-border-color) !important; + background: var(--ytd-searchbox-background); + color: var(--ytd-searchbox-text-color); + border-color: var(--ytd-searchbox-border-color); box-shadow: none; } .ytSearchboxComponentInputBoxHasFocus, .ytSearchboxComponentInputBoxHasFocusDark { - border-color: @accent !important; + border-color: @accent; } .ytSuggestionComponentSuggestionHover:hover, .ytSuggestionComponentSuggestionHoverDark:hover { - background: @surface1 !important; + background: @surface1; } .ytSearchboxComponentSuggestionsContainer, .ytSearchboxComponentSuggestionsContainerDark { - background: var(--yt-spec-raised-background) !important; - border-color: var(--yt-spec-raised-background) !important; + background: var(--yt-spec-raised-background); + border-color: var(--yt-spec-raised-background); } .ytSuggestionComponentSuggestion, .ytSuggestionComponentSuggestionDark { - color: var(--ytd-searchbox-text-color) !important; + color: var(--ytd-searchbox-text-color); } .ytSearchboxComponentSearchButton, .ytSearchboxComponentSearchButtonDark { - color: var(--ytd-searchbox-text-color) !important; - background: @surface0 !important; - border-color: var(--ytd-searchbox-border-color) !important; + color: var(--ytd-searchbox-text-color); + background: @surface0; + border-color: var(--ytd-searchbox-border-color); } .ytSearchboxComponentClearButtonIcon, .ytSearchboxComponentClearButtonIconDark { - color: var(--ytd-searchbox-text-color) !important; + color: var(--ytd-searchbox-text-color); } .ytSearchboxComponentReportButton, .ytSearchboxComponentReportButtonDark, .ytSuggestionComponentRemoveLink, .ytSuggestionComponentRemoveLinkDark { - color: @subtext0 !important; + color: @subtext0; } .sbsb_a { @@ -755,7 +755,7 @@ #description { [style*="color: rgb(255, 255, 255);"], [style*="color: rgb(19, 19, 19);"] { - color: @text !important; + color: @text; } } @@ -799,7 +799,7 @@ .YtInlinePlayerControlsTopRightControlsCircleButton, .badge-shape-wiz--default.badge-shape-wiz--overlay, .branding-context-container-inner { - background-color: @surface0 !important; + background-color: @surface0; color: @text; } .ytp-sb-unsubscribe { @@ -821,13 +821,13 @@ /* Panels, popups, tooltips */ .ytp-tooltip-bottom-text { - background: fade(@surface0, 90%) !important; + background: fade(@surface0, 90%); color: @text; - text-shadow: none !important; + text-shadow: none; } .ytp-popup { - background: fade(@surface0, 90%) !important; + background: fade(@surface0, 90%); text-shadow: none; } @@ -876,7 +876,7 @@ } svg > path:not([fill="none"]) { - fill: @text !important; + fill: @text; } &[aria-haspopup="true"] .ytp-menuitem-content { @@ -920,12 +920,12 @@ .ytp-swatch-background-color, .ytp-play-progress { - background: @accent !important; + background: @accent; } .ytp-svg-fill, [fill="#fff"] { - fill: @white !important; + fill: @white; } .ytp-volume-slider-handle { @@ -1008,8 +1008,8 @@ /* Video highlight */ ytd-rich-item-renderer.ytd-rich-item-renderer-highlight { - background-color: fade(@accent, 10%) !important; - box-shadow: fade(@accent, 10%) 0 0 0 10px !important; + background-color: fade(@accent, 10%); + box-shadow: fade(@accent, 10%) 0 0 0 10px; } #shorts-container { @@ -1043,7 +1043,7 @@ .YtProgressBarLineProgressBarPlayed, .YtProgressBarPlayheadProgressBarPlayheadDot { - background-color: @accent !important; + background-color: @accent; } .yt-spec-button-shape-next--overlay-dark.yt-spec-button-shape-next--filled { @@ -1052,7 +1052,7 @@ } .YtdDesktopShortsVolumeControlsMuteIcon { - color: @white !important; + color: @white; } /* Buy super thanks button */ @@ -1076,12 +1076,12 @@ /* Buy super thanks bar */ #progressContainer.tp-yt-paper-progress { - background-color: @mantle !important; + background-color: @mantle; } #comment-chip-container.yt-pdg-comment-chip-renderer, .slider-knob-inner.tp-yt-paper-slider { - background: @accent !important; + background: @accent; } #primaryProgress.tp-yt-paper-progress { @@ -1089,7 +1089,7 @@ } #container.ytd-pdg-comment-preview-renderer { - background-color: @mantle !important; + background-color: @mantle; } #comment-chip-price.yt-pdg-comment-chip-renderer, @@ -1117,7 +1117,7 @@ .page-header-view-model-wiz__page-header-title, [style="color: rgb(255, 255, 255);"]:has(svg), .truncated-text-wiz__absolute-button { - color: @text !important; + color: @text; } .yt-contextual-sheet-layout-wiz { background-color: @mantle; @@ -1135,15 +1135,15 @@ /* channel details */ .profile-badge-view-model-wiz__badge-description { - color: @text !important; + color: @text; } .profile-badge-view-model-wiz__badge-subtitle { - color: @subtext0 !important; + color: @subtext0; } .yt-profile-identity-info-view-model-wiz__divider { - border-color: @surface0 !important; + border-color: @surface0; } /* Profiles */ @@ -1193,43 +1193,43 @@ /* Playlist collapsed sidebar */ #next-video-title { - color: @text !important; + color: @text; } #publisher-container { .yt-simple-endpoint.style-scope.yt-formatted-string, .index-message-wrapper.style-scope.ytd-playlist-panel-renderer, .index-message-wrapper.style-scope.ytd-playlist-panel-renderer::before { - color: @subtext0 !important; + color: @subtext0; } } /* Playlist metadata */ .metadata-stats.style-scope.ytd-playlist-byline-renderer, .yt-lockup-metadata-view-model-wiz__metadata { - color: @subtext0 !important; + color: @subtext0; } /* Playlist titles in search results */ .yt-core-attributed-string.yt-core-attributed-string--white-space-pre-wrap { - color: @text !important; + color: @text; } /* Category tag pills */ .ytChipShapeInactive { - background-color: @surface0 !important; - color: @text !important; + background-color: @surface0; + color: @text; } .ytChipShapeActive { - background-color: @accent !important; - color: @crust !important; + background-color: @accent; + color: @crust; } /* Vertical ellipsis menu on main page */ .ytListViewModelHost { - background-color: @mantle !important; - color: @text !important; + background-color: @mantle; + color: @text; .yt-icon-shape { - color: @text !important; + color: @text; } } } @@ -1262,115 +1262,115 @@ [light], html[light], html[light][light] { - --yt-spec-black-pure-alpha-80: (null) !important; - --yt-spec-black-pure-alpha-60: (null) !important; - --yt-spec-black-1-alpha-98: (null) !important; - --yt-spec-black-1-alpha-95: (null) !important; - --iron-icon-fill-color: unset !important; + --yt-spec-black-pure-alpha-80: (null); + --yt-spec-black-pure-alpha-60: (null); + --yt-spec-black-1-alpha-98: (null); + --yt-spec-black-1-alpha-95: (null); + --iron-icon-fill-color: unset; - --yt-spec-text-primary: @text !important; - --ytcp-text-primary: @text !important; - --ytcp-text-primary-inverse: @base !important; - --ytcp-static-overlay-text-primary-inverse: @base !important; - --ytcp-wordmark-text: @text !important; - --ytcp-text-secondary: @subtext0 !important; - --ytcp-text-disabled: @subtext1 !important; - --ytcp-overlay-text-primary: @overlay2 !important; + --yt-spec-text-primary: @text; + --ytcp-text-primary: @text; + --ytcp-text-primary-inverse: @base; + --ytcp-static-overlay-text-primary-inverse: @base; + --ytcp-wordmark-text: @text; + --ytcp-text-secondary: @subtext0; + --ytcp-text-disabled: @subtext1; + --ytcp-overlay-text-primary: @overlay2; - --ytcp-general-background-a: @base !important; - --yt-spec-base-background: @base !important; - --yt-spec-black-3: @base !important; + --ytcp-general-background-a: @base; + --yt-spec-base-background: @base; + --yt-spec-black-3: @base; - --yt-spec-brand-background-solid: @mantle !important; - --ytcp-brand-background-solid: @mantle !important; - --yt-spec-raised-background: @mantle !important; - --ytcp-general-background-b: @mantle !important; - --ytcp-analytics-reach-background: @mantle !important; - --yt-spec-black-2: @mantle !important; + --yt-spec-brand-background-solid: @mantle; + --ytcp-brand-background-solid: @mantle; + --yt-spec-raised-background: @mantle; + --ytcp-general-background-b: @mantle; + --ytcp-analytics-reach-background: @mantle; + --yt-spec-black-2: @mantle; - --ytcp-general-background-c: @crust !important; - --ytcp-menu-background: @surface0 !important; + --ytcp-general-background-c: @crust; + --ytcp-menu-background: @surface0; - --ytcp-container-border-color: @surface0 !important; - --ytcp-container-hovered-border-color: @surface0 !important; - --ytcp-line-divider-solid: @surface0 !important; - --ytcp-container-border-color-inverse: @subtext0 !important; - --ytcp-line-divider-solid-inverse: @subtext0 !important; + --ytcp-container-border-color: @surface0; + --ytcp-container-hovered-border-color: @surface0; + --ytcp-line-divider-solid: @surface0; + --ytcp-container-border-color-inverse: @subtext0; + --ytcp-line-divider-solid-inverse: @subtext0; - --ytcp-call-to-action: @accent !important; - --ytcp-call-to-action-inverse: @mantle !important; - --ytcp-call-to-action-raised-background: @accent !important; - --yt-spec-brand-button-background: @accent !important; - --ytcp-call-to-action-raised-disabled: @surface2 !important; - --ytcp-call-to-action-raised-disabled-background: @overlay2 !important; - --ytcp-call-to-action-raised-background-inverse: @base !important; - --ytcp-call-to-action-raised-disabled-inverse: @surface2 !important; + --ytcp-call-to-action: @accent; + --ytcp-call-to-action-inverse: @mantle; + --ytcp-call-to-action-raised-background: @accent; + --yt-spec-brand-button-background: @accent; + --ytcp-call-to-action-raised-disabled: @surface2; + --ytcp-call-to-action-raised-disabled-background: @overlay2; + --ytcp-call-to-action-raised-background-inverse: @base; + --ytcp-call-to-action-raised-disabled-inverse: @surface2; --ytcp-call-to-action-raised-disabled-background-inverse: @overlay2 - !important; + ; - --yt-spec-brand-background-primary: @surface0 !important; + --yt-spec-brand-background-primary: @surface0; - --yt-compact-link-icon-color: @overlay2 !important; - --ytcp-icon-active: @accent !important; - --ytcp-icon-inactive: @overlay2 !important; - --ytcp-icon-disabled: @overlay0 !important; - --ytcp-icon-active-inverse: @overlay1 !important; - --ytcp-icon-disabled-inverse: @subtext1 !important; + --yt-compact-link-icon-color: @overlay2; + --ytcp-icon-active: @accent; + --ytcp-icon-inactive: @overlay2; + --ytcp-icon-disabled: @overlay0; + --ytcp-icon-active-inverse: @overlay1; + --ytcp-icon-disabled-inverse: @subtext1; - --ytcp-error-red: @red !important; - --ytcp-badge-red: @red !important; - --ytcp-error-red-inverse: @red !important; - --ytcp-themed-red-inverse: @red !important; - --ytcp-themed-red: @accent !important; - --ytcp-themed-blue: @accent !important; + --ytcp-error-red: @red; + --ytcp-badge-red: @red; + --ytcp-error-red-inverse: @red; + --ytcp-themed-red-inverse: @red; + --ytcp-themed-red: @accent; + --ytcp-themed-blue: @accent; --ytcp-badge-blue: fade(@accent, 30%); - --ytcp-badge-blue-solid: @blue !important; - --ytcp-themed-blue-inverse: @blue !important; - --ytcp-themed-green: @green !important; - --ytmus-genre-primary-melon: @green !important; - --ytcp-themed-green-inverse: @green !important; - --ytcp-analytics-pine: @green !important; - --ytcp-analytics-pine-inverse: @green !important; - --ytcp-analytics-parrot: @green !important; - --ytcp-themed-yellow: @peach !important; - --ytmus-genre-primary-gold: @peach !important; - --ytcp-yellow-inverse: @peach !important; - --ytcp-badge-yellow: @peach !important; - --ytcp-analytics-yellow: @peach !important; - --ytcp-analytics-apricot: @peach !important; - --ytcp-suggested-action: @teal !important; - --ytcp-analytics-overview: @teal !important; - --ytcp-analytics-revenue: @teal !important; - --ytcp-analytics-default-secondary: @teal !important; - --ytcp-analytics-royal-blue: @lavender !important; - --ytcp-analytics-reach: @lavender !important; - --ytcp-analytics-audience: @lavender !important; - --ytcp-analytics-engagement: @pink !important; - --ytcp-analytics-revenue-secondary: @pink !important; - --ytcp-analytics-bubblegum: @flamingo !important; - --ytmus-genre-primary-ruby: @flamingo !important; - --ytmus-genre-primary-salmon: @mauve !important; - --ytmus-genre-primary-orange: @maroon !important; - --ytmus-genre-primary-sky: @sky !important; - --ytmus-genre-primary-sky-inverse: @sky !important; + --ytcp-badge-blue-solid: @blue; + --ytcp-themed-blue-inverse: @blue; + --ytcp-themed-green: @green; + --ytmus-genre-primary-melon: @green; + --ytcp-themed-green-inverse: @green; + --ytcp-analytics-pine: @green; + --ytcp-analytics-pine-inverse: @green; + --ytcp-analytics-parrot: @green; + --ytcp-themed-yellow: @peach; + --ytmus-genre-primary-gold: @peach; + --ytcp-yellow-inverse: @peach; + --ytcp-badge-yellow: @peach; + --ytcp-analytics-yellow: @peach; + --ytcp-analytics-apricot: @peach; + --ytcp-suggested-action: @teal; + --ytcp-analytics-overview: @teal; + --ytcp-analytics-revenue: @teal; + --ytcp-analytics-default-secondary: @teal; + --ytcp-analytics-royal-blue: @lavender; + --ytcp-analytics-reach: @lavender; + --ytcp-analytics-audience: @lavender; + --ytcp-analytics-engagement: @pink; + --ytcp-analytics-revenue-secondary: @pink; + --ytcp-analytics-bubblegum: @flamingo; + --ytmus-genre-primary-ruby: @flamingo; + --ytmus-genre-primary-salmon: @mauve; + --ytmus-genre-primary-orange: @maroon; + --ytmus-genre-primary-sky: @sky; + --ytmus-genre-primary-sky-inverse: @sky; - --yt-spec-badge-chip-background: @surface1 !important; - --ytcp-focus-inverse: @accent !important; - --ytcp-focus: @accent !important; - --ytcp-selected-item: @accent !important; - --ytcp-hover-item: @overlay2 !important; - --ytcp-chip-active-focus: @accent !important; - --ytcp-playhead: @overlay2 !important; - --ytcp-playhead-inverse: @overlay2 !important; + --yt-spec-badge-chip-background: @surface1; + --ytcp-focus-inverse: @accent; + --ytcp-focus: @accent; + --ytcp-selected-item: @accent; + --ytcp-hover-item: @overlay2; + --ytcp-chip-active-focus: @accent; + --ytcp-playhead: @overlay2; + --ytcp-playhead-inverse: @overlay2; } ytcp-button.destructive.ytls-error-dialog { - color: @base !important; + color: @base; } yt-formatted-string.ytls-error-dialog, tp-yt-iron-icon.ytls-error-dialog { - color: @text !important; + color: @text; } } }