Files

110 lines
3.6 KiB
Plaintext

/* ==UserStyle==
@name Hoppscotch Catppuccin
@namespace github.com/catppuccin/userstyles/styles/hoppscotch
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/hoppscotch
@version 2026.08.16
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/hoppscotch/catppuccin.user.less
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Ahoppscotch
@description Soothing pastel theme for Hoppscotch
@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== */
@import "https://userstyles.catppuccin.com/lib/std/v1.less";
@-moz-document domain("hoppscotch.io") {
:root.dark {
#catppuccin(@darkFlavor);
}
:root.light {
#catppuccin(@lightFlavor);
}
#catppuccin(@flavor) {
#lib.palette();
#lib.defaults();
@accent-light-alpha: 1.1;
@accent-dark-alpha: 80%;
@accent-gradient-from-color: 1.05;
@accent-gradient-via-color: 1.2;
@accent-gradient-to-color: 0.85;
--primary-color: @base;
--primary-light-color: @mantle;
--primary-dark-color: @crust;
--primary-contrast-color: @mantle;
--secondary-color: @subtext0;
--secondary-light-color: @subtext0;
--secondary-dark-color: @subtext1;
--divider-color: @surface0;
--divider-light-color: @surface0;
--divider-dark-color: @surface0;
--error-color: @red;
--tooltip-color: @text;
--popover-color: @crust;
--editor-theme: "vscode-esque";
--editor-type-color: fade(@mauve, 90%);
--editor-name-color: @blue;
--editor-operator-color: @mauve;
--editor-invalid-color: @maroon;
--editor-separator-color: @overlay0;
--editor-meta-color: @overlay0;
--editor-variable-color: @green;
--editor-link-color: @sapphire;
--editor-constant-color: fade(@lavender, 1.2%);
--editor-keyword-color: @red;
--accent-color: @accent;
--accent-light-color: fade(@accent, @accent-light-alpha);
--accent-dark-color: fade(@accent, @accent-dark-alpha);
--accent-contrast-color: @crust;
--gradient-from-color: fade(@accent, @accent-gradient-from-color);
--gradient-via-color: fade(@accent, @accent-gradient-via-color);
--gradient-to-color: fade(@accent, @accent-gradient-to-color);
--editor-process-color: @text;
--banner-info-color: fade(@blue, 20%);
--method-get-color: @green;
--method-post-color: @yellow;
--method-put-color: @sapphire;
--method-patch-color: @mauve;
--method-delete-color: @red;
--method-head-color: @teal;
--method-options-color: @lavender;
--method-default-color: @overlay1;
--status-info-color: @blue;
--status-success-color: @green;
--status-redirect-color: @peach;
--status-critical-error-color: @red;
--status-server-error-color: @red;
--status-missing-data-color: @overlay0;
.cm-editor {
background: @mantle;
.cm-placeholder {
color: @text;
}
}
.cm-focused .cm-activeLine {
background-color: @base;
}
.cm-focused .cm-activeLineGutter {
background-color: @surface0;
}
.cm-selectionBackground {
background: fade(@accent, 30%) !important;
}
}
}