/* ==UserStyle==
@name           Twitch Catppuccin
@namespace      github.com/catppuccin/userstyles/styles/twitch
@homepageURL    https://github.com/catppuccin/userstyles/tree/main/styles/twitch
@version        1.1.4
@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;
    }

    & .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;
    }

    &,
    .side-nav-card__link:hover {
      --color-background-input-focus: @crust;
      --color-background-interactable-hover: @surface0;
      --color-background-button-text-default: null !important;
      --color-background-float: @crust;
      --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;
    }
  }
}
@-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;
    }
  }
}

@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;
  };
};