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

This commit is contained in:
feraxhp authored and GitHub committed 2025-12-05 12:42:16 -06:00
1 parent 042bfbce93
commit 7292eefa77
1 file changed
+18 -13
+18 -13
View File
@@ -29,27 +29,23 @@
#catppuccin(@flavor) { #catppuccin(@flavor) {
#lib.palette(); #lib.palette();
#lib.defaults(); #lib.defaults();
// TODO: Do we need to set the selection color in the defaults? Why is it necessary here but not elsewhere?
::selection {
color: @text !important;
}
@accent-light-alpha: 1.1; @accent-light-alpha: 1.1;
@accent-dark-alpha: 0.9; @accent-dark-alpha: 80%;
@accent-gradient-from-color: 1.05; @accent-gradient-from-color: 1.05;
@accent-gradient-via-color: 1.2; @accent-gradient-via-color: 1.2;
@accent-gradient-to-color: 0.85; @accent-gradient-to-color: 0.85;
--primary-color: @base; --primary-color: @base;
--primary-light-color: @surface1; --primary-light-color: @mantle;
--primary-dark-color: @crust; --primary-dark-color: @crust;
--primary-contrast-color: @mantle; --primary-contrast-color: @mantle;
--secondary-color: @subtext0; --secondary-color: @subtext0;
--secondary-light-color: @subtext0; --secondary-light-color: @subtext0;
--secondary-dark-color: @subtext1; --secondary-dark-color: @subtext1;
--divider-color: @overlay0; --divider-color: @surface0;
--divider-light-color: @overlay1; --divider-light-color: @surface0;
--divider-dark-color: @surface2; --divider-dark-color: @surface0;
--error-color: @red; --error-color: @red;
--tooltip-color: @text; --tooltip-color: @text;
--popover-color: @crust; --popover-color: @crust;
@@ -73,17 +69,26 @@
--gradient-to-color: fade(@accent, @accent-gradient-to-color); --gradient-to-color: fade(@accent, @accent-gradient-to-color);
--editor-process-color: @text; --editor-process-color: @text;
--banner-info-color: fade(@blue, 20%);
.ͼ1 .cm-placeholder { .cm-editor {
color: @text; background: @mantle;
.cm-placeholder {
color: @text;
}
} }
.cm-focused .cm-activeLine { .cm-focused .cm-activeLine {
background-color: @surface0; background-color: @base;
} }
.cm-focused .cm-activeLineGutter { .cm-focused .cm-activeLineGutter {
background-color: @surface2; background-color: @surface0;
}
.cm-selectionBackground {
background: fade(@accent, 30%) !important;
} }
} }
} }