Skip to content

feat(hoppscotch): less contrast, selection colors, surface elements - #2010

Closed
feraxhp wants to merge 4 commits into
catppuccin:mainfrom
feraxtx:main
Closed

feat(hoppscotch): less contrast, selection colors, surface elements#2010
feraxhp wants to merge 4 commits into
catppuccin:mainfrom
feraxtx:main

Conversation

@feraxhp

@feraxhp feraxhp commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

馃敡 What does this fix? 馃敡

Improve theming for hoppscotch.

  • reduce contrast for outlines
  • improve selection color and text selected color on the editor
  • improve the inactive color for the tabs, and dimmed elements

Before

image

After

image

馃棐 Checklist 馃棐

@feraxhp
feraxhp requested a review from justTOBBI as a code owner December 2, 2025 00:38
@github-actions github-actions Bot added the hoppscotch Hoppscotch label Dec 2, 2025
@feraxhp feraxhp changed the title Improve theming for hoppscotch feat(hoppscotch) Improve theming Dec 2, 2025
Comment thread styles/hoppscotch/catppuccin.user.less Outdated
Comment thread styles/hoppscotch/catppuccin.user.less Outdated
Comment thread styles/hoppscotch/catppuccin.user.less
@uncenter uncenter changed the title feat(hoppscotch) Improve theming feat(hoppscotch): less contrast, selection colors, surface elements Dec 2, 2025
@feraxhp

feraxhp commented Dec 2, 2025

Copy link
Copy Markdown
Contributor Author

I did change all the opacity recalculation to use fade, and also change the opacity for the accent color to make the button visible while hovering it

before

image

after

image

@feraxhp

feraxhp commented Dec 2, 2025

Copy link
Copy Markdown
Contributor Author

Please don't merge, i am having problems with the selection, i will fix it.

image

the second layer must not exist.

Comment thread styles/hoppscotch/catppuccin.user.less
Comment thread styles/hoppscotch/catppuccin.user.less
@feraxhp

feraxhp commented Dec 2, 2025

Copy link
Copy Markdown
Contributor Author

Well i think that's all. all solved for now.

@uncenter

uncenter commented Dec 5, 2025

Copy link
Copy Markdown
Member

Would love to be able to push some changes to this branch but I can't since your pull request is off of your fork's main branch. In the future, please make sure to create a new topic branch for each set of changes as per https://userstyles.catppuccin.com/contributing/#pull-requests :)

Here is what edits I would make to this userstyle:

/* ==UserStyle==
@name Hoppscotch Catppuccin
@namespace github.com/catppuccin/userstyles/styles/hoppscotch
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/hoppscotch
@version 2025.09.06
@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/lib.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%);

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

Comment thread styles/hoppscotch/catppuccin.user.less
Comment on lines +92 to +93
.cm-selectionBackground,
.autocomplete-wrapper .cm-editor ::selection {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.cm-selectionBackground,
.autocomplete-wrapper .cm-editor ::selection {
.cm-selectionBackground {

re; above

Comment thread styles/hoppscotch/catppuccin.user.less
@feraxhp feraxhp closed this Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hoppscotch Hoppscotch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants