Files
userstyles/styles/twitch/catppuccin.user.css
T
Isabelandwinston 95703ab92b fix(treewide): enforce catppuccin/userstyles code standards (#323)
* fix(gmail): stylelint suggestions

* fix(whatsapp-web): stylelint suggestions

* fix(invidious): stylelint suggestions

* bump(invidious): version number

* fix(gmail): use `::` instead of `:` for pseudo elements

* fix(formative): follow stylelint suggestions

* fix(quizlet): follow stylelint suggestions

* ci: adjust stylelint config

* fix(quizlet): follow more stylelint suggestions

* fix(paste.rs): follow stylelint suggestions

* fix(nixos-search): namespace

* fix(nitter): follow stylelint suggestions

* ci(lint): add `deno task lint:fix`

* style: run `stylelint --fix`

* fix(lastfm): remove duplicate selectors

* fix(formative): remove duplicate selectors

* fix(deepl): remove duplicate classes

* ci(lint): introduce rules against animations & fonts

* fix(libreddit): remove unnecessary  `&`

* ci(lint): disallow boder/outline, add message

* ci(lint): disallow atRules

* treewide: replace `border` in favour of `border-color`

* treewide: reject all font alterations

* treewide: `remove outline: none`

* style: some more `border` -> `border-color`

* ci(lint): `keyframes` needs to stay

* fix(nixos-search): enforce userstyles standards

* fix(nitter): remove redundant `&`

* style(treewide): collapse definitions

* fix(chess): piece urls

* style: mixin classes -> ids

* style: reformat with prettier

* chore(treewide): add/fix metadata

* fix(lastfm): syntax error

* fix(lastfm): remove opionation

* fix(lastfm): remove duplicate classes

* ci(lint): allow animation/transition properties

* fix(lastfm): more small things

* fix(treewide): function typos

* fix(aoc): unknown unit

* fix: more genral forgotten fixes

* fix(brave-search): remove redundant `&`

* style(planetmc): unpack lookup

* fix: remove redundant code

* chore: add `vim:ft=less` to all files

* chore: remove template comment

* fix(anilist): reduce redundant code

* ci(lint): allow `no-invalid-position-at-import-rule`

* fix(twitch): lint warnings

* fix(youtube): `declaration-block-no-duplicate-custom-properties`

* fix: get rid of redundant `& {}` selectors

* fix(anilist): remove redundant `@rgb-raw`

* fix(hoppscotch): `declaration-block-no-duplicate-custom-properties`

* fix(yt): remove duplicate code

* fix(anilist): remove duplicate code

* fix(lastfm): animation name

* fix(bstats): remove redundant code

* fix(yt): remove redundant code

* fix(ichi.moe): `no-duplicate-selectors`

* fix(pinterest): use `border-color` instead of `border`

* fix(planetmc): `no-duplicate-selectors`

* fix(yt): remove over used `::selection`

* fix: use `border-color: transparent` instead of `border: none`

* fix(searxng): remove stylus-style conditional

* fix(invidious): style missing color while i'm at it

* ci(lint): add chalk ansi styling

* style(treewide): enable & fix `length-zero-no-unit`

* ci(lint): prettyprint logger

* fix(yt): fold & don't format lookup

* fix(mastodon): prevent reggressions

* refactor: `not when` -> `when not`

* fix(yt): correct `chips` reggression

* fix(yt): `border-color` reggression

* fix(yt): prevent more reggessions

* refactor(chess): use mixin for piece url

* style: collapsed definition cleanup

---------

Co-authored-by: winston <[email protected]>
2023-11-18 05:20:43 +01:00

619 lines
18 KiB
CSS

/* ==UserStyle==
@name Twitch Catppuccin
@namespace github.com/catppuccin/userstyles/styles/twitch
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/twitch
@version 1.1.15
@description Soothing pastel theme for Twitch
@author Catppuccin
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/twitch/catppuccin.user.css
@license MIT
@preprocessor less
@var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappe", "macchiato:Macchiato", "mocha:Mocha"]
@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappe", "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"]
==/UserStyle== */
@-moz-document domain("twitch.tv") {
.tw-root--theme-dark {
#catppuccin(@darkFlavor, @accentColor);
}
.tw-root--theme-light {
#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];
& body {
background-color: @base;
}
/* Stream title */
p[data-test-selector="stream-info-card-component__subtitle"],
p[data-test-selector="stream-info-card-component__description"] {
color: @text !important;
}
a[data-a-target="player-info-game-name"] {
color: @accent-Color;
}
/* `Pinned message` popup */
div.pinned-chat__pinned-by svg {
color: @text;
}
p.pinned-chat__message span {
color: @text !important;
}
p.pinned-chat__message a {
color: @accent-Color;
}
/* `Intended for certain audiences` label */
div[data-a-target="content-classification-warning-disclosure-overlay"] p {
color: @text;
}
/* `Hype Train` popup */
div.hype-train-progress-bar-info-view__level-container p,
div.hype-train-approaching-view__leftSide p,
div.hype-train-expanded-layout p,
div.hype-train-expanded-layout svg {
color: @text;
}
div.hype-train-progress-bar-info-view__progress-value span {
color: @accent-Color;
}
/* `Is video buffering?` warning */
div.low-latency-notification p {
color: @text;
}
/* `Includes paid promotion` label */
div.disclosure-card p,
div.disclosure-card svg {
color: @text;
}
/* Raiding popup */
div[data-test-selector="raid-banner"] {
color: @text;
}
/* `Predict with Channel Points` popup */
div[data-test-selector="expanded-content"] p,
p[data-test-selector="community-prediction-highlight-header__top-predictors"],
p[data-test-selector="community-prediction-highlight-body__outcome-title"] {
color: @text;
}
/* TODO: ensure that the poll does not default to this */
div[data-test-selector="header-content"] p {
color: @text !important;
}
div.channel-points-icon svg,
div[data-test-selector="header-content"] span,
div[data-test-selector="community-prediction-highlight-body__outcome-points"]
span {
color: @accent-Color;
}
button[data-test-selector="community-prediction-highlight-header__how-to-play"],
button[data-test-selector="community-prediction-highlight-header__terms-and-conditions"],
button[data-test-selector="community-prediction-highlight-header__send-feedback"],
button[data-test-selector="community-prediction-highlight-header__dismiss-message"] {
color: @text;
}
/* Poll popup */
div[data-test-selector="header-content"]
p:not(
[data-test-selector="community-prediction-highlight-header__title"],
[data-test-selector="header"]
) {
color: @text !important;
}
/* `Report Poll` button */
button.gaoCTJ {
color: @text;
}
/* ??? */
div.happening-now-disable-prompt p {
color: @text !important;
}
/* Gifting sub popup */
div.mystery-gift-chat-banner span {
color: @accent-Color;
}
div.mystery-gift-chat-banner p {
color: @text;
}
/* VOD metadata */
div.tw-media-card-stat {
color: @text;
}
/* DMCA warning */
div.muted-segments-alert__content p {
color: @text;
}
/* VOD time labels */
div.vod-seekbar-time-labels p {
color: @text !important;
}
/* VOD timestamp */
div.vod-seekbar-preview-overlay__wrapper p {
color: @text !important;
}
/* Seekbar segment */
div[data-test-selector="seekbar-interaction-area__interactionArea"]
span[data-test-selector="seekbar-segment__segment"] {
background: @accent-Color !important;
}
/* Seekbar DMCA muted segment */
div[data-test-selector="seekbar-interaction-area__interactionArea"]
span[data-test-selector="seekbar-segment__segment"][style*="background-color: rgba(212, 73, 73, 0.5);"] {
background: @red !important;
}
/* Seekbar buffered segment */
div[data-test-selector="seekbar-interaction-area__interactionArea"]
span[data-test-selector="seekbar-segment__segment"][style*="background-color: rgba(255, 255, 255, 0.85);"] {
background: @overlay2 !important;
}
/* Recent VOD title */
div.player-overlay-background h4 {
color: @subtext0 !important;
}
a.offline-recommendations-video-card p {
color: @text;
}
/* Offline screen follow panel */
div[data-test-selector="follow-panel-overlay"] p {
color: @text !important;
}
div[data-test-selector="follow-panel-overlay"] button div {
color: @crust !important;
}
/* Front page warning sign */
div.content-overlay-gate__content[data-a-target="player-overlay-content-gate"]
div.content-overlay-icon
svg {
color: @red;
}
/* Front page age warning */
div.content-overlay-gate__content[data-a-target="player-overlay-content-gate"]
p.content-overlay-gate__allow-pointers {
color: @red !important;
}
/* Front page age selector */
div[data-a-target="player-overlay-age-gate-form"] select {
color: @text;
}
/* Following usercard */
div[data-a-target="user-card-modal"] p {
color: @text !important;
}
/* PiP username */
div.mini-overlay__title span {
color: @text;
}
/* Viewercard username */
div.viewer-card-header__display-name h4 {
color: @accent-Color !important;
}
/* Viewercard metadata */
div.viewer-card-header__display-name svg:not(button svg) {
color: @subtext1;
}
div.viewer-card-header__display-name p {
color: @text !important;
}
/* Extension name */
div[aria-describedby="popover-extensions-body"] h6 {
color: @text;
}
/* Extension description */
div.extensions-popover-view-layout__body p {
color: @text;
}
/* Extension service buttons */
div.extensions-popover-view-layout__body svg {
color: @subtext0;
}
div.extensions-popover-view-layout__body div {
color: @text;
}
& .carousel-metadata {
background: @crust;
}
& .carousel-metadata--fadeout {
background: @crust;
}
.chat-line__message-body--highlighted {
background-color: @accent-Color;
color: @crust;
border-color: @accent-Color;
}
.chat-scrollable-area__message-container {
background-color: @mantle;
}
.jmUA-dj {
background-color: @mantle;
}
.bBpiku {
fill: @mantle;
}
.ivjxmt {
color: @crust;
}
.gzYMLv {
color: @text;
}
.gZxBHd {
color: @subtext0;
&:hover {
color: @accent-Color;
}
}
.eBmJxH {
color: @text;
}
.ffZeRf {
color: #fff !important;
}
.igzOaC {
color: @text;
}
.bEHknf {
color: #fff;
}
.side-nav-card__link:hover {
background: @surface0 !important;
}
.dDyYOA {
color: #fff !important;
}
.reward-icon__cost {
color: #fff !important;
}
.kLILeB {
color: #fff !important;
}
.navigation-link__active-indicator {
background-color: @accent-Color !important;
}
.footer {
background: @crust;
}
& .whispers-list-item--selected,
& .whispers-list-item:hover {
background-color: @surface0;
}
& .thread-header__title-bar-container--focused {
background-color: @mantle;
}
& .thread-header__title-bar-container {
background: @mantle;
}
& .thread-header__click-area:focus .thread-header__title-bar-container {
background-color: @mantle;
}
.navigation-link {
color: @text;
&:hover {
color: @accent-Color;
}
}
.chat-room {
background: @mantle;
}
div.pinned-chat__highlight-card div.highlight {
background: @mantle;
}
h4,
h5 {
color: @text;
}
.cOJBQO {
color: @text;
}
.dBlttx {
color: @subtext1;
}
.fiCviy {
color: @text;
}
.server-message-alert {
border-color: @red !important;
border-left-color: @red !important;
}
.server-message-alert__icon {
color: @red !important;
}
&,
.side-nav-card__link:hover {
--color-background-input-focus: @crust;
--color-background-interactable-hover: @surface0;
--color-background-button-text-default: null !important;
--color-text-input-placeholder: @text;
--color-border-input: @base;
--color-text-button-primary: @crust;
--color-text-overlay: @base;
--color-text-base: @subtext1;
--color-text-alt: @subtext1;
--color-text-alt-2: @text;
--color-text-interactable-selected: @crust;
--color-background-alt-2: @crust;
--color-text-tag: @text;
--color-background-button-secondary-default: @crust;
--color-background-tag-default: @mantle;
--color-background-tag-hover: @crust;
--color-background-float: @mantle;
--color-background-body: @base;
--color-background-base: @mantle;
--color-background-alt: @mantle;
--color-background-input: @crust;
--color-brand-muted-cupcake: @pink;
--color-brand-muted-mint: @green;
--color-brand-muted-sky: @sky;
--color-brand-muted-blush: @peach;
--color-brand-muted-canary: @peach;
--color-brand-muted-lavender: @lavender;
--color-brand-muted-mustard: @yellow;
--color-brand-muted-emerald: @green;
--color-brand-muted-coral: @peach;
--color-brand-muted-ocean: @blue;
--color-brand-accent-grape: @mauve;
--color-brand-accent-dragonfruit: @flamingo;
--color-brand-accent-carrot: @peach;
--color-brand-accent-sun: @peach;
--color-brand-accent-lime: @green;
--color-brand-accent-turquoise: @sky;
--color-brand-accent-eggplant: @mauve;
--color-brand-accent-wine: @flamingo;
--color-brand-accent-slime: @green;
--color-brand-accent-seafoam: @green;
--color-brand-accent-cherry: @red;
--color-brand-accent-marine: @blue;
--color-brand-accent-seaweed: @teal;
--color-brand-accent-fiji: @green;
--color-brand-accent-blueberry: @blue;
--color-brand-accent-arctic: @sky;
--color-brand-accent-highlighter: @yellow;
--color-brand-accent-flamingo: @flamingo;
--color-brand-accent-ruby: @red;
--color-brand-accent-punch: @flamingo;
--color-brand-accent-creamsicle: @yellow;
--color-red: @maroon;
--color-red-darker: @red;
--color-orange: @peach;
--color-yellow: @yellow;
--color-green: @green;
--color-green-darker: @green;
--color-blue: @blue;
--color-prime-blue: @blue;
--color-magenta: @flamingo;
--color-error: @red;
--color-warn: @yellow;
--color-success: @green;
--color-info: @blue;
--color-accent: @accent-Color;
--color-twitch-purple: @accent-Color;
--color-twitch-purple-4: @accent-Color;
--color-twitch-purple-5: @accent-Color;
--color-twitch-purple-6: @accent-Color;
--color-twitch-purple-7: @accent-Color;
--color-twitch-purple-8: @accent-Color;
--color-twitch-purple-9: @accent-Color;
--color-twitch-purple-10: @accent-Color;
--color-twitch-purple-11: @accent-Color;
--color-twitch-purple-12: @accent-Color;
--color-orange-7: @yellow;
--color-orange-8: @yellow;
--color-orange-9: @yellow;
--color-orange-10: @yellow;
--color-orange-11: @yellow;
--color-orange-12: @yellow;
--color-orange-13: @yellow;
--color-yellow-6: @peach;
--color-yellow-7: @peach;
--color-yellow-8: @peach;
--color-yellow-9: @peach;
--color-yellow-10: @peach;
--color-yellow-11: @peach;
--color-yellow-12: @peach;
--color-yellow-13: @peach;
--color-yellow-14: @peach;
--color-yellow-15: @peach;
--color-green-5: @green;
--color-green-6: @green;
--color-green-7: @green;
--color-green-8: @green;
--color-green-9: @green;
--color-green-10: @green;
--color-green-11: @green;
--color-green-12: @green;
--color-green-13: @green;
--color-green-14: @green;
--color-green-15: @teal;
--color-cyan-9: @sapphire;
--color-cyan-10: @sapphire;
--color-cyan-11: @sapphire;
--color-cyan-12: @sapphire;
--color-cyan-13: @sapphire;
--color-cyan-14: @sapphire;
--color-cyan-15: @sky;
--color-blue-4: @blue;
--color-blue-5: @blue;
--color-blue-6: @blue;
--color-blue-7: @blue;
--color-blue-8: @blue;
--color-blue-9: @blue;
--color-blue-10: @sky;
--color-blue-11: @sky;
--color-magenta-5: @flamingo;
--color-magenta-6: @flamingo;
--color-magenta-7: @flamingo;
--color-magenta-8: @flamingo;
--color-magenta-9: @flamingo;
--color-magenta-10: @flamingo;
--color-magenta-11: @pink;
--color-magenta-12: @pink;
--color-red-4: @red;
--color-red-5: @red;
--color-red-6: @red;
--color-red-7: @red;
--color-red-8: @red;
--color-red-9: @red;
--color-red-10: @red;
--color-red-11: @peach;
--color-red-12: @peach;
--color-twitter: @blue;
--color-facebook: @blue;
--color-reddit: @peach;
--color-snapchat: @yellow;
--color-instagram: @blue;
--color-youtube: @red;
--color-paypal: @blue;
--color-paypal-blue: @blue;
--color-paypal-yellow: @yellow;
--color-venmo: @blue;
--color-vk: @blue;
--color-amazon: @yellow; //background: @surface0;
--color-background-button-text-hover: @surface0;
--color-text-accessible-red: @red;
--color-border-input-checkbox: @subtext0;
--color-border-input-checkbox-hover: @text;
--color-text-label: @text;
--color-border-input-hover: @surface0;
}
}
}
@-moz-document domain("dashboard.twitch.tv") {
.tw-root--theme-dark {
#catppuccin(@darkFlavor);
}
.tw-root--theme-light {
#catppuccin(@lightFlavor);
}
#catppuccin(@lookup) {
@base: @catppuccin[@@lookup][@base];
@mantle: @catppuccin[@@lookup][@mantle];
.simplebar-content {
background-color: @mantle;
}
.scrollable-area--suppress-scroll-x > .simplebar-scroll-content,
.scrollable-area--suppress-scroll-x
> .simplebar-scroll-content
> .simplebar-content {
background-color: @base;
}
}
}
/* 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; @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; @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; @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; @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