/* ==UserStyle== @name YouTube Catppuccin @namespace github.com/catppuccin/userstyles/styles/youtube @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/youtube @version 4.2.13 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/youtube/catppuccin.user.css @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Ayoutube @description Soothing pastel theme for YouTube @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"] @var checkbox logo "Enable YouTube logo" 1 @var checkbox oled "Enable black bars" 0 ==/UserStyle== */ @-moz-document domain('youtube.com') { :root[dark] { #catppuccin(@darkFlavor, @accentColor); } :root:not([dark]) { #catppuccin(@lightFlavor, @accentColor); } #catppuccin(@lookup, @accent) { @rosewater: @catppuccin[@@lookup][@rosewater]; @flamingo: @catppuccin[@@lookup][@flamingo]; @pink: @catppuccin[@@lookup][@pink]; @mauve: @catppuccin[@@lookup][@mauve]; @red: @catppuccin[@@lookup][@red]; @maroon: @catppuccin[@@lookup][@maroon]; @peach: @catppuccin[@@lookup][@peach]; @yellow: @catppuccin[@@lookup][@yellow]; @green: @catppuccin[@@lookup][@green]; @teal: @catppuccin[@@lookup][@teal]; @sky: @catppuccin[@@lookup][@sky]; @sapphire: @catppuccin[@@lookup][@sapphire]; @blue: @catppuccin[@@lookup][@blue]; @lavender: @catppuccin[@@lookup][@lavender]; @text: @catppuccin[@@lookup][@text]; @subtext1: @catppuccin[@@lookup][@subtext1]; @subtext0: @catppuccin[@@lookup][@subtext0]; @overlay2: @catppuccin[@@lookup][@overlay2]; @overlay1: @catppuccin[@@lookup][@overlay1]; @overlay0: @catppuccin[@@lookup][@overlay0]; @surface2: @catppuccin[@@lookup][@surface2]; @surface1: @catppuccin[@@lookup][@surface1]; @surface0: @catppuccin[@@lookup][@surface0]; @base: @catppuccin[@@lookup][@base]; @mantle: @catppuccin[@@lookup][@mantle]; @crust: @catppuccin[@@lookup][@crust]; @accent-color: @catppuccin[@@lookup][@@accent]; @text-filter: @catppuccin[@@lookup][@text_filter]; @white: if(@lookup = latte, @base, @text); @black: if(@lookup = latte, @text, @base); color: @text; background: @base !important; color-scheme: if(@lookup = latte, light, dark); ::selection { background-color: fade(@accent-color, 30%); } input, textarea { &::placeholder { color: @subtext0 !important; } } &, [dark], [system-icons], [darker-dark-theme], &[dark], &[system-icons], &[darker-dark-theme] { --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-color !important; --yt-brand-medium-red: @accent-color !important; --yt-brand-light-red: @accent-color !important; --yt-spec-red-30: @peach !important; --yt-spec-red-70: @red !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: fadeout(@crust, 15%) !important; --yt-spec-black-pure-alpha-30: fadeout(@crust, 30%) !important; --yt-spec-black-pure-alpha-60: fadeout(@crust, 60%) !important; --yt-spec-black-pure-alpha-80: fadeout(@crust, 80%) !important; --yt-spec-black-1-alpha-98: fadeout(@crust, 98%) !important; --yt-spec-black-1-alpha-95: fadeout(@crust, 95%) !important; --yt-spec-white-1-alpha-10: fadeout(@text, 10%) !important; --yt-spec-white-1-alpha-20: fadeout(@text, 20%) !important; --yt-spec-white-1-alpha-25: fadeout(@text, 25%) !important; --yt-spec-white-1-alpha-30: fadeout(@text, 30%) !important; --yt-spec-white-1-alpha-70: fadeout(@text, 70%) !important; --yt-spec-white-1-alpha-95: fadeout(@text, 95%) !important; --yt-spec-white-1-alpha-98: fadeout(@text, 98%) !important; --yt-brand-medium-red-alpha-90: fadeout(@accent-color, 90%) !important; --yt-brand-medium-red-alpha-30: fadeout(@accent-color, 30%) !important; --yt-brand-light-red-alpha-30: fadeout(@accent-color, 30%) !important; --yt-spec-light-blue-alpha-30: fadeout(@sapphire, 30%) !important; --yt-spec-dark-blue-alpha-30: fadeout(@sapphire, 30%) !important; --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: fadeout(@surface1, 10%) !important; --yt-spec-outline: @surface0 !important; --yt-spec-shadow: fadeout(@crust, 25%) !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-color !important; --yt-spec-call-to-action-inverse: @accent-color !important; --yt-spec-suggested-action: fadeout(@accent-color, 80%) !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-touch-response-inverse: @accent-color !important; --yt-spec-brand-icon-active: @accent-color !important; --yt-spec-brand-button-background: @accent-color !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-color !important; --yt-spec-themed-green: @green !important; --yt-spec-ad-indicator: @teal !important; --yt-spec-themed-overlay-background: fadeout(@crust, 80%) !important; --yt-spec-commerce-badge-background: @green !important; --yt-spec-static-brand-red: @accent-color !important; --yt-spec-static-brand-white: @text !important; --yt-spec-static-brand-black: @base !important; --yt-spec-static-clear-color: fadeout(@crust, 0%) !important; --yt-spec-static-clear-black: fadeout(@crust, 0%) !important; --yt-spec-static-ad-yellow: @peach !important; --yt-spec-static-grey: @subtext0 !important; --yt-spec-static-overlay-background-solid: @crust !important; --yt-spec-static-overlay-background-heavy: @crust; --yt-spec-static-overlay-background-medium: fade(@crust, 50%) !important; --yt-spec-static-overlay-background-medium-light: fadeout( @crust, 30% ) !important; --yt-spec-static-overlay-background-light: fadeout( @crust, 10% ) !important; --yt-spec-static-overlay-text-primary: @text !important; --yt-spec-static-overlay-text-secondary: fadeout( @subtext0, 70% ) !important; --yt-spec-static-overlay-text-disabled: fadeout( @subtext0, 30% ) !important; --yt-spec-static-overlay-call-to-action: @accent-color !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-color !important; --yt-spec-static-overlay-button-secondary: @surface0 !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-color !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-badge-chip-background: if( @lookup =latte, @crust, @surface0 ) !important; --yt-spec-verified-badge-background: @overlay0 !important; --yt-spec-call-to-action-fadeoutd: fadeout(@sapphire, 30%) !important; --yt-spec-call-to-action-hover: @accent-color !important; --yt-spec-brand-button-background-hover: @accent-color !important; --yt-spec-brand-link-text-fadeoutd: fadeout( @accent-color, 30% ) !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-color !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-paper-tab-ink: fadeout(@text, 30%); --yt-spec-filled-button-text: @text !important; --yt-spec-selected-nav-text: @text !important; --iron-icon-fill-color: @text !important; /* Search bar */ --ytd-searchbox-border-color: @surface0 !important; --ytd-searchbox-legacy-border-color: @surface0 !important; --ytd-searchbox-legacy-border-shadow-color: fadeout( @crust, 0% ) !important; --ytd-searchbox-legacy-button-color: @mantle !important; --ytd-searchbox-legacy-button-border-color: @surface0 !important; --ytd-searchbox-legacy-button-focus-color: @accent-color !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-color !important; --ytd-searchbox-background: @base !important; --ytd-searchbox-text-color: @text !important; /* System icons */ --yt-spec-icon-inactive: @text !important; --yt-spec-icon-disabled: @overlay1 !important; --yt-spec-brand-icon-inactive: @overlay2 !important; /* Yt video Page */ --yt-live-chat-background-color: @base !important; --yt-live-chat-action-panel-background-color: @base !important; --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: fadeout(@text, 54%) !important; --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-color !important; --yt-live-chat-mention-background-color: @accent-color !important; --yt-live-chat-mention-text-color: @text !important; --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-overlay-color: fadeout(@mantle, 50%); --yt-live-chat-dialog-background-color: @base !important; --yt-emoji-picker-variant-selector-bg-color: @base !important; --yt-live-chat-moderation-mode-hover-background-color: fadeout( @mantle, 30% ) !important; --yt-grey: @subtext0 !important; --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-color !important; --yt-live-chat-slider-active-color: @accent-color !important; --yt-live-chat-slider-container-color: @surface0 !important; --yt-live-chat-slider-markers-color: @text !important; --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: fadeout( @crust, 50% ) !important; --yt-live-chat-automod-button-explanation-color: fadeout( @accent-color, 70% ) !important; --yt-live-chat-shimmer-background-color: fadeout(@crust, 40%) !important; --yt-live-chat-shimmer-linear-gradient: linear-gradient( 0deg, fadeout(@text, 0.1) 40%, fadeout(@base, 0.3) 50%, fadeout(@text, 0.1) 60% ) !important; --yt-live-chat-vem-background-color: @mantle !important; --yt-live-chat-product-picker-icon-color: fadeout(@text, 50%) !important; --yt-live-chat-product-picker-hover-color: @overlay0 !important; --yt-live-chat-product-picker-disabled-icon-color: fadeout( @text, 30% ) !important; --yt-live-chat-action-panel-background-color-transparent: ( null ) !important; --paper-tooltip-background: @overlay0 !important; --paper-tooltip-text-color: @text !important; /* Links */ --yt-endpoint-color: @accent-color !important; --yt-endpoint-visited-color: @accent-color !important; --yt-endpoint-hover-color: @accent-color !important; --sb-dark-red-outline: @accent-color !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-color !important; } &: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-color !important; --light-primary-color: @accent-color !important; --dark-primary-color: @blue !important; --accent-color: @accent-color !important; --light-accent-color: @accent-color !important; --dark-accent-color: @accent-color !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; } /* Misc */ & when (@logo = 0) { ytd-topbar-logo-renderer, svg.ytd-consent-bump-v2-lightbox { display: none; } } #channel-name.ytd-video-meta-block { --yt-endpoint-color: @accent-color !important; --yt-endpoint-visited-color: @accent-color !important; color: @accent-color !important; } .yt-page-navigation-progress { background: @accent-color !important; } /* 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-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; } ytd-playlist-panel-renderer[collapsible][collapsed][use-color-palette] .header.ytd-playlist-panel-renderer { --iron-icon-fill-color: @text !important; background-color: @base !important; } #container.ytd-masthead { --iron-icon-fill-color: @text !important; } #background.ytd-masthead { --yt-frosted-glass-desktop: @base !important; } 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; } #ytd-player #container when (@oled =0) { background: @crust !important; } .ytp-progress-list when not(@lookup = latte) { background: fade(@surface0, 80%); } .ytp-load-progress when not(@lookup = latte) { background: fade(@overlay0, 100%); } 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-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-color !important; --yt-button-payment-background-color: @accent-color !important; } yt-icon-button.yt-live-chat-item-list-renderer { background-color: @accent-color; color: @crust; &:hover { background-color: darken(@accent-color, 5%); } } 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; } /* Skeleton */ #guide-skeleton, #home-container-skeleton, #home-chips { background-color: @base; z-index: -1; } #guide-skeleton .guide-ghost-icon, #guide-skeleton .guide-ghost-text, .masthead-skeleton-icon, #home-page-skeleton .skeleton-bg-color, .watch-skeleton .skeleton-bg-color { background-color: @surface1; } /* Ambient mode */ #cinematics, #cinematic-container { mix-blend-mode: lighten; } .ytp-settings-button.ytp-hd-quality-badge::after, .ytp-settings-button.ytp-hdr-quality-badge::after, .ytp-settings-button.ytp-4k-quality-badge::after, .ytp-settings-button.ytp-5k-quality-badge::after, .ytp-settings-button.ytp-8k-quality-badge::after, .ytp-settings-button.ytp-3d-badge-grey::after, .ytp-settings-button.ytp-3d-badge::after { background-color: @accent-color; } /* Icons */ [fill="red"], [fill="#F00"], [fill="#FF0000"], [fill="#f03"], [fill="#FF0033"] { fill: @accent-color !important; } [fill="white"] { fill: if(@lookup = latte, @base, @text) !important; } /* verification badge */ [src*="https://www.gstatic.com/images/icons/material/system/1x/check_circle_grey600_36dp.png"] { filter: @text-filter; } yt-icon.ytd-logo [fill="white"] { fill: @crust !important; } .yt-spec-icon-shape { [fill="#FAFAFA"], [fill="#000"], [fill="#fff"], [fill="#FFF"], [fill="#FFFFFF"] { fill: @crust !important; } } .yt-spec-icon-badge-shape--style-overlay .yt-spec-icon-badge-shape__icon, .yt-spec-icon-badge-shape { color: @text; } .yt-spec-icon-badge-shape--type-notification .yt-spec-icon-badge-shape__badge { background-color: @accent-color !important; color: @surface0 !important; } /* Buttons */ .yt-spec-button-shape-next--mono { &.yt-spec-button-shape-next--tonal { color: @text; background-color: @surface0; [fill="rgb(3,3,3)"], [fill="rgb(0,0,0)"], [fill="rgb(255,255,255)"] { fill: @text !important; } [stroke="rgb(0,0,0)"], [stroke="rgb(255,255,255)"] { stroke: @text !important; } /* Accent for filled-in thumbs up (like button) */ [animated-icon-type="LIKE"] { g path[fill] { fill: @accent-color !important; + [stroke] { stroke: @accent-color !important; } } } &:hover { background-color: @surface1; } } &.yt-spec-button-shape-next--outline { color: @text; border-color: @surface2; &:hover { background-color: @surface2; } } &.yt-spec-button-shape-next--text { color: @text; /* Accent for filled-in thumbs up (like button) */ path[d="M3,11h3v10H3V11z M18.77,11h-4.23l1.52-4.94C16.38,5.03,15.54,4,14.38,4c-0.58,0-1.14,0.24-1.52,0.65L7,11v10h10.43 c1.06,0,1.98-0.67,2.19-1.61l1.34-6C21.23,12.15,20.18,11,18.77,11z"] { fill: @accent-color; } &:hover { background-color: @surface1; } } &.yt-spec-button-shape-next--filled { color: @crust; background-color: @accent-color; &:hover { background-color: darken(@accent-color, 5%); } } } .yt-spec-button-shape-next--disabled { background-color: fade(@overlay0, 50%); color: @subtext0; } .yt-spec-button-shape-next--overlay { &.yt-spec-button-shape-next--tonal, &.yt-spec-button-shape-next--text { color: @text; } &.yt-spec-button-shape-next--filled { color: @crust; background-color: @accent-color; } &.yt-spec-button-shape-next--outline { color: @text; border-color: @surface1; &:hover { background: @surface0; } } } .yt-spec-button-shape-next--call-to-action { &.yt-spec-button-shape-next--outline { color: @accent-color; border-color: @surface2; &:hover { background-color: fade(@accent-color, 30%); color: @accent-color; } } &.yt-spec-button-shape-next--text { color: @accent-color; &:hover { background-color: fade(@accent-color, 30%); } } &.yt-spec-button-shape-next--filled { color: @crust; background-color: @accent-color; &:hover { background-color: lighten(@accent-color, 5%); } } } .yt-spec-button-shape-next--disabled.yt-spec-button-shape-next--filled { color: @subtext0; background-color: fade(@surface1, 70%); } /* Search box */ ytd-searchbox[has-focus] #container.ytd-searchbox { border-color: @accent-color; } .sbsb_a { background: @surface0; } .sbdd_b { border-color: var(--yt-spec-raised-background); background-color: var(--yt-spec-raised-background); } .sbpqs_a, .gsfs { color: var(--yt-spec-text-primary); } .sbsb_i { color: var(--yt-spec-call-to-action); } .sbsb_d { background-color: var(--yt-spec-additive-background); } .sbdd_c { visibility: hidden; } /* "Suggestion removed" */ .sbpqs_c { color: @overlay1; } .sbpqs_a::before, .sbqs_c::before { @svg: escape( '' ); content: url("data:image/svg+xml,@{svg}"); background: none; } /* Video description */ #description { [style*="color: rgb(255, 255, 255);"], [style*="color: rgb(19, 19, 19);"] { color: @text !important; } } .yt-core-attributed-string__link--call-to-action-color { color: @accent-color; } .YtwCourseProgressViewModelHostProgressTitle, .YtwCourseProgressViewModelHostProgressSubtitle { color: @text; } .YtwCourseProgressViewModelHostProgressBar { background-color: fade(@white, 20%); .YtwCourseProgressViewModelHostProgressBarFill { background-color: @text; } } /* Thumbnails */ #time-status:has([aria-label="LIVE"]), .badge[aria-label="LIVE"], .badge[aria-label="PREMIERE"], .badge-shape-wiz--live.badge-shape-wiz--overlay, .badge-shape-wiz--thumbnail-live { background: @accent-color; color: @crust; } #thumbnail [style="background-color: rgba(51, 51, 51, 0.8);"], .YtInlinePlayerControlsTopRightControlsCircleButton, .badge-shape-wiz--default.badge-shape-wiz--overlay, .branding-context-container-inner { background-color: @surface0 !important; color: @text; } .ytp-sb-unsubscribe { background-color: @surface2; color: @text; } .ytp-sb-subscribe { background-color: @accent-color; color: @crust; } ytd-thumbnail-overlay-resume-playback-renderer { background-color: @surface1; } .badge-shape-wiz--thumbnail-default { color: @text; background: fade(@crust, 80%); } /* Panels, popups, tooltips */ .ytp-tooltip-text { background: fade(@surface0, 90%) !important; color: @text; text-shadow: none !important; } .ytp-popup { background: fade(@surface0, 90%) !important; text-shadow: none; } .ytp-panel-menu, .ytp-panel-header, .ytp-panel-footer, .ytp-menuitem-label, .ytp-premium-label, .ytp-menuitem-content, .ytp-menuitem-label-count, .ytp-menu-label-secondary, .ytd-menu-title-renderer { color: @text; } .ytp-panel-header { border-bottom-color: @surface2; } .ytp-panel-footer-content-link { color: @accent-color; } .ytp-panel-back-button { @svg: escape( '' ); background-image: url("data:image/svg+xml,@{svg}"); } .ytp-menuitem-toggle-checkbox { background-color: @surface2; &::after { background-color: @subtext0; } } .ytp-menuitem[aria-checked="true"] .ytp-menuitem-toggle-checkbox { background: @accent-color; } .ytp-menuitem { &:not([aria-disabled="true"]):hover { background-color: @surface1; } svg > path:not([fill="none"]) { fill: @text !important; } &[aria-haspopup="true"] .ytp-menuitem-content { @svg: escape( '' ); background-image: url("data:image/svg+xml,@{svg}"); } &[role="menuitemradio"][aria-checked="true"] .ytp-menuitem-label { @svg: escape( '' ); background-image: url("data:image/svg+xml,@{svg}"); } } /* Video player */ .ytp-cards-button { .ytp-cards-button-icon { use { fill: @black; } path { fill: @white; } } } .ytp-cards-teaser { .ytp-cards-teaser-box { background-color: @surface2; border-bottom-color: @surface2; } .ytp-cards-teaser-text { color: @text; } } .html5-video-player { color: @white; .ytp-swatch-background-color, .ytp-play-progress { background: @accent-color !important; } .ytp-svg-fill, [fill="#fff"] { fill: @white !important; } .ytp-volume-slider-handle { &, &::before { background-color: @white; } &::after { background-color: fade(@white, 20%); } } .ytp-time-current, .ytp-time-separator, .ytp-time-duration { color: @white; } .ytp-live-badge { &[disabled]::before { background: @accent-color; } &::before { background: @overlay0; } } /* youtube live ring */ .yt-spec-avatar-shape__badge-text { color: @crust; } .yt-spec-avatar-shape--live-ring { border-color: @accent-color; } .yt-spec-avatar-shape__live-badge { background-color: @accent-color; } .ytp-button, .ytp-subtitles-button { &[aria-pressed]::after { background-color: @accent-color; } } /* stats for nerds */ .ytp-sfn { background: fade(@base, 80%); color: @text; } .ytp-autonav-toggle-button { @svg: escape( '' ); background-image: url("data:image/svg+xml;charset=utf-8,@{svg}"); &::after { @svg: escape( '' ); background-image: url("data:image/svg+xml;charset=utf-8,@{svg}"); } &[aria-checked="true"] { @svg: escape( '' ); background-image: url("data:image/svg+xml;charset=utf-8,@{svg}"); &::after { @svg: escape( '' ); background-image: url("data:image/svg+xml;charset=utf-8,@{svg}"); } } } } /* Video highlight */ ytd-rich-item-renderer.ytd-rich-item-renderer-highlight { background-color: fade(@accent-color, 10%) !important; box-shadow: fade(@accent-color, 10%) 0 0 0 10px !important; } #shorts-container { --yt-spec-static-overlay-text-primary: @white; .yt-spec-button-shape-next--overlay.yt-spec-button-shape-next--tonal { color: @white; } .YtwFactoidRendererLabel { color: @subtext0; } .YtwFactoidRendererValue { color: @text; } ytd-reel-video-renderer:not([is-watch-while-mode]) { .yt-spec-button-shape-with-label__label { color: @subtext1; } } ytd-reel-video-renderer[is-watch-while-mode] .yt-spec-button-shape-with-label__label { color: @white; } .yt-spec-button-shape-next--overlay-dark.yt-spec-button-shape-next--tonal, .YtdDesktopShortsVolumeControlsBackgroundScrim { background-color: fade(@black, 60%); color: @white; } .YtProgressBarLineProgressBarPlayed, .YtProgressBarPlayheadProgressBarPlayheadDot { background-color: @accent-color !important; } .yt-spec-button-shape-next--overlay-dark.yt-spec-button-shape-next--filled { background-color: @accent-color; color: @crust; } .YtdDesktopShortsVolumeControlsMuteIcon { color: @white !important; } /* Buy super thanks button */ .YtdShortsSuggestedActionStaticHostContainer { background-color: fade(@black, 60%); .YtdShortsSuggestedActionStaticHostLeadingIcon, .YtdShortsSuggestedActionStaticHostPrimaryText { color: @text; } } } /* Shorts titles and views on homepage */ .ShortsLockupViewModelHostOutsideMetadataEndpoint { color: @text; } .ShortsLockupViewModelHostOutsideMetadataSubhead { color: @subtext1; } /* Buy super thanks bar */ #progressContainer.tp-yt-paper-progress { background-color: @mantle !important; } #comment-chip-container.yt-pdg-comment-chip-renderer, .slider-knob-inner.tp-yt-paper-slider { background: @accent-color !important; } #primaryProgress.tp-yt-paper-progress { background: linear-gradient(139deg, @peach, @maroon, @red, @pink); } #container.ytd-pdg-comment-preview-renderer { background-color: @mantle !important; } #comment-chip-price.yt-pdg-comment-chip-renderer, yt-icon.yt-pdg-comment-chip-renderer { color: @crust; } /* Channel pages */ .yt-tab-shape-wiz__tab { color: @subtext1; } .yt-tab-shape-wiz__tab--tab-selected { color: @text; } .yt-tab-group-shape-wiz__slider { background-color: @text; } .yt-tab-shape-wiz:hover .yt-tab-shape-wiz__tab-bar { background-color: @subtext1; } .truncated-text-wiz, .page-header-view-model-wiz__page-header-content-metadata { color: @subtext1; } .page-header-view-model-wiz__page-header-title, [style="color: rgb(255, 255, 255);"]:has(svg), .truncated-text-wiz__absolute-button { color: @text !important; } .yt-contextual-sheet-layout-wiz { background-color: @mantle; .yt-list-item-view-model-wiz__container--tappable:hover { background-color: @surface0; } .yt-list-item-view-model-wiz__title, .yt-list-item-view-model-wiz__accessory, .radio-shape-wiz__label-container { color: @text; } } /* channel details */ .profile-badge-view-model-wiz__badge-description { color: @text !important; } .profile-badge-view-model-wiz__badge-subtitle { color: @subtext0 !important; } .yt-profile-identity-info-view-model-wiz__divider { border-color: @surface0 !important; } /* Profiles */ .yt-profile-card-view-model-wiz { background-color: @mantle; } .yt-profile-identity-info-view-model-wiz__channel-name, .yt-profile-info-view-model-wiz__section-title, .yt-comment-interaction-view-model-wiz__video-title, .yt-shared-subscription-view-model-wiz__channel-name { color: @text; } .yt-profile-identity-info-view-model-wiz__badge, .yt-profile-identity-info-view-model-wiz__metadata-handle, .yt-profile-identity-info-view-model-wiz__metadata-content, .yt-profile-info-view-model-wiz__section-subtitle, .yt-comment-interaction-view-model-wiz__comment-content { color: @subtext0; } /* Horizontal list arrows */ .arrow.yt-horizontal-list-renderer { background: @surface0; } } } @-moz-document url-prefix('https://studio.youtube.com') { :root[dark] { #catppuccin(@darkFlavor, @accentColor); } :root { #catppuccin(@lightFlavor, @accentColor); } #catppuccin(@lookup, @accent) { @rosewater: @catppuccin[@@lookup][@rosewater]; @flamingo: @catppuccin[@@lookup][@flamingo]; @pink: @catppuccin[@@lookup][@pink]; @mauve: @catppuccin[@@lookup][@mauve]; @red: @catppuccin[@@lookup][@red]; @maroon: @catppuccin[@@lookup][@maroon]; @peach: @catppuccin[@@lookup][@peach]; @yellow: @catppuccin[@@lookup][@yellow]; @green: @catppuccin[@@lookup][@green]; @teal: @catppuccin[@@lookup][@teal]; @sky: @catppuccin[@@lookup][@sky]; @sapphire: @catppuccin[@@lookup][@sapphire]; @blue: @catppuccin[@@lookup][@blue]; @lavender: @catppuccin[@@lookup][@lavender]; @text: @catppuccin[@@lookup][@text]; @subtext1: @catppuccin[@@lookup][@subtext1]; @subtext0: @catppuccin[@@lookup][@subtext0]; @overlay2: @catppuccin[@@lookup][@overlay2]; @overlay1: @catppuccin[@@lookup][@overlay1]; @overlay0: @catppuccin[@@lookup][@overlay0]; @surface2: @catppuccin[@@lookup][@surface2]; @surface1: @catppuccin[@@lookup][@surface1]; @surface0: @catppuccin[@@lookup][@surface0]; @base: @catppuccin[@@lookup][@base]; @mantle: @catppuccin[@@lookup][@mantle]; @crust: @catppuccin[@@lookup][@crust]; @accent-color: @catppuccin[@@lookup][@@accent]; color-scheme: if(@lookup = latte, light, dark); ::selection { background-color: fade(@accent-color, 30%); } input, textarea { &::placeholder { color: @subtext0 !important; } } [src="https://www.gstatic.com/youtube/img/creator/yt_studio_logo_white.svg"] { @svg: escape( '' ); content: url("data:image/svg+xml,@{svg}"); } &, html, html[dark], html[dark][dark], &[dark], &[light], [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-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; --ytcp-general-background-a: @base !important; --yt-spec-base-background: @base !important; --yt-spec-black-3: @base !important; --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; --ytcp-general-background-c: @crust !important; --ytcp-menu-background: @surface0 !important; --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-call-to-action: @accent-color !important; --ytcp-call-to-action-inverse: @mantle !important; --ytcp-call-to-action-raised-background: @accent-color !important; --yt-spec-brand-button-background: @accent-color !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-raised-disabled-background-inverse: @overlay2 !important; --yt-spec-brand-background-primary: @surface0 !important; --yt-compact-link-icon-color: @overlay2 !important; --ytcp-icon-active: @accent-color !important; --ytcp-icon-inactive: @overlay2 !important; --ytcp-icon-disabled: @overlay0 !important; --ytcp-icon-active-inverse: @overlay1 !important; --ytcp-icon-disabled-inverse: @subtext1 !important; --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-color !important; --ytcp-themed-blue: @accent-color !important; --ytcp-badge-blue: fade(@accent-color, 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; --yt-spec-badge-chip-background: @surface1 !important; --ytcp-focus-inverse: @accent-color !important; --ytcp-focus: @accent-color !important; --ytcp-selected-item: @accent-color !important; --ytcp-hover-item: @overlay2 !important; --ytcp-chip-active-focus: @accent-color !important; --ytcp-playhead: @overlay2 !important; --ytcp-playhead-inverse: @overlay2 !important; } ytcp-button.destructive.ytls-error-dialog { color: @base !important; } yt-formatted-string.ytls-error-dialog, tp-yt-iron-icon.ytls-error-dialog { color: @text !important; } } } @-moz-document domain('m.youtube.com') { html[darker-dark-theme] { #catppuccin(@darkFlavor, @accentColor); } html { #catppuccin(@lightFlavor, @accentColor); } #catppuccin(@lookup, @accent) { @rosewater: @catppuccin[@@lookup][@rosewater]; @flamingo: @catppuccin[@@lookup][@flamingo]; @pink: @catppuccin[@@lookup][@pink]; @mauve: @catppuccin[@@lookup][@mauve]; @red: @catppuccin[@@lookup][@red]; @maroon: @catppuccin[@@lookup][@maroon]; @peach: @catppuccin[@@lookup][@peach]; @yellow: @catppuccin[@@lookup][@yellow]; @green: @catppuccin[@@lookup][@green]; @teal: @catppuccin[@@lookup][@teal]; @sky: @catppuccin[@@lookup][@sky]; @sapphire: @catppuccin[@@lookup][@sapphire]; @blue: @catppuccin[@@lookup][@blue]; @lavender: @catppuccin[@@lookup][@lavender]; @text: @catppuccin[@@lookup][@text]; @subtext1: @catppuccin[@@lookup][@subtext1]; @subtext0: @catppuccin[@@lookup][@subtext0]; @overlay2: @catppuccin[@@lookup][@overlay2]; @overlay1: @catppuccin[@@lookup][@overlay1]; @overlay0: @catppuccin[@@lookup][@overlay0]; @surface2: @catppuccin[@@lookup][@surface2]; @surface1: @catppuccin[@@lookup][@surface1]; @surface0: @catppuccin[@@lookup][@surface0]; @base: @catppuccin[@@lookup][@base]; @mantle: @catppuccin[@@lookup][@mantle]; @crust: @catppuccin[@@lookup][@crust]; @accent-color: @catppuccin[@@lookup][@@accent]; background-color: @base !important; color: @text !important; /* Ambient mode */ #cinematics { mix-blend-mode: lighten; } .mobile-topbar-header[data-mode="watch"], ytm-mobile-topbar-renderer:not([ambient-topbar]) { background: @base; } .mobile-topbar-header[data-mode="watch"] .mobile-topbar-logo, .mobile-topbar-header[data-mode="watch"] .mobile-topbar-title, .mobile-topbar-header[data-mode="watch"] .mobile-topbar-header-content { color: @text; } .yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container, .modern-styling { background: @surface0; } .yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper { border-bottom-color: @surface0; } .yt-spec-bottom-sheet-layout__bottom-sheet-content { color: @text; } /* Comment box */ .engagement-panel-container { background: @mantle; } /* Bottom bar */ ytm-pivot-bar-renderer { background: @mantle; color: @text; border-top-color: @surface0; } /* Chips */ .chip-bar { background-color: @base; } [chip-style*="STYLE_"] { .chip-container { color: @text; background-color: @surface0; } &.selected .chip-container { color: @crust; background-color: @accent-color; } } /* Buttons */ .yt-spec-touch-feedback-shape--touch-response { .yt-spec-touch-feedback-shape__fill { background-color: @text; } .yt-spec-touch-feedback-shape__stroke { border-color: @surface1; } } .yt-spec-touch-feedback-shape--overlay-touch-response-inverse .yt-spec-touch-feedback-shape__fill { background-color: @accent-color; } .yt-spec-touch-feedback-shape--overlay-touch-response .yt-spec-touch-feedback-shape__fill { background-color: @text; } } } /* prettier-ignore */ @catppuccin: { @latte: { @rosewater: #dc8a78; @flamingo: #dd7878; @pink: #ea76cb; @mauve: #8839ef; @red: #d20f39; @maroon: #e64553; @peach: #fe640b; @yellow: #df8e1d; @green: #40a02b; @teal: #179299; @sky: #04a5e5; @sapphire: #209fb5; @blue: #1e66f5; @lavender: #7287fd; @text: #4c4f69; @text_filter: brightness(0) saturate(100%) invert(31%) sepia(12%) saturate(1015%) hue-rotate(196deg) brightness(94%) contrast(91%); @subtext1: #5c5f77; @subtext0: #6c6f85; @overlay2: #7c7f93; @overlay1: #8c8fa1; @overlay0: #9ca0b0; @surface2: #acb0be; @surface1: #bcc0cc; @surface0: #ccd0da; @base: #eff1f5; @mantle: #e6e9ef; @crust: #dce0e8; }; @frappe: { @rosewater: #f2d5cf; @flamingo: #eebebe; @pink: #f4b8e4; @mauve: #ca9ee6; @red: #e78284; @maroon: #ea999c; @peach: #ef9f76; @yellow: #e5c890; @green: #a6d189; @teal: #81c8be; @sky: #99d1db; @sapphire: #85c1dc; @blue: #8caaee; @lavender: #babbf1; @text: #c6d0f5; @text_filter: brightness(0) saturate(100%) invert(80%) sepia(11%) saturate(726%) hue-rotate(192deg) brightness(104%) contrast(92%); @subtext1: #b5bfe2; @subtext0: #a5adce; @overlay2: #949cbb; @overlay1: #838ba7; @overlay0: #737994; @surface2: #626880; @surface1: #51576d; @surface0: #414559; @base: #303446; @mantle: #292c3c; @crust: #232634; }; @macchiato: { @rosewater: #f4dbd6; @flamingo: #f0c6c6; @pink: #f5bde6; @mauve: #c6a0f6; @red: #ed8796; @maroon: #ee99a0; @peach: #f5a97f; @yellow: #eed49f; @green: #a6da95; @teal: #8bd5ca; @sky: #91d7e3; @sapphire: #7dc4e4; @blue: #8aadf4; @lavender: #b7bdf8; @text: #cad3f5; @text_filter: brightness(0) saturate(100%) invert(84%) sepia(5%) saturate(1385%) hue-rotate(192deg) brightness(101%) contrast(92%); @subtext1: #b8c0e0; @subtext0: #a5adcb; @overlay2: #939ab7; @overlay1: #8087a2; @overlay0: #6e738d; @surface2: #5b6078; @surface1: #494d64; @surface0: #363a4f; @base: #24273a; @mantle: #1e2030; @crust: #181926; }; @mocha: { @rosewater: #f5e0dc; @flamingo: #f2cdcd; @pink: #f5c2e7; @mauve: #cba6f7; @red: #f38ba8; @maroon: #eba0ac; @peach: #fab387; @yellow: #f9e2af; @green: #a6e3a1; @teal: #94e2d5; @sky: #89dceb; @sapphire: #74c7ec; @blue: #89b4fa; @lavender: #b4befe; @text: #cdd6f4; @text_filter: brightness(0) saturate(100%) invert(87%) sepia(6%) saturate(985%) hue-rotate(191deg) brightness(96%) contrast(99%); @subtext1: #bac2de; @subtext0: #a6adc8; @overlay2: #9399b2; @overlay1: #7f849c; @overlay0: #6c7086; @surface2: #585b70; @surface1: #45475a; @surface0: #313244; @base: #1e1e2e; @mantle: #181825; @crust: #11111b; }; } // vim:ft=less