diff --git a/styles/youtube/catppuccin.user.css b/styles/youtube/catppuccin.user.css
index 8e846d9f..4c72c9db 100644
--- a/styles/youtube/catppuccin.user.css
+++ b/styles/youtube/catppuccin.user.css
@@ -2,7 +2,7 @@
@name YouTube Catppuccin
@namespace github.com/catppuccin/userstyles/styles/youtube
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/youtube
-@version 3.5.8
+@version 4.0.0
@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
@@ -15,15 +15,14 @@
@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 oledOn "Enable black bars" 0
-@var text scrollbar_width "Scrollbar width" 8px
+@var checkbox oled "Enable black bars" 0
==/UserStyle== */
-@-moz-document regexp('https?:\\/\\/(?!gaming\\.)(?!consent\\.)(?!vr\\.)(?!m\\.)(?!music\\.)(?!tv\\.)(?!artists\\.)(?!studio\\.).*youtube(?!kids\\.).*\\.com\\/(?!premium|howyoutubeworks).*$') {
- /* youtube.com */
+
+@-moz-document domain('youtube.com') {
:root[dark] {
#catppuccin(@darkFlavor, @accentColor);
}
- :root {
+ :root:not([dark]) {
#catppuccin(@lightFlavor, @accentColor);
}
@@ -56,12 +55,30 @@
@crust: @catppuccin[@@lookup][@crust];
@accent-color: @catppuccin[@@lookup][@@accent];
+ @white: if(@lookup = latte, @base, @text);
+ @black: if(@lookup = latte, @text, @base);
+
+ color: @text;
+ color-scheme: if(@lookup = latte, light, dark);
+
+ ::selection {
+ background-color: fade(@accent-color, 30%);
+ }
+
+ input,
+ textarea {
+ &::placeholder {
+ color: @subtext0 !important;
+ }
+ }
+
&,
[dark],
- html[system-icons][dark],
- html[system-icons] [dark],
- html[darker-dark-theme][dark],
- [darker-dark-theme] [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;
@@ -134,7 +151,7 @@
--yt-spec-brand-link-text: @sapphire !important;
--yt-spec-wordmark-text: @text !important;
--yt-spec-error-indicator: @red !important;
- --yt-spec-themed-blue: @sky !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, 0.8) !important;
@@ -147,10 +164,7 @@
--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: fadeout(
- @surface0,
- 20%
- ) !important;
+ --yt-spec-static-overlay-background-heavy: @surface0;
--yt-spec-static-overlay-background-medium: fadeout(
@crust,
0.6
@@ -314,6 +328,9 @@
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;
@@ -354,6 +371,8 @@
--dark-theme-divider-color: @overlay0 !important;
}
+ /* Misc */
+
& when (@logo = 0) {
ytd-topbar-logo-renderer,
svg.ytd-consent-bump-v2-lightbox {
@@ -367,7 +386,7 @@
color: @accent-color !important;
}
- /* selected chapter */
+ /* 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;
@@ -375,7 +394,6 @@
--ytd-macro-markers-list-item-timestamp-background-color: @surface1 !important;
}
- /* playlist selector */
ytd-playlist-panel-video-renderer {
--yt-lightsource-section2-color: @surface1 !important;
--yt-lightsource-section4-color: @surface2 !important;
@@ -390,7 +408,6 @@
background-color: @base !important;
}
- /* header bar icons */
#container.ytd-masthead {
--iron-icon-fill-color: @text !important;
}
@@ -401,12 +418,10 @@
background-color: @base !important;
}
- /* change color of the player edges */
- #ytd-player #container when (@oledOn =0) {
+ #ytd-player #container when (@oled =0) {
background: @crust !important;
}
- /* expandable meta */
ytd-expandable-metadata-renderer {
--yt-lightsource-section1-color: @base !important;
--yt-lightsource-section2-color: @surface0 !important;
@@ -424,371 +439,9 @@
--yt-button-payment-background-color: @accent-color !important;
}
- yt-icon.ytd-pinned-comment-badge-renderer * {
- fill: @text !important;
- }
-
- .yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--segmented-start::after {
- background: @overlay0 !important;
- }
-
- .html5-ypc-purchase {
- background: @accent-color !important;
- color: @mantle !important;
- &:hover {
- background: lighten(@accent-color, 10%) !important;
- }
- }
-
- .html5-ypc-description,
- .html5-ypc-title,
- .html5-ypc-action-heading {
- color: @text;
- }
-
- yt-notification-action-renderer[darker-dark-theme]
- tp-yt-paper-toast.yt-notification-action-renderer {
- background: @overlay0 !important;
- }
-
- /* volume slider */
- .ytp-volume-slider-handle {
- background: @accent-color !important;
- &::before {
- background: @accent-color !important;
- }
- }
-
- /* new videos dot */
- #newness-dot {
- background-color: @accent-color !important;
- }
-
- /* subtitle */
- .ytp-chrome-controls .ytp-button[aria-pressed]::after {
- background-color: @accent-color !important;
- }
-
- /* menu items */
- /* checkbox subitem */
- .ytp-menuitem-toggle-checkbox {
- background-color: @overlay1;
-
- &::after {
- background-color: @subtext0;
- }
- }
- .ytp-menuitem[aria-checked="true"] .ytp-menuitem-toggle-checkbox {
- background-color: @accent-color;
-
- &::after {
- background-color: @text;
- }
- }
-
- .ytp-menuitem:not([aria-disabled="true"]):hover {
- background: @surface1 !important;
- }
- .ytp-settings-button.ytp-hd-quality-badge,
- .ytp-settings-button.ytp-4k-quality-badge,
- .ytp-settings-button.ytp-5k-quality-badge,
- .ytp-settings-button.ytp-8k-quality-badge,
- .ytp-settings-button.ytp-hdr-quality-badge,
- .ytp-settings-button.ytp-3d-badge {
- &::after {
- background-color: @accent-color !important;
- }
- }
-
- .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 {
- color: @text;
- }
-
- .ytp-panel-header {
- border-bottom-color: @surface2;
- }
-
- .ytp-menuitem svg > path:not([fill="none"]) {
- fill: @text !important;
- }
-
- .ytp-menuitem[aria-haspopup="true"] .ytp-menuitem-content {
- @svg: escape(
- ''
- );
- background-image: url("data:image/svg+xml,@{svg}");
- }
- .ytp-panel-back-button {
- @svg: escape(
- ''
- );
- background-image: url("data:image/svg+xml,@{svg}");
- }
- .ytp-menuitem[role="menuitemradio"][aria-checked="true"]
- .ytp-menuitem-label {
- @svg: escape(
- ''
- );
- background-image: url("data:image/svg+xml,@{svg}");
- }
-
- .style-scope.ytd-thumbnail-overlay-toggle-button-renderer:hover {
- fill: @accent-color !important;
- }
-
- .yt-spec-button-shape-next--overlay.yt-spec-button-shape-next--filled,
- .yt-spec-button-shape-next--mono.yt-spec-button-shape-next--filled {
- background-color: @accent-color !important;
- .yt-spec-button-shape-next__icon yt-icon svg g path {
- fill: @base !important;
- }
- &:hover {
- background-color: darken(@accent-color, 20%) !important;
- }
- }
-
- .yt-spec-button-shape-next--overlay.yt-spec-button-shape-next--text {
- color: @text;
- }
-
- /* link */
- .yt-core-attributed-string__link--call-to-action-color {
- color: @sapphire !important;
- &:hover {
- color: @teal !important;
- }
- }
-
- /* private video warning */
- .WARNING.yt-alert-renderer {
- background-color: @yellow;
- }
-
- /* search input placeholder */
- #search-input.ytd-searchbox-spt #search::placeholder {
- color: @overlay0;
- }
-
- /* search results */
- .sbpqs_a::before,
- .sbqs_c::before {
- @svg: escape(
- ''
- );
- content: url("data:image/svg+xml,@{svg}");
- background: none;
- }
-
- /* Results backgrounds */
- .sbsb_a,
- .sbdd_b {
- background: @mantle !important;
- }
-
- /* search results */
- .gsfs {
- color: @text !important;
- }
-
- /* Hover and keyboard select background */
- .sbsb_c.gsfs:hover,
- .sbsb_d {
- background-color: @surface0 !important;
- }
-
- .sbfl_b {
- background-color: @mantle !important;
- &:hover {
- background-color: @surface0 !important;
- color: @accent-color !important;
- }
- }
-
- .sbpqs_a {
- color: @accent-color !important;
- }
-
- .sbfl_a {
- color: @subtext0 !important;
- }
-
- .sbsb_i {
- color: @subtext0;
- }
-
- /* Keyboard select text color and hover text color */
- .sbsb_c:hover .sbqs_c,
- .sbsb_c.gsfs.sbsb_d .sbqs_c {
- color: @accent-color !important;
- }
-
- .ytp-swatch-background-color {
- background-color: @accent-color !important;
- }
-
- /* exmplation box */
- .explanation-box[correct] * {
- color: @crust !important;
- }
-
- /* history tab header */
- .page-header-view-model-wiz__page-header-title {
- color: @text;
- }
-
- /* Video Music Names */
- .yt-video-attribute-view-model__title {
- color: @text;
- }
- .yt-video-attribute-view-model__subtitle {
- color: @subtext0;
- }
- .yt-video-attribute-view-model__secondary-subtitle {
- color: @subtext0;
- }
-
- /* custom likes + anims */
- yt-animated-icon[animated-icon-type="LIKE"]
- > ytd-lottie-player
- > lottie-component
- > svg
- > g:nth-child(2)
- > g:nth-child(2) {
- /* not liked */
- > g:nth-child(2),
- > g:nth-child(4) {
- > path:nth-child(1) {
- stroke: @text !important;
- }
- }
- /* liked */
- > g:nth-child(1),
- > g:nth-child(3) {
- > path:nth-child(1) {
- fill: @accent-color !important;
- }
- > path:nth-child(2) {
- stroke: @accent-color !important;
- }
- }
- }
-
- /* iv branding */
- /* Popup for when you hover over the channel avatar in the video */
- .iv-branding .branding-context-container-inner {
- background-color: @base !important;
- }
-
- /* video desc */
- yt-attributed-string.ytd-text-inline-expander:nth-child(1)
- > span:nth-child(1)
- > span:nth-child(1) {
- color: @text !important;
- }
- #attributed-snippet-text > span:nth-child(1) > span:nth-child(1) {
- color: @text !important;
- }
- span[class="yt-core-attributed-string--link-inherit-color"][style="color: rgb(255, 255, 255);"] {
- color: @text !important;
- }
-
- .iv-branding .iv-branding-context-name {
- color: @text !important;
- text-shadow: none !important;
- }
-
- /* Cards */
- .iv-drawer-content {
- background-color: fadeout(@mantle, 5%) !important;
- }
-
- .iv-drawer-header-text {
- color: @text !important;
- }
-
- .iv-card-content,
- .ytp-ce-expanding-overlay-background,
- .ytp-cards-teaser .ytp-cards-teaser-text,
- .ytp-cards-teaser .ytp-cards-teaser-box {
- background-color: @base !important;
- }
-
- .iv-card-content > :first-child,
- .iv-card h2,
- .ytp-cards-teaser .ytp-cards-teaser-text {
- color: @text !important;
- }
-
- .ytp-tooltip-text {
- background: @surface0 !important;
- color: @text;
- text-shadow: none !important;
- }
-
- .iv-card:hover .iv-card-primary-link,
- .ytp-ce-website-title {
- color: @accent-color !important;
- }
-
- .ytp-popup {
- background: @surface0 !important;
- text-shadow: none;
- }
-
- tp-yt-paper-dialog {
- background-color: @base !important;
- }
-
- /* live badges */
- .badge-style-type-live-now-alternate,
- ytd-thumbnail-overlay-time-status-renderer[overlay-style="LIVE"] {
- color: @crust !important;
- yt-icon svg {
- g path,
- path {
- fill: @crust !important;
- }
- }
- }
- .ytp-live-badge {
- &::before {
- background: @subtext1 !important;
- }
- &[disabled]::before {
- background: @accent-color !important;
- }
- }
-
- /* notification idicator */
- .yt-spec-icon-badge-shape--type-notification
- .yt-spec-icon-badge-shape__badge {
- background-color: @accent-color !important;
- color: @crust !important;
- }
- .yt-spec-icon-badge-shape--style-overlay .yt-spec-icon-badge-shape__icon {
- color: var(--yt-spec-icon-active-other) !important;
- }
- .yt-spec-icon-badge-shape {
- color: var(--yt-spec-icon-active-other) !important;
- }
-
- /* bell next to subscription button */
- .yt-animated-icon svg {
- g path,
- path {
- fill: @text !important;
- }
- }
-
- /* creator badges */
- ytd-author-comment-badge-renderer {
+ 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;
@@ -796,256 +449,25 @@
--ytd-author-comment-badge-icon-color: @text !important;
}
- /* ambient mode */
+ /* Ambient mode */
#cinematics {
mix-blend-mode: lighten;
}
- /* badges e.g. popular */
- yt-chip-cloud-chip-renderer[chip-style="STYLE_DEFAULT"][selected],
- yt-chip-cloud-chip-renderer[chip-style="STYLE_HOME_FILTER"][selected] {
- background: @accent-color !important;
- color: @crust !important;
- }
-
- /* Search border */
- ytd-searchbox[has-focus] #container.ytd-searchbox {
- border-color: @accent-color !important;
- }
-
- /* New Feature inline banner */
- .ytd-brand-video-singleton-renderer {
- background: @surface0 !important;
- color: @text !important;
- }
- yt-button-shape a {
- border-color: @text !important;
- color: @text !important;
- }
-
- /* Chapter overview buttons */
- #share-button,
- #repeat-button {
- button {
- color: @text !important;
- }
- }
-
- /* Error page */
- #error-page {
- background-color: @base !important;
- }
- .search_plugin_added {
- background-color: @base;
- }
-
- #error-page-content {
- color: @text !important;
- text-shadow: none;
- background-color: @base !important;
- > p {
- color: @text !important;
- text-shadow: none;
- }
- #masthead-search-terms.masthead-search-terms-border {
- border-color: @accent-color !important;
- box-shadow: none !important;
- }
- #yt-masthead {
- color: @text !important;
- text-shadow: none;
- #logo-container {
- .logo {
- filter: invert(1) grayscale(1);
- }
- .content-region {
- color: @text !important;
- text-shadow: none;
- }
- }
- #masthead-search #masthead-search-terms-border {
- input[type="text"] {
- color: @text !important;
- &:focus {
- color: @accent-color !important;
- }
- }
- }
- .search-button {
- background-color: @mantle !important;
- }
- }
- }
-
- /* channel homepage */
- /* selected tab */
- .yt-tab-shape-wiz__tab--tab-selected {
- color: @accent-color !important;
- }
- .yt-tab-group-shape-wiz__slider {
- background-color: @accent-color !important;
- }
-
- /* unselected */
- .yt-tab-shape-wiz__tab {
- color: @subtext1;
- }
-
- /* hover */
- .yt-tab-shape-wiz:hover {
- .yt-tab-shape-wiz__tab {
- color: lighten(@accent-color, 7.5);
- }
-
- .yt-tab-shape-wiz__tab-bar {
- background-color: lighten(@accent-color, 7.5);
- }
- }
-
- /* yt end cards */
- .ytp-ce-channel-subscribers-text {
- color: @subtext0;
- }
- .ytp-ce-channel-metadata {
- color: @text;
- }
- .yt-ui-ellipsis {
- background-color: @base;
- }
- a.ytp-ce-link,
- a.ytp-ce-link:hover,
- a.ytp-ce-link:visited {
- color: @accent-color !important;
- }
-
- /* theme short - we do it accent beacuse anything else is hard to read */
- reel-player-header-renderer #text.complex-string.ytd-channel-name a,
- reel-player-header-renderer {
- color: @accent-color;
- }
-
- /* buttons */
- .yt-spec-touch-feedback-shape--touch-response
- .yt-spec-touch-feedback-shape__fill {
- background-color: @text;
- }
- .yt-spec-button-shape-next--mono {
- &.yt-spec-button-shape-next--outline,
- &.yt-spec-button-shape-next--text {
- color: @text;
- &:hover {
- background-color: @surface0;
- }
- }
- &.yt-spec-button-shape-next--tonal {
- color: @text;
- background-color: @surface0;
- }
- &.yt-spec-button-shape-next--outline {
- border-color: @surface2 !important;
- }
- &.yt-spec-button-shape-next--filled {
- color: @crust;
- background-color: @accent-color;
- }
- }
- .yt-spec-touch-feedback-shape--touch-response
- .yt-spec-touch-feedback-shape__stroke {
- border-color: @surface1;
- }
- .yt-spec-button-shape-next--overlay.yt-spec-button-shape-next--filled {
- color: @crust;
+ .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;
}
- .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;
- }
- .yt-spec-button-shape-next--call-to-action {
- /* Reply Button */
- &.yt-spec-button-shape-next--text {
- color: @accent-color;
- &:hover {
- background-color: fadeout(@accent-color, 80) !important;
- }
- }
- /* Transcript Button */
- &.yt-spec-button-shape-next--outline {
- color: @accent-color !important;
- border-color: @surface2 !important;
- &:hover {
- background-color: fadeout(@accent-color, 80) !important;
- border-color: fadeout(@accent-color, 80) !important;
- }
- }
- }
- ytd-guide-section-renderer.style-scope:nth-child(3) > div:nth-child(2),
- ytd-guide-section-renderer.style-scope:nth-child(4) > div:nth-child(2) {
- > ytd-guide-entry-renderer:nth-child(1)
- > a:nth-child(1)
- > tp-yt-paper-item:nth-child(1)
- > yt-icon:nth-child(1)
- > yt-icon-shape:nth-child(1)
- > icon-shape:nth-child(1)
- > div:nth-child(1)
- > svg:nth-child(1) {
- > g:nth-child(2) > g:nth-child(2) > path {
- &:nth-child(2) {
- fill: @base !important;
- }
- }
- }
- > ytd-guide-entry-renderer:nth-child(2)
- > a:nth-child(1)
- > tp-yt-paper-item:nth-child(1)
- > yt-icon:nth-child(1)
- > yt-icon-shape:nth-child(1)
- > icon-shape:nth-child(1)
- > div:nth-child(1)
- > svg:nth-child(1) {
- > path:nth-child(2) {
- fill: @base !important;
- }
- > path:nth-child(4) {
- fill: @base !important;
- }
- }
- > ytd-guide-entry-renderer:nth-child(3)
- > a:nth-child(1)
- > tp-yt-paper-item:nth-child(1)
- > yt-icon:nth-child(1)
- > yt-icon-shape:nth-child(1)
- > icon-shape:nth-child(1)
- > div:nth-child(1)
- > svg:nth-child(1) {
- > polygon:nth-child(2) {
- fill: @base !important;
- }
- > path:nth-child(3) {
- fill: @base !important;
- }
- }
- > ytd-guide-entry-renderer:nth-child(4)
- > a:nth-child(1)
- > tp-yt-paper-item:nth-child(1)
- > yt-icon:nth-child(1)
- > yt-icon-shape:nth-child(1)
- > icon-shape:nth-child(1)
- > div:nth-child(1)
- > svg:nth-child(1) {
- > path:nth-child(4) {
- fill: @base !important;
- }
- }
- }
+ /* Icons */
- [fill="#F00"],
[fill="red"],
+ [fill="#F00"],
[fill="#FF0000"] {
fill: @accent-color !important;
}
@@ -1058,118 +480,348 @@
fill: @crust !important;
}
- ::-webkit-scrollbar {
- width: @scrollbar_width !important;
+ .yt-spec-icon-shape {
+ [fill="#FAFAFA"],
+ [fill="#000"],
+ [fill="#fff"],
+ [fill="#FFF"],
+ [fill="#FFFFFF"] {
+ fill: @crust !important;
+ }
}
- ::-webkit-scrollbar-track {
- background: @base !important;
- }
- ::-webkit-scrollbar-thumb {
- background: @accent-color !important;
+ .yt-spec-icon-badge-shape--style-overlay .yt-spec-icon-badge-shape__icon {
+ color: @text;
}
- ::selection {
- background-color: fade(@accent-color, 30%);
- }
- }
-}
+ /* Buttons */
-@-moz-document url-prefix('https://www.youtube.com/redirect')
-{
- /* youtube.com-redirect */
- :root[dark] {
- #catppuccin(@darkFlavor, @accentColor);
- }
- :root {
- #catppuccin(@lightFlavor, @accentColor);
- }
+ .yt-spec-button-shape-next--mono {
+ &.yt-spec-button-shape-next--tonal {
+ color: @text;
+ background-color: @surface1;
- #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];
+ [fill="rgb(3,3,3)"],
+ [fill="rgb(0,0,0)"],
+ [fill="rgb(255,255,255)"] {
+ fill: @text !important;
+ }
- h1 {
- color: @text !important;
- }
+ [stroke="rgb(0,0,0)"],
+ [stroke="rgb(255,255,255)"] {
+ stroke: @text !important;
+ }
- #redirect-main-text {
- color: @overlay2 !important;
- .bolded {
- color: @accent-color !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: @surface2;
+ }
+ }
+
+ &.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;
+ }
+ }
+
+ &.yt-spec-button-shape-next--filled {
+ color: @crust;
+ background-color: @accent-color;
+
+ &:hover {
+ background-color: darken(@accent-color, 5%);
+ }
}
}
- /* search */
- #masthead-search-terms-border {
- border-color: @surface0 !important;
+ .yt-spec-button-shape-next--overlay {
+ &.yt-spec-button-shape-next--tonal {
+ color: @text;
+ }
+ }
+
+ .yt-spec-button-shape-next--call-to-action {
+ &.yt-spec-button-shape-next--outline {
+ color: @accent-color;
+ border-color: @surface2;
+
+ &:hover {
+ background-color: @accent-color;
+ color: @crust;
+ }
+ }
+
+ &.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;
+ }
+ }
+
+ .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;
+ }
+
+ /* Video description */
+
+ [style="color: rgb(255, 255, 255);"] {
+ 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"]) {
+ --yt-spec-static-overlay-text-primary: @crust;
+ }
+ #thumbnail [style="background-color: rgba(51, 51, 51, 0.8);"],
+ #video-preview .ytp-inline-preview-scrim + .ytp-inline-preview-controls {
background-color: @surface0 !important;
- box-shadow: fadeout(@crust, 10%) !important;
}
- /* Community Cross-posting */
- ytd-shared-post-renderer[uses-compact-lockup]
- #repost-context.ytd-shared-post-renderer {
- background-color: var(--second-background);
- }
- #divider-line-container.ytd-shared-post-renderer {
- background-color: var(--yt-spec-10-percent-layer);
- }
+ /* Panels, popups, tooltips */
- #masthead-search-terms {
- color: @text !important;
- }
-
- .search-button {
+ .ytp-tooltip-text {
background: @surface0 !important;
- border-color: @surface0 !important;
+ color: @text;
+ text-shadow: none !important;
}
- .search-button-content {
- filter: invert(1);
+ .ytp-popup {
+ background: @surface0 !important;
+ text-shadow: none;
}
- #redirect-backto-safety-button:hover {
- color: @text !important;
+ .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;
}
- #logo-container .content-region {
- color: @text !important;
+ .ytp-panel-header {
+ border-bottom-color: @surface2;
}
- ::selection {
- background-color: fade(@accent-color, 30%);
+ .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 {
+ &: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 {
+ background-color: @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-button,
+ .ytp-subtitles-button {
+ &[aria-pressed]::after {
+ background-color: @accent-color;
+ }
+ }
+
+ .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}");
+ }
+ }
+ }
+ }
+
+ #shorts-container {
+ ytd-reel-video-renderer:not([is-watch-while-mode]) {
+ .yt-spec-button-shape-with-label__label {
+ color: @subtext1;
+ }
+ }
+
+ /* Buy super thanks button */
+ .YtdShortsSuggestedActionStaticHostContainer {
+ background-color: @surface0;
+
+ .YtdShortsSuggestedActionStaticHostLeadingIcon,
+ .YtdShortsSuggestedActionStaticHostPrimaryText {
+ color: @text;
+ }
+ }
+ }
+
+ /* 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;
}
}
}
@-moz-document url-prefix('https://studio.youtube.com')
{
- /* studio.youtube.com */
:root[dark] {
#catppuccin(@darkFlavor, @accentColor);
}
@@ -1206,6 +858,31 @@
@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(
+ ''
+ );
+ height: 0 !important;
+ width: 0 !important;
+ padding-left: 98px !important;
+ padding-top: 24px !important;
+ background: url("data:image/svg+xml,@{svg}") no-repeat !important;
+ }
+
&,
html,
html[dark],
@@ -1215,13 +892,12 @@
[light],
html[light],
html[light][light] {
- /* disable */
--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;
- /* text */
--yt-spec-text-primary: @text !important;
--ytcp-text-primary: @text !important;
--ytcp-text-primary-inverse: @base !important;
@@ -1231,12 +907,10 @@
--ytcp-text-disabled: @subtext1 !important;
--ytcp-overlay-text-primary: @overlay2 !important;
- /* main bg */
--ytcp-general-background-a: @base !important;
--yt-spec-base-background: @base !important;
--yt-spec-black-3: @base !important;
- /* secondary bg */
--yt-spec-brand-background-solid: @mantle !important;
--ytcp-brand-background-solid: @mantle !important;
--yt-spec-raised-background: @mantle !important;
@@ -1244,24 +918,17 @@
--ytcp-analytics-reach-background: @mantle !important;
--yt-spec-black-2: @mantle !important;
- /* additional bg */
--ytcp-general-background-c: @crust !important;
-
- /* menu */
--ytcp-menu-background: @surface0 !important;
- /* card borders */
--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;
- /* links */
- --ytcp-call-to-action: @sapphire !important;
+ --ytcp-call-to-action: @accent-color !important;
--ytcp-call-to-action-inverse: @mantle !important;
-
- /* buttons */
--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;
@@ -1270,24 +937,22 @@
--ytcp-call-to-action-raised-disabled-inverse: @surface2 !important;
--ytcp-call-to-action-raised-disabled-background-inverse: @overlay2 !important;
- /* dropdown */
--yt-spec-brand-background-primary: @surface0 !important;
- /* icons */
--yt-compact-link-icon-color: @overlay2 !important;
--ytcp-icon-active: @accent-color !important;
--ytcp-icon-inactive: @overlay2 !important;
- --ytcp-icon-disabled: @overlay2 !important;
+ --ytcp-icon-disabled: @overlay0 !important;
--ytcp-icon-active-inverse: @overlay1 !important;
--ytcp-icon-disabled-inverse: @subtext1 !important;
- /* colors */
--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: @red !important;
- --ytcp-themed-blue: @blue !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;
@@ -1318,7 +983,6 @@
--ytmus-genre-primary-sky: @sky !important;
--ytmus-genre-primary-sky-inverse: @sky !important;
- /* misc */
--yt-spec-badge-chip-background: @surface1 !important;
--ytcp-focus-inverse: @accent-color !important;
--ytcp-focus: @accent-color !important;
@@ -1337,10 +1001,6 @@
tp-yt-iron-icon.ytls-error-dialog {
color: @text !important;
}
-
- ::selection {
- background-color: fade(@accent-color, 30%);
- }
}
}
@@ -1384,25 +1044,22 @@
background-color: @base !important;
color: @text !important;
- /* ambient mode */
+ /* Ambient mode */
#cinematics {
mix-blend-mode: lighten;
}
- /* tobar */
.mobile-topbar-header[data-mode="watch"],
ytm-mobile-topbar-renderer:not([ambient-topbar]) {
background: @base;
}
- /* header text */
.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;
}
- /* some transpartent buttons */
.yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container,
.modern-styling {
background: @surface0;
@@ -1416,65 +1073,47 @@
color: @text;
}
- /* comment box */
+ /* Comment box */
.engagement-panel-container {
background: @mantle;
}
- /* bottom bar */
+ /* Bottom bar */
ytm-pivot-bar-renderer {
background: @mantle;
color: @text;
border-top-color: @surface0;
}
- /* chips */
+ /* Chips */
.chip-bar {
background-color: @base;
}
- /* selected chip color */
- [chip-style="STYLE_DEFAULT"].selected .chip-container,
- [chip-style="STYLE_HOME_FILTER"].selected .chip-container,
- [chip-style="STYLE_COLOR_RED"].selected .chip-container,
- [chip-style="STYLE_COLOR_GREEN"].selected .chip-container,
- [chip-style="STYLE_COLOR_BLUE"].selected .chip-container {
- color: @crust;
- background-color: @accent-color;
+ [chip-style*="STYLE_"] {
+ .chip-container {
+ color: @text;
+ background-color: @surface0;
+ }
+
+ &.selected .chip-container {
+ color: @crust;
+ background-color: @accent-color;
+ }
}
- /* normal chip */
- [chip-style="STYLE_DEFAULT"] .chip-container,
- [chip-style="STYLE_HOME_FILTER"] .chip-container,
- [chip-style="STYLE_REFRESH_TO_NOVEL_CHIP"] .chip-container,
- [chip-style="STYLE_COLOR_RED"] .chip-container,
- [chip-style="STYLE_COLOR_GREEN"] .chip-container,
- [chip-style="STYLE_COLOR_BLUE"] .chip-container {
- color: @text;
- background-color: @surface0;
- }
+ /* Buttons */
- /* buttons */
- .yt-spec-touch-feedback-shape--touch-response
+ .yt-spec-touch-feedback-shape--touch-response {
.yt-spec-touch-feedback-shape__fill {
- background-color: @text;
- }
- .yt-spec-button-shape-next--mono.yt-spec-button-shape-next--text {
- color: @text;
- }
- .yt-spec-touch-feedback-shape--touch-response
+ background-color: @text;
+ }
+
.yt-spec-touch-feedback-shape__stroke {
- border-color: @surface1;
- }
- .yt-spec-button-shape-next--mono.yt-spec-button-shape-next--tonal {
- color: @text;
- background-color: @surface0;
- }
- .yt-spec-button-shape-next--mono.yt-spec-button-shape-next--filled,
- .yt-spec-button-shape-next--overlay.yt-spec-button-shape-next--filled {
- color: @crust;
- background-color: @accent-color;
+ border-color: @surface1;
+ }
}
+
.yt-spec-touch-feedback-shape--overlay-touch-response-inverse
.yt-spec-touch-feedback-shape__fill {
background-color: @accent-color;