fix(youtube): misc (#2207)

This commit is contained in:
uncenter authored and GitHub committed 2026-04-14 09:01:10 -05:00
1 parent 66ed25ab04
commit c9cf53c5ea
1 file changed
+366 -277
+366 -277
View File
@@ -17,17 +17,16 @@
@var checkbox logo "Enable YouTube logo" 1 @var checkbox logo "Enable YouTube logo" 1
@var checkbox oled "Enable black bars" 0 @var checkbox oled "Enable black bars" 0
@var checkbox sponsorBlock "Enable SponsorBlock segments" 1 @var checkbox sponsorBlock "Enable SponsorBlock segments" 1
@var checkbox hideColorSampleTint "Hide color-sampled tint" 1
==/UserStyle== */ ==/UserStyle== */
@import "https://userstyles.catppuccin.com/lib/lib.less"; @import "https://userstyles.catppuccin.com/lib/lib.less";
@-moz-document domain("youtube.com") { @-moz-document domain("youtube.com") {
:root[dark] { :root[dark] {
#catppuccin(@darkFlavor) !important; #catppuccin(@darkFlavor);
} }
:root:not([dark]) { :root:not([dark]) {
#catppuccin(@lightFlavor) !important; #catppuccin(@lightFlavor);
} }
#catppuccin(@flavor) { #catppuccin(@flavor) {
@@ -40,6 +39,7 @@
color: @text; color: @text;
background: @base; background: @base;
#--variables() {
&, &,
[dark], [dark],
[system-icons], [system-icons],
@@ -49,6 +49,28 @@
&[darker-dark-theme] { &[darker-dark-theme] {
--efyt-control-bar-background-color: @mantle; --efyt-control-bar-background-color: @mantle;
--dimmer-text: @text; --dimmer-text: @text;
/* Newest Variables */
--yt-sys-color-baseline--base-background: @base;
--yt-sys-color-baseline--menu-background: @mantle;
--yt-sys-color-baseline--raised-background: @surface0;
--yt-sys-color-baseline--additive-background: @surface0;
--yt-sys-color-baseline--wordmark-text: @text;
--yt-sys-color-baseline--text-primary: @text;
--yt-sys-color-baseline--text-secondary: @subtext0;
--yt-sys-color-baseline--call-to-action: @accent;
--yt-sys-color-baseline--suggested-action: mix(@accent, @base, 30%);
--yt-sys-color-baseline--outline: @surface0;
--yt-sys-color-baseline--outline-opaque: @surface1;
--yt-sys-color-baseline--outline-inverse-opaque: @overlay0;
--yt-sys-color-baseline--overlay-background-medium-light: fade(
@black,
60%
);
--yt-sys-color-baseline--overlay-background-heavy: fade(@black, 80%);
--yt-sys-color-baseline--overlay-background-solid: @crust;
--yt-sys-color-baseline--overlay-text-primary: @text;
--yt-spec-white-1: @text; --yt-spec-white-1: @text;
--yt-spec-white-2: @subtext0; --yt-spec-white-2: @subtext0;
--yt-spec-white-3: @subtext1; --yt-spec-white-3: @subtext1;
@@ -98,7 +120,7 @@
--yt-spec-dark-blue-alpha-30: fade(@sapphire, 70%); --yt-spec-dark-blue-alpha-30: fade(@sapphire, 70%);
--yt-spec-base-background: @base; --yt-spec-base-background: @base;
--yt-spec-raised-background: @base; --yt-spec-raised-background: @surface0;
--yt-spec-menu-background: @mantle; --yt-spec-menu-background: @mantle;
--yt-spec-inverted-background: @text; --yt-spec-inverted-background: @text;
--yt-spec-additive-background: @surface0; --yt-spec-additive-background: @surface0;
@@ -131,7 +153,7 @@
--yt-spec-static-brand-white: @text; --yt-spec-static-brand-white: @text;
--yt-spec-static-brand-black: @base; --yt-spec-static-brand-black: @base;
--yt-spec-static-clear-color: fade(@crust, 100%); --yt-spec-static-clear-color: fade(@crust, 100%);
--yt-spec-static-clear-black: fade(@crust, 100%); --yt-spec-static-clear-black: @base;
--yt-spec-static-ad-yellow: @peach; --yt-spec-static-ad-yellow: @peach;
--yt-spec-static-grey: @subtext0; --yt-spec-static-grey: @subtext0;
--yt-spec-static-overlay-background-solid: @crust; --yt-spec-static-overlay-background-solid: @crust;
@@ -197,6 +219,11 @@
--yt-spec-selected-nav-text: @text; --yt-spec-selected-nav-text: @text;
--iron-icon-fill-color: @text; --iron-icon-fill-color: @text;
--yt-spec-overlay-text-primary: @text;
--yt-spec-overlay-background-medium-light: fade(@black, 60%);
--yt-spec-overlay-background-heavy: fade(@black, 80%);
--yt-spec-overlay-background-solid: @black;
/* Search bar */ /* Search bar */
--ytd-searchbox-border-color: @surface0; --ytd-searchbox-border-color: @surface0;
--ytd-searchbox-legacy-border-color: @surface0; --ytd-searchbox-legacy-border-color: @surface0;
@@ -218,8 +245,9 @@
--yt-spec-icon-disabled: @overlay1; --yt-spec-icon-disabled: @overlay1;
--yt-spec-brand-icon-inactive: @overlay2; --yt-spec-brand-icon-inactive: @overlay2;
/* Yt video Page */ /* Live chat */
--yt-live-chat-background-color: @base; --yt-live-chat-background-color: @base;
--yt-live-chat-primary-text-color: @text;
--yt-live-chat-action-panel-background-color: @base; --yt-live-chat-action-panel-background-color: @base;
--yt-live-chat-secondary-background-color: @surface1; --yt-live-chat-secondary-background-color: @surface1;
--yt-live-chat-toast-background-color: @surface2; --yt-live-chat-toast-background-color: @surface2;
@@ -295,12 +323,16 @@
); );
--yt-live-chat-action-panel-background-color-transparent: (null); --yt-live-chat-action-panel-background-color-transparent: (null);
--paper-tooltip-background: @overlay0; --paper-tooltip-background: @surface2;
--paper-tooltip-text-color: @text; --paper-tooltip-text-color: @text;
.ytTooltipContainerDefaultTooltipContent {
background: var(--paper-tooltip-background);
color: var(--paper-tooltip-text-color);
}
/* Links */ /* Links */
--yt-endpoint-color: @accent; --yt-endpoint-color: @text;
--yt-endpoint-visited-color: @accent; --yt-endpoint-visited-color: @text;
--yt-endpoint-hover-color: @accent; --yt-endpoint-hover-color: @accent;
--sb-dark-red-outline: @accent; --sb-dark-red-outline: @accent;
@@ -350,30 +382,12 @@
--dark-theme-disabled-color: @subtext1; --dark-theme-disabled-color: @subtext1;
--dark-theme-divider-color: @overlay0; --dark-theme-divider-color: @overlay0;
} }
}
#--variables() !important;
/* Misc */ /* Misc */
& when (@hideColorSampleTint = 1) {
// Thumbnail/video preview hover effect
.ytSpecTouchFeedbackShapeHoverEffect {
background-color: @surface0 !important;
}
// Video description background (collapsed on hover)
ytd-watch-metadata {
--yt-saturated-raised-background: @surface1;
--yt-saturated-text-primary: @text;
--yt-saturated-text-secondary: @subtext1;
}
// Video description text (expanded)
.yt-core-attributed-string--link-inherit-color {
color: @text !important;
}
// Video description links
.yt-core-attributed-string--highlight-text-decorator {
background-color: @surface2;
}
}
& when (@logo = 0) { & when (@logo = 0) {
ytd-topbar-logo-renderer, ytd-topbar-logo-renderer,
svg.ytd-consent-bump-v2-lightbox { svg.ytd-consent-bump-v2-lightbox {
@@ -381,13 +395,7 @@
} }
} }
#channel-name.ytd-video-meta-block { #progress.yt-page-navigation-progress {
--yt-endpoint-color: @accent;
--yt-endpoint-visited-color: @accent;
color: @accent;
}
.yt-page-navigation-progress {
background: @accent; background: @accent;
} }
@@ -429,10 +437,6 @@
background-color: @base; background-color: @base;
} }
#ytd-player #container when (@oled = 0) {
background: @crust;
}
.ytp-progress-list when not(@flavor = latte) { .ytp-progress-list when not(@flavor = latte) {
background: fade(@surface0, 80%); background: fade(@surface0, 80%);
} }
@@ -459,23 +463,13 @@
yt-icon-button.yt-live-chat-item-list-renderer { yt-icon-button.yt-live-chat-item-list-renderer {
background-color: @accent; background-color: @accent;
color: @crust; color: @base;
&:hover { &:hover {
background-color: darken(@accent, 5%); background-color: darken(@accent, 5%);
} }
} }
ytd-author-comment-badge-renderer:not(
[style*="--ytd-author-comment-badge-icon-background-color: transparent;"]
) {
--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 */ /* Skeleton */
#guide-skeleton, #guide-skeleton,
#home-container-skeleton, #home-container-skeleton,
@@ -484,6 +478,12 @@
z-index: -1; z-index: -1;
} }
ytd-app[is-shorts-page] {
background: var(
--yt-spec-base-background
); // fix unset background on shorts page
}
#guide-skeleton .guide-ghost-icon, #guide-skeleton .guide-ghost-icon,
#guide-skeleton .guide-ghost-text, #guide-skeleton .guide-ghost-text,
.masthead-skeleton-icon, .masthead-skeleton-icon,
@@ -495,7 +495,7 @@
/* Ambient mode */ /* Ambient mode */
#cinematics, #cinematics,
#cinematic-container { #cinematic-container {
mix-blend-mode: lighten; display: none;
} }
.ytp-settings-button.ytp-hd-quality-badge::after, .ytp-settings-button.ytp-hd-quality-badge::after,
@@ -522,11 +522,6 @@
fill: if(@flavor = latte, @base, @text); fill: if(@flavor = latte, @base, @text);
} }
/* 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"] { yt-icon.ytd-logo [fill="white"] {
fill: @crust; fill: @crust;
} }
@@ -608,7 +603,7 @@
} }
&.yt-spec-button-shape-next--filled { &.yt-spec-button-shape-next--filled {
color: @crust; color: @base;
background-color: @accent; background-color: @accent;
&:hover { &:hover {
@@ -631,10 +626,13 @@
} }
&.yt-spec-button-shape-next--text { &.yt-spec-button-shape-next--text {
color: @text; color: @text;
&:hover {
background-color: @surface0;
}
} }
&.yt-spec-button-shape-next--filled { &.yt-spec-button-shape-next--filled {
color: @crust; color: @base;
background-color: @accent; background-color: @accent;
} }
@@ -667,7 +665,7 @@
} }
&.yt-spec-button-shape-next--filled { &.yt-spec-button-shape-next--filled {
color: @crust; color: @base;
background-color: @accent; background-color: @accent;
&:hover { &:hover {
@@ -682,9 +680,6 @@
} }
/* Search box */ /* Search box */
ytd-searchbox[has-focus] #container.ytd-searchbox {
border-color: @accent;
}
.ytSearchboxComponentInputBox, .ytSearchboxComponentInputBox,
.ytSearchboxComponentInputBoxDark { .ytSearchboxComponentInputBoxDark {
@@ -699,10 +694,15 @@
border-color: @accent; border-color: @accent;
} }
.ytSuggestionComponentSuggestionHover:hover, .ytSuggestionComponentPersonalizedSuggestion {
.ytSuggestionComponentSuggestionHoverDark:hover { color: @text;
}
.ytSuggestionComponentHighlighted {
background: @surface1; background: @surface1;
} }
.ytSuggestionComponentLargerRemovedText {
color: @overlay1;
}
.ytSearchboxComponentSuggestionsContainer, .ytSearchboxComponentSuggestionsContainer,
.ytSearchboxComponentSuggestionsContainerDark { .ytSearchboxComponentSuggestionsContainerDark {
@@ -718,7 +718,7 @@
.ytSearchboxComponentSearchButton, .ytSearchboxComponentSearchButton,
.ytSearchboxComponentSearchButtonDark { .ytSearchboxComponentSearchButtonDark {
color: var(--ytd-searchbox-text-color); color: var(--ytd-searchbox-text-color);
background: @surface0; background: var(--yt-spec-raised-background);
border-color: var(--ytd-searchbox-border-color); border-color: var(--ytd-searchbox-border-color);
} }
@@ -727,63 +727,39 @@
color: var(--ytd-searchbox-text-color); color: var(--ytd-searchbox-text-color);
} }
.ytSearchboxComponentReportButton,
.ytSearchboxComponentReportButtonDark,
.ytSuggestionComponentRemoveLink,
.ytSuggestionComponentRemoveLinkDark {
color: @subtext0;
}
.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(
'<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="1 1 27 27" width="24" focusable="false" style="width:100%;height:100%" pointer-events="none" display="block"><path fill="@{text}" d="m20.87 20.17-5.59-5.59A6.96 6.96 0 0 0 17 10c0-3.87-3.13-7-7-7s-7 3.13-7 7a6.995 6.995 0 0 0 11.58 5.29l5.59 5.59zM10 16c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"/></svg>'
);
content: url("data:image/svg+xml,@{svg}");
background: none;
}
/* Video description */ /* Video description */
.yt-core-attributed-string__link--call-to-action-color { // Video description background (collapsed on hover)
ytd-watch-metadata {
--yt-saturated-raised-background: @surface1 !important;
--yt-saturated-text-primary: @text !important;
--yt-saturated-text-secondary: @subtext1 !important;
}
// Video description text (expanded)
ytd-text-inline-expander .ytAttributedStringLinkInheritColor:not(
.ytAttributedStringLink
) {
color: @text !important;
}
// Video description YouTube links
.ytAttributedStringHighlightTextDecorator {
background-color: @surface2 !important;
}
/* Links */
.ytAttributedStringLinkCallToActionColor {
color: @accent; color: @accent;
} }
.YtwCourseProgressViewModelHostProgressTitle, /* Course Playlist (e.g. https://www.youtube.com/playlist?list=PLZHQObOWTQDNPOjrT6KVlfJuKtYTftqH6) */
.YtwCourseProgressViewModelHostProgressSubtitle { .ytwCourseProgressViewModelHostProgressTitle,
.ytwCourseProgressViewModelHostProgressSubtitle {
color: @text; color: @text;
} }
.ytwCourseProgressViewModelHostProgressBar {
.YtwCourseProgressViewModelHostProgressBar {
background-color: fade(@white, 20%); background-color: fade(@white, 20%);
.YtwCourseProgressViewModelHostProgressBarFill { .ytwCourseProgressViewModelHostProgressBarFill {
background-color: @text; background-color: @text;
} }
} }
@@ -797,37 +773,80 @@
color: @subtext0; color: @subtext0;
} }
/* Thumbnails */ // "Ask" - AI chat
.ytVideoDescriptionYouchatSectionViewModelSectionTitle {
#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: @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;
color: @text; color: @text;
} }
.ytVideoDescriptionYouchatSectionViewModelSubHeaderText {
color: @subtext0;
}
.ytwYouChatItemViewModelHost {
color: @text;
}
.ytwYouChatChipsDataChip {
color: @text;
border-color: @surface2;
&:hover {
background-color: @surface1;
}
}
.chatInputViewModelChatDisclaimer {
color: @subtext0;
}
// Timeline/Transcript
.ytwTimelineChapterViewModelTitle,
.ytShelfHeaderLayoutTitle {
color: @text;
}
.ytwTranscriptSegmentViewModelHost {
color: @subtext0;
}
.ytwTranscriptSegmentViewModelTimestamp {
background-color: @surface2;
color: @subtext1;
}
.ytwTranscriptSegmentViewModelTimestampActive {
background-color: @overlay0;
color: @text;
}
// Video Attributes (Music, Games)
.videoAttributesSectionViewModelTitle,
.ytVideoAttributeViewModelTitle {
color: @text;
}
.ytVideoAttributeViewModelSubtitle,
.ytVideoAttributeViewModelSecondarySubtitle {
color: @subtext1;
}
/* Thumbnails */
.ytp-sb-unsubscribe { .ytp-sb-unsubscribe {
background-color: @surface2; background-color: @surface2;
color: @text; color: @text;
} }
.ytp-sb-subscribe { .ytp-sb-subscribe {
background-color: @accent; background-color: @accent;
color: @crust; color: @base;
} }
// Watch progress bar
.ytThumbnailOverlayProgressBarHostWatchedProgressBar {
background-color: @surface2;
}
.ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment {
background: @accent;
}
// Watch progress bar (legacy component)
ytd-thumbnail-overlay-resume-playback-renderer { ytd-thumbnail-overlay-resume-playback-renderer {
background-color: @surface1; background-color: @surface2;
#progress.ytd-thumbnail-overlay-resume-playback-renderer {
background: @accent;
} }
.badge-shape-wiz--thumbnail-default {
color: @text;
background: fade(@crust, 80%);
} }
/* Panels, popups, tooltips */ /* Panels, popups, tooltips */
@@ -855,14 +874,6 @@
color: @text; color: @text;
} }
.ytp-panel-header {
border-bottom-color: @surface2;
}
.yt-spec-dialog-layout {
background-color: @mantle;
}
.ytp-panel-footer-content-link { .ytp-panel-footer-content-link {
color: @accent; color: @accent;
} }
@@ -874,35 +885,23 @@
background-image: url("data:image/svg+xml,@{svg}"); background-image: url("data:image/svg+xml,@{svg}");
} }
.ytp-menuitem[aria-checked="false"] .ytp-menuitem-toggle-checkbox {
&::after {
background-color: @overlay1;
}
}
.ytp-menuitem[aria-checked="true"] .ytp-menuitem-toggle-checkbox { .ytp-menuitem[aria-checked="true"] .ytp-menuitem-toggle-checkbox {
@svg: escape( background-color: @surface2;
'<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" version="1.1"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z" fill="@{text}"/></svg>'
); &::after {
background-image: url("data:image/svg+xml,@{svg}"); background-color: @text;
background-color: @accent; }
} }
.ytp-menuitem { .ytp-menuitem {
&:not([aria-disabled="true"]):hover { &:not([aria-disabled="true"]):hover {
background-color: @surface1; background-color: @surface1;
} }
svg > path:not([fill="none"]) {
fill: @text;
}
&[aria-haspopup="true"] .ytp-menuitem-content {
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32" version="1.1"><path d="m12.59 20.34 4.58-4.59-4.58-4.59L14 9.75l6 6-6 6z" fill="@{text}"/></svg>'
);
background-image: url("data:image/svg+xml,@{svg}");
}
&[role="menuitemradio"][aria-checked="true"] .ytp-menuitem-label {
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" version="1.1"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z" fill="@{text}"/></svg>'
);
background-image: url("data:image/svg+xml,@{svg}");
}
} }
/* Video player */ /* Video player */
@@ -942,6 +941,9 @@
.html5-video-player { .html5-video-player {
color: @white; color: @white;
& when (@oled = 0) {
background-color: @crust;
}
.ytp-swatch-background-color, .ytp-swatch-background-color,
.ytp-play-progress { .ytp-play-progress {
@@ -978,17 +980,6 @@
} }
} }
/* youtube live ring */
.yt-spec-avatar-shape__badge-text {
color: @crust;
}
.yt-spec-avatar-shape--live-ring {
border-color: @accent;
}
.yt-spec-avatar-shape__live-badge {
background-color: @accent;
}
.ytp-button, .ytp-button,
.ytp-subtitles-button { .ytp-subtitles-button {
&[aria-pressed]::after { &[aria-pressed]::after {
@@ -1033,9 +1024,6 @@
#shorts-container { #shorts-container {
--yt-spec-static-overlay-text-primary: @white; --yt-spec-static-overlay-text-primary: @white;
.yt-spec-button-shape-next--overlay.yt-spec-button-shape-next--tonal {
color: @white;
}
.YtwFactoidRendererLabel { .YtwFactoidRendererLabel {
color: @subtext0; color: @subtext0;
@@ -1045,27 +1033,16 @@
} }
ytd-reel-video-renderer:not([is-watch-while-mode]) { ytd-reel-video-renderer:not([is-watch-while-mode]) {
.yt-spec-button-shape-with-label__label { .ytSpecButtonShapeWithLabelLabel {
color: @subtext1; color: @subtext1;
} }
} }
ytd-reel-video-renderer[is-watch-while-mode] ytd-reel-video-renderer[is-watch-while-mode]
.yt-spec-button-shape-with-label__label { .ytSpecButtonShapeWithLabelLabel {
color: @white; color: @white;
} }
.yt-spec-button-shape-next--overlay-dark.yt-spec-button-shape-next--tonal, .ytdVolumeControlsMuteIcon {
.YtdDesktopShortsVolumeControlsBackgroundScrim {
background-color: fade(@black, 60%);
color: @white;
}
.yt-spec-button-shape-next--overlay-dark.yt-spec-button-shape-next--filled {
background-color: @accent;
color: @crust;
}
.YtdDesktopShortsVolumeControlsMuteIcon {
color: @white; color: @white;
} }
@@ -1079,6 +1056,54 @@
} }
} }
} }
// Video/thumbnail renderer overlayed buttons
.ytBadgeShapeThumbnailDefaultRedesign, // Timestamp
// Play Next
.yt-spec-button-shape-next--overlay-dark.yt-spec-button-shape-next--tonal[style="background-color: rgba(0, 0, 0, 0.3);"],
.ytdVolumeControlsBackgroundScrim, // Shorts Volume Slider
.ytInlinePlayerControlsTopRightControlsCircleButton // Homepage
{
background: fade(@black, 60%) !important;
color: @white;
}
.yt-spec-button-shape-next--overlay-dark.yt-spec-button-shape-next--filled {
background: @accent;
color: @base;
}
/* Video previews */
// Background (on hover)
.ytSpecTouchFeedbackShapeHoverEffect {
background-color: @surface0 !important;
}
// Title
.ytLockupMetadataViewModelTitle {
color: @text !important;
}
// Details
.ytLockupMetadataViewModelMetadata {
color: @subtext0 !important;
}
// Badges (e.g. "CC", "New")
.ytBadgeShapeDefault {
color: @subtext0;
background: @surface1;
&.ytBadgeShapeModern {
background: none;
}
}
// "Fundraiser"
.ytBadgeShapeCommerce {
color: @green;
}
// "Live"
.ytBadgeShapeThumbnailLive {
background: @accent;
color: @base;
}
/* Shorts titles and views on homepage */ /* Shorts titles and views on homepage */
.shortsLockupViewModelHostOutsideMetadataEndpoint { .shortsLockupViewModelHostOutsideMetadataEndpoint {
@@ -1111,80 +1136,178 @@
color: @crust; color: @crust;
} }
/* Channel pages */ /* Avatar */
.yt-tab-shape-wiz__tab { .ytSpecAvatarShapeLiveRing::after {
color: @subtext1; background: @accent !important;
} }
.yt-tab-shape-wiz__tab--tab-selected { .ytSpecAvatarShapeLiveBadge {
background-color: @accent;
}
.ytSpecAvatarShapeLiveBadgeText {
color: @base;
}
/* Channel pages */
// Channel name
.ytPageHeaderViewModelHost {
.ytPageHeaderViewModelTitle {
color: @text; color: @text;
} }
.yt-tab-group-shape-wiz__slider {
// Subscribers and video statistics
.ytPageHeaderViewModelContentMetadata {
color: @subtext0;
}
// Handle and verified checkmark
[style$="color: rgb(255, 255, 255);"] {
color: @text !important;
}
}
// Channel bio
.ytTruncatedTextHost {
color: @subtext0;
}
// "...More", "and X more links"
.ytAttributionViewModelSuffix .ytAttributedStringLinkCallToActionColor,
.ytTruncatedTextAbsoluteButton {
color: @text;
}
// Channel tabs
.ytTabShapeTab {
color: @subtext1;
}
.ytTabShapeTabSelected {
color: @text;
}
.tabGroupShapeSlider {
background-color: @text; background-color: @text;
} }
.yt-tab-shape-wiz:hover .yt-tab-shape-wiz__tab-bar { .ytTabShapeHost:hover .ytTabShapeTabBar {
background-color: @subtext1; 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;
}
.yt-contextual-sheet-layout-wiz {
background-color: @mantle;
.yt-list-item-view-model-wiz__container--tappable:hover { /* Components */
/* Menus and context sheets */
.ytContextualSheetLayoutHost, ytd-menu-popup-renderer {
background-color: @mantle;
}
.ytListItemViewModelTappable:hover {
background-color: @surface0; background-color: @surface0;
} }
.ytPanelHeaderViewModelTitle,
.ytListItemViewModelTitle,
.ytListItemViewModelAccessory {
color: @text;
}
.ytListItemViewModelSubtitle {
color: @subtext1;
}
/* Dialogs */
.ytSpecDialogLayoutHost {
background-color: @mantle;
.yt-list-item-view-model-wiz__title, .ytDialogHeaderViewModelText {
.yt-list-item-view-model-wiz__accessory,
.radio-shape-wiz__label-container {
color: @text; color: @text;
} }
} }
/* channel details */ /* Dropdowns */
.profile-badge-view-model-wiz__badge-description { .ytDropdownViewModelTitle {
color: @text; color: @text;
} }
.ytDropdownViewModelLabel {
.profile-badge-view-model-wiz__badge-subtitle {
color: @subtext0; color: @subtext0;
} }
.ytDropdownViewModelSupportError {
.yt-profile-identity-info-view-model-wiz__divider { color: @red;
border-color: @surface0; }
.ytDropdownViewModelDropdownContainerErrorBorder {
border-color: @red;
}
.ytStandardsTextareaShapeTextareaContainerOutline:focus-within {
border-color: @text;
} }
/* Profiles */ /* Toggles/Switches */
.yt-profile-card-view-model-wiz {
.ytSwitchShapeTrack {
background-color: @surface2;
}
.ytSwitchShapeKnob {
background-color: @mantle; background-color: @mantle;
} }
.yt-profile-identity-info-view-model-wiz__channel-name, .ytSwitchShapeTrackActive {
.yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font, background-color: @accent;
.yt-profile-info-view-model-wiz__section-title, }
.yt-comment-interaction-view-model-wiz__video-title,
.yt-shared-subscription-view-model-wiz__channel-name { /* Textareas */
.ytStandardsTextareaShapeTextarea {
color: @text; color: @text;
} }
.yt-profile-identity-info-view-model-wiz__badge, .ytStandardsTextareaShapePlaceholder {
.yt-profile-identity-info-view-model-wiz__metadata-handle, color: @subtext0;
.yt-profile-identity-info-view-model-wiz__metadata-content, }
.yt-profile-identity-info-view-model-wiz__metadata-delimiter, .ytStandardsTextareaShapeTextarea::placeholder {
.yt-profile-identity-info-view-model-wiz__metadata-pronouns, color: transparent !important; // defaults important overrides this
.yt-profile-info-view-model-wiz__section-divider, }
.yt-profile-info-view-model-wiz__section-subtitle,
.yt-comment-interaction-view-model-wiz__comment-content { /* Comments */
.ytSubThreadConnection,
.ytSubThreadContinuation {
border-left-color: @surface1;
}
.ytSubThreadConnection {
border-bottom-color: @surface1;
}
.ytSubThreadHovered > .ytSubThreadThreadline .ytSubThreadConnection,
.ytSubThreadHovered > .ytSubThreadThreadline .ytSubThreadContinuation {
border-left-color: @overlay0;
}
.ytSubThreadHovered > .ytSubThreadThreadline .ytSubThreadConnection {
border-bottom-color: @overlay0;
}
/* Profile Card */
// (Click a user's profile picture in the comments to view.)
.ytProfileCardViewModelHost {
background-color: @mantle;
// Name and handle
.ytProfileIdentityInfoViewModelChannelName,
.ytProfileIdentityInfoViewModelMetadataHandleWithBoldFont {
color: @text;
}
// Verification badge
.ytProfileIdentityInfoViewModelBadge {
filter: @text-filter;
}
// Statistics
.ytProfileIdentityInfoViewModelMetadataContent {
color: @subtext0; color: @subtext0;
} }
/* Horizontal list arrows */ // Subsection (e.g. "On this channel")
.arrow.yt-horizontal-list-renderer { .ytProfileInfoViewModelSectionTitle {
background: @surface0; color: @text;
}
.ytProfileInfoViewModelSectionSubtitle {
color: @subtext1;
}
.ytProfileInfoViewModelSectionHeartIcon {
filter: @subtext1-filter;
}
// Subsection - "Recent comments on this channel"
.ytCommentInteractionViewModelVideoTitle {
color: @text;
}
.ytCommentInteractionViewModelCommentContent {
color: @subtext1;
}
} }
/* Live chat replay */ /* Live chat replay */
@@ -1198,34 +1321,9 @@
.yt-icon-shape { .yt-icon-shape {
color: @text; color: @text;
} }
.ytTextCarouselItemViewModelHost {
color: @subtext1;
} }
/* AI-generated video summary */
.video-summary-content-view-model-wiz__paragraph {
color: @text;
}
/* Playlist collapsed sidebar */
#next-video-title {
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;
}
}
/* Playlist metadata */
.metadata-stats.style-scope.ytd-playlist-byline-renderer,
.yt-lockup-metadata-view-model-wiz__metadata {
color: @subtext0;
}
/* Playlist titles in search results */
.yt-core-attributed-string.yt-core-attributed-string--white-space-pre-wrap {
color: @text;
} }
/* Category tag pills */ /* Category tag pills */
@@ -1235,16 +1333,7 @@
} }
.ytChipShapeActive { .ytChipShapeActive {
background-color: @accent; background-color: @accent;
color: @crust; color: @base;
}
/* Vertical ellipsis menu on main page */
.ytListViewModelHost {
background-color: @mantle;
color: @text;
.yt-icon-shape {
color: @text;
}
} }
} }
} }
@@ -1455,7 +1544,7 @@
} }
&.selected .chip-container { &.selected .chip-container {
color: @crust; color: @base;
background-color: @accent; background-color: @accent;
} }
} }