Soothing pastel theme for MDN
MDN Catppuccin by Iridescent-cdu
Details
AuthorIridescent-cdu
LicenseMIT
Categoryinteractive-examples.mdn.mozilla.net
Created
Updated
Size11 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
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 MDN Catppuccin
@namespace github.com/catppuccin/userstyles/styles/mdn
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/mdn
@version 0.1.2
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Amdn
@description Soothing pastel theme for MDN
@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== */
#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;
}
}
--text-primary: @text;
--text-secondary: @subtext0;
--text-active: @overlay1;
--text-inactive: fadeout(@subtext0, 40%);
--text-link: @accent-color;
--text-visited: lighten(saturate(@accent-color, -20%), -20%);
--text-invert: @base;
--background-primary: @base;
--background-secondary: @crust;
--background-tertiary: @mantle;
--background-toc-active: @crust;
--background-mark-yellow: fadeout(@yellow, 60%);
--background-mark-green: fadeout(@green, 60%);
--background-information: fadeout(@blue, 90%);
--background-warning: fadeout(@maroon, 90%);
--background-critical: fadeout(@red, 90%);
--background-success: fadeout(@green, 90%);
--border-primary: @surface2;
--border-secondary: @surface1;
--button-primary-default: @text;
--button-primary-hover: @subtext0;
--button-primary-active: @overlay0;
--button-primary-inactive: @text;
--button-secondary-default: @surface2;
--button-secondary-hover: @surface1;
--button-secondary-active: @overlay0;
--button-secondary-inactive: @surface2;
--button-secondary-border-focus: @blue;
--button-secondary-border-red: @red;
--button-secondary-border-red-focus: @maroon;
--icon-primary: @text;
--icon-secondary: @subtext0;
--icon-information: @blue;
--icon-warning: @peach;
--icon-critical: @maroon;
--icon-success: @green;
--accent-primary: @accent-color;
--accent-primary-engage: fadeout(@accent-color, 90%);
--accent-secondary: @accent-color;
--accent-tertiary: fadeout(saturate(@accent-color, 10%), 90%);
--shadow-01: 0 1px 2px fadeout(@text, 80%);
--shadow-02: 0 1px 6px fadeout(@text, 80%);
--focus-01: 0 0 0 3px fadeout(@text, 50%);
--field-focus-border: @text;
--code-token-tag: @mauve;
--code-token-punctuation: @overlay2;
--code-token-attribute-name: @blue;
--code-token-attribute-value: @peach;
--code-token-comment: @overlay2;
--code-token-default: @text;
--code-token-selector: @lavender;
--code-token-class-selector: @yellow;
--code-token-pseudo-class: @pink;
--code-token-variable-2: @rosewater;
--code-token-at-rule: @flamingo;
--code-token-meta: @overlay1;
--code-background-inline: @mantle;
--code-background-block: @mantle;
--notecard-link-color: @subtext1;
--scrollbar-bg: transparent;
--scrollbar-color: hsla(0, 0%, 100%, 0.25);
--category-color: @sky;
--category-color-background: fadeout(@sky, 60%);
--code-color: lighten(@sky, 10%);
--mark-color: darken(@sky, 30%);
--plus-accent-color: @maroon;
--html-accent-color: @red;
--css-accent-color: @sapphire;
--js-accent-color: @yellow;
--http-accent-color: @green;
--apis-accent-color: @mauve;
--learn-accent-color: @pink;
--plus-code-color: saturate(@maroon, 10%);
--html-code-color: saturate(@red, 10%);
--css-code-color: saturate(@sapphire, 10%);
--js-code-color: saturate(@yellow, 10%);
--http-code-color: saturate(@green, 10%);
--apis-code-color: saturate(@mauve, 10%);
--learn-code-color: saturate(@pink, 10%);
--plus-mark-color: darken(@maroon, 30%);
--html-mark-color: darken(@red, 30%);
--css-mark-color: darken(@sapphire, 30%);
--js-mark-color: darken(@yellow, 30%);
--http-mark-color: darken(@green, 30%);
--apis-mark-color: darken(@mauve, 30%);
--learn-mark-color: darken(@pink, 30%);
--plus-accent-background-color: fadeout(@maroon, 70%);
--html-accent-background-color: fadeout(@red, 70%);
--css-accent-background-color: fadeout(@sapphire, 70%);
--js-accent-background-color: fadeout(@yellow, 70%);
--http-accent-background-color: fadeout(@green, 70%);
--apis-accent-background-color: fadeout(@mauve, 70%);
--learn-accent-background-color: fadeout(@pink, 70%);
--plus-accent-engage: fadeout(@maroon, 30%);
--html-accent-engage: fadeout(@red, 30%);
--css-accent-engage: fadeout(@sapphire, 30%);
--js-accent-engage: fadeout(@yellow, 30%);
--http-accent-engage: fadeout(@green, 30%);
--apis-accent-engage: fadeout(@mauve, 30%);
--learn-accent-engage: fadeout(@pink, 30%);
--modal-backdrop-color: fadeout(@mantle, 30%);
--selection-background-color: fadeout(@surface2, 40%);
--text-primary-red: @red;
--text-primary-green: @green;
--text-primary-blue: @blue;
--text-primary-yellow: @yellow;
--collections-link: @flamingo;
--collections-header: darken(@red, 30%);
--collections-mandala: darken(@red, 20%);
--collections-icon: darken(@red, 10%);
--updates-link: @sky;
--updates-header: @crust;
--updates-mandala: lighten(@sky, 10%);
--updates-icon: @sky;
--ai-help-link: @green;
--ai-help-header: @crust;
--ai-help-mandala: lighten(@green, 10%);
--ai-help-icon: @green;
--form-limit-color: @overlay0;
--form-limit-color-emphasis: @overlay1;
--form-invalid-color: @red;
--form-invalid-focus-color: @flamingo;
--form-invalid-focus-effect-color: fadeout(@flamingo, 80%);
--baseline-high-bg: hsl(
hue(@green),
saturation(@green),
lightness(@surface0)
);
--baseline-high-engine-bg: hsl(
hue(@green),
saturation(@green),
lightness(@base)
);
--baseline-high-check: @green;
--baseline-low-bg: hsl(hue(@blue), saturation(@blue), lightness(@surface0));
--baseline-low-engine-bg: hsl(
hue(@blue),
saturation(@blue),
lightness(@base)
);
--baseline-low-check: @blue;
--baseline-low-pill-bg: @sapphire;
--baseline-low-pill-color: @base;
--baseline-limited-bg: @surface0;
--baseline-limited-engine-bg: @base;
--baseline-limited-check: @green;
--baseline-limited-cross: @peach;
}
@-moz-document domain("developer.mozilla.org") {
.light {
#catppuccin(@lightFlavor, @accentColor);
}
.dark {
#catppuccin(@darkFlavor, @accentColor);
}
/* stylelint-disable selector-not-notation */
@media (prefers-color-scheme: light) {
:root:not(.light):not(.dark) {
#catppuccin(@lightFlavor, @accentColor);
}
}
@media (prefers-color-scheme: dark) {
:root:not(.light):not(.dark) {
#catppuccin(@darkFlavor, @accentColor);
}
}
/* stylelint-enable selector-not-notation */
}
@-moz-document domain("interactive-examples.mdn.mozilla.net") {
.theme-light {
#catppuccin(@lightFlavor, @accentColor);
}
.theme-dark {
#catppuccin(@darkFlavor, @accentColor);
}
@media (prefers-color-scheme: light) {
:root {
#catppuccin(@lightFlavor, @accentColor);
}
}
@media (prefers-color-scheme: dark) {
:root {
#catppuccin(@darkFlavor, @accentColor);
}
}
}
/* 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; @b...