Skip to content

web.dev Catppuccin by Iridescent-cdu

Screenshot of web.dev Catppuccin

Details

AuthorIridescent-cdu

LicenseMIT

Categoryweb.dev

Created

Updated

Size13 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Soothing pastel theme for web.dev

Notes

Userstyle doesn't have notes.

Source code

Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link.
/* ==UserStyle==
@name web.dev Catppuccin
@namespace github.com/catppuccin/userstyles/styles/web.dev
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/web.dev
@version 0.0.2
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Aweb.dev
@description Soothing pastel theme for web.dev
@author Catppuccin
@license MIT

@preprocessor less
@var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"]
@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"]
@var select accentColor "Accent" ["rosewater:Rosewater", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve*", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire", "sky:Sky", "lavender:Lavender", "subtext0:Gray"]
==/UserStyle== */

@-moz-document domain('web.dev') {
  @media (prefers-color-scheme: light) {
    :root {
      #catppuccin(@lightFlavor, @accentColor);
    }
  }
  @media (prefers-color-scheme: dark) {
    :root {
      #catppuccin(@darkFlavor, @accentColor);
    }
  }

  #catppuccin(@lookup, @accent) {
    @rosewater: @catppuccin[@@lookup][@rosewater];
    @flamingo: @catppuccin[@@lookup][@flamingo];
    @pink: @catppuccin[@@lookup][@pink];
    @mauve: @catppuccin[@@lookup][@mauve];
    @red: @catppuccin[@@lookup][@red];
    @maroon: @catppuccin[@@lookup][@maroon];
    @peach: @catppuccin[@@lookup][@peach];
    @yellow: @catppuccin[@@lookup][@yellow];
    @green: @catppuccin[@@lookup][@green];
    @teal: @catppuccin[@@lookup][@teal];
    @sky: @catppuccin[@@lookup][@sky];
    @sapphire: @catppuccin[@@lookup][@sapphire];
    @blue: @catppuccin[@@lookup][@blue];
    @lavender: @catppuccin[@@lookup][@lavender];
    @text: @catppuccin[@@lookup][@text];
    @subtext1: @catppuccin[@@lookup][@subtext1];
    @subtext0: @catppuccin[@@lookup][@subtext0];
    @overlay2: @catppuccin[@@lookup][@overlay2];
    @overlay1: @catppuccin[@@lookup][@overlay1];
    @overlay0: @catppuccin[@@lookup][@overlay0];
    @surface2: @catppuccin[@@lookup][@surface2];
    @surface1: @catppuccin[@@lookup][@surface1];
    @surface0: @catppuccin[@@lookup][@surface0];
    @base: @catppuccin[@@lookup][@base];
    @mantle: @catppuccin[@@lookup][@mantle];
    @crust: @catppuccin[@@lookup][@crust];
    @accent-color: @catppuccin[@@lookup][@@accent];

    color-scheme: if(@lookup = latte, light, dark);

    ::selection {
      background-color: fade(@accent-color, 30%);
    }

    input,
    textarea {
      &::placeholder {
        color: @subtext0 !important;
      }
    }

    :focus-visible {
      outline-color: @accent-color;
    }

    --webdev-background-gray: @surface0;
    --webdev-background-gray-2: @surface1;
    --webdev-background-oficial-gray: @surface0;
    --webdev-background-white: @base;
    --webdev-google-colors-blue-50: @base;
    --webdev-google-colors-blue-600: @accent-color;
    --webdev-google-colors-blue-800: @accent-color;
    --webdev-primary: @accent-color;
    --webdev-text-text-1: @text;
    --webdev-text-text-2: @subtext1;
    --webdev-text-text-3: @subtext0;
    --webdev-illustration-colors-blue: @blue;
    --webdev-illustration-colors-gray: @surface2;
    --webdev-illustration-colors-green: @green;
    --webdev-illustration-colors-red: @red;

    --devsite-secondary-text-color: @subtext1;
    --devsite-primary-border: 1px solid @surface0;
    --devsite-secondary-border: 1px solid @surface2;

    --devsite-contrast-link-color: @accent-color;
    --devsite-header-link-color-active: @text;

    --devsite-button-disabled-background: @surface0;
    --devsite-button-disabled-color: @subtext0;
    --devsite-button-primary-background-active: @accent-color;
    --devsite-button-primary-color-active: @crust;
    --devsite-button-primary-border-hover: 2px solid transparent;

    --devsite-input-background: @surface0;
    --devsite-input-background-focus: fade(@accent-color, 30%);

    devsite-multiple-choice {
      .devsite-multiple-choice-question {
        color: @text;
      }

      --devsite-multiple-choice-background: @surface0;
      --devsite-multiple-choice-correct-background: fade(@green, 10%);
      --devsite-multiple-choice-correct-color: @green;
      --devsite-multiple-choice-incorrect-background: fade(@red, 10%);
      --devsite-multiple-choice-incorrect-color: @red;
    }

    body:not([codelabs-content-type="paginated"]) {
      --devsite-notice-link-background-hover: @mantle;

      --devsite-caution-notice-background: fade(@red, 10%);
      --devsite-caution-notice-color: @red;
      --devsite-key-point-notice-background: fade(@sapphire, 10%);
      --devsite-key-point-notice-color: @sapphire;
      --devsite-key-term-notice-background: fade(@mauve, 10%);
      --devsite-key-term-notice-color: @mauve;
      --devsite-note-notice-background: fade(@blue, 10%);
      --devsite-note-notice-color: @blue;
      --devsite-status-notice-color: @teal;
      --devsite-success-notice-background: fade(@green, 10%);
      --devsite-success-notice-color: @green;
      --devsite-warning-notice-background: fade(@peach, 10%);
      --devsite-warning-notice-color: @peach;
    }

    devsite-code,
    devsite-code[dark-code],
    devsite-content {
      --devsite-code-background: @mantle;
      --devsite-code-color: @text;
      --devsite-code-buttons-color: @overlay2;
      --devsite-code-buttons-hover: @subtext1;

      --devsite-var-color: @mauve;
      --devsite-code-comments-color: @overlay2;
      --devsite-code-keywords-color: @mauve;
      --devsite-code-numbers-color: @peach;
      --devsite-code-strings-color: @green;
      --devsite-code-types-color: @yellow;
    }

    devsite-header devsite-language-selector {
      --devsite-select-color: @text;
    }

    devsite-playlist {
      .devsite-playlist--header h1:first-of-type,
      .devsite-playlist--header-badge-info,
      .devsite-playlist--header-details-info {
        color: @crust;
      }

      .devsite-playlist--sections .devsite-playlist--section[expanded] {
        color: @crust;
      }

      devsite-bookmark {
        --devsite-bookmark-icon-color: @crust;
        --devsite-bookmark-icon-arrow-color: @crust;
        --devsite-dropdown-list-toggle-color-hover: @crust;
      }
    }

    devsite-content {
      --devsite-search-results-breadcrumb-color: @subtext0;
    }

    .devsite-site-logo {
      @svg: escape(
        '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 215 64"><path d="M1.075 45.08c0-2.88 2.35-5.213 5.248-5.213h27.989c2.898 0 5.248 2.334 5.248 5.212s-2.35 5.213-5.248 5.213H6.322c-2.897 0-5.247-2.334-5.247-5.213" fill="@{sky}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M2.612 13.594a5.273 5.273 0 0 1 7.422 0l13.994 13.9a5.187 5.187 0 0 1 0 7.371l-13.994 13.9a5.273 5.273 0 0 1-7.422 0 5.187 5.187 0 0 1 0-7.371l9.665-9.6a.865.865 0 0 0 0-1.229l-9.665-9.6a5.187 5.187 0 0 1 0-7.37" fill="@{blue}"/><path d="m18.993 39.867-8.96 8.898a5.273 5.273 0 0 1-7.42 0 5.187 5.187 0 0 1 0-7.371l1.536-1.527z" fill="@{pink}"/><path d="M34.312 50.292c2.898 0 5.248-2.334 5.248-5.213s-2.35-5.212-5.248-5.212-5.248 2.334-5.248 5.212 2.35 5.213 5.248 5.213" fill="@{blue}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M200.552 45.338h-3.784l-8.256-20.33h4.128l6.02 15.717 6.02-15.717h4.128zm-28.896-12.471h11.696c-.172-2.734-2.408-4.954-5.848-4.954-2.924 0-5.16 1.879-5.848 4.954m6.192 13.154c-6.02 0-10.32-4.613-10.32-10.763s4.3-10.762 10.148-10.762c6.02 0 9.976 4.1 9.976 11.104v.342h-15.996c.172 3.929 3.096 6.662 6.536 6.662 2.408 0 4.472-1.196 5.676-3.587l3.44 1.708c-1.892 3.246-5.332 5.296-9.46 5.296m-24.08 0c-5.332 0-9.804-4.783-9.804-10.763s4.472-10.762 9.804-10.762c2.924 0 5.676 1.367 7.052 3.417h.172l-.172-2.734v-9.396h3.784v29.555h-3.612v-2.734h-.172c-1.548 2.05-4.128 3.417-7.052 3.417m.516-3.417c3.784 0 6.536-2.904 6.536-7.346 0-4.27-2.752-7.345-6.536-7.345-3.612 0-6.536 3.075-6.536 7.345 0 4.271 2.924 7.346 6.536 7.346m-11.696.171c0 1.538-1.204 2.733-2.924 2.733-1.548 0-2.924-1.366-2.924-2.733 0-1.537 1.376-2.733 2.924-2.733 1.72 0 2.924 1.196 2.924 2.733m-18.06-.17c3.612 0 6.536-3.076 6.536-7.347s-2.924-7.345-6.536-7.345c-3.784 0-6.536 3.075-6.536 7.345 0 4.271 2.752 7.346 6.536 7.346m.688 3.416c-2.924 0-5.676-1.367-7.052-3.417h-.172v2.734h-3.612V15.783h3.784v9.396l-.172 2.734h.172c1.376-2.05 3.956-3.417 7.052-3.417 5.332 0 9.804 4.783 9.804 10.762-.172 5.98-4.472 10.763-9.804 10.763M95.288 32.867h11.696c-.172-2.734-2.408-4.954-5.848-4.954-2.924 0-5.16 1.879-5.848 4.954m6.192 13.154c-6.02 0-10.32-4.613-10.32-10.763s4.3-10.762 10.148-10.762c6.02 0 9.976 4.1 9.976 11.104v.342H95.288c.172 3.929 3.096 6.662 6.536 6.662q3.612 0 5.676-3.587l3.44 1.708c-1.892 3.246-5.332 5.296-9.46 5.296M90.644 25.179l-6.536 20.33h-3.956l-5.16-15.546-4.988 15.545h-3.956L59.34 25.18h3.956l4.472 15.375 4.988-15.375h3.956L81.7 40.554l4.472-15.375z" fill="@{text}"/></svg>'
      );
      content: url("data:image/svg+xml,@{svg}");
    }

    .wd-footer-promo {
      @svg: escape(
        '<svg viewBox="0 0 125 24" aria-label="web.dev" fill="@{text}" height="24" width="125" xmlns="http://www.w3.org/2000/svg"><path d="M.625 19.949a3.05 3.05 0 0 1 3.051-3.051H19.95a3.051 3.051 0 0 1 0 6.102H3.676a3.05 3.05 0 0 1-3.051-3.051" fill="@{sky}"/><path d="M1.519 1.519a3.05 3.05 0 0 1 4.315 0l8.136 8.136a3.05 3.05 0 0 1 0 4.315l-8.136 8.136a3.051 3.051 0 1 1-4.315-4.315l5.619-5.619a.51.51 0 0 0 0-.72l-5.62-5.618a3.05 3.05 0 0 1 0-4.315" clip-rule="evenodd" fill="@{blue}" fill-rule="evenodd"/><path d="m11.042 16.898-5.208 5.208a3.051 3.051 0 1 1-4.315-4.315l.893-.893z" fill="@{pink}"/><path d="M19.949 23a3.051 3.051 0 1 0 0-6.102 3.051 3.051 0 0 0 0 6.102" fill="@{blue}"/><path d="M116.6 20.1h-2.2l-4.8-11.9h2.4l3.5 9.2 3.5-9.2h2.4zm-16.8-7.3h6.8c-.1-1.6-1.4-2.9-3.4-2.9-1.7 0-3 1.1-3.4 2.9m3.6 7.7c-3.5 0-6-2.7-6-6.3s2.5-6.3 5.9-6.3c3.5 0 5.8 2.4 5.8 6.5v.2h-9.3c.1 2.3 1.8 3.9 3.8 3.9 1.4 ...

Reviews

No reviews yet.