Skip to content

Commit

Permalink
feat: rework selection background (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Mar 10, 2024
1 parent c97e3cd commit 08c34c0
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/catppuccin-vsc/src/theme/uiColors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,19 @@ export const getUiColors = (
"editor.foldBackground": opacity(palette.sky, 0.25),
"editor.foreground": palette.text,
"editor.hoverHighlightBackground": opacity(palette.sky, 0.25),
"editor.inactiveSelectionBackground": opacity(palette.surface2, 0.25),
"editor.lineHighlightBackground": opacity(palette.text, 0.07),
"editor.lineHighlightBorder": transparent,
"editor.rangeHighlightBackground": opacity(palette.sky, 0.25),
"editor.rangeHighlightBorder": transparent,
"editor.selectionBackground": opacity(palette.surface2, 0.4),
"editor.selectionHighlightBackground": opacity(palette.overlay2, 0.4),
"editor.selectionHighlightBorder": opacity(palette.sky, 0.2),
"editor.wordHighlightBackground": opacity(palette.surface2, 0.7),
"editor.wordHighlightStrongBackground": opacity(palette.surface2, 0.5),

"editor.selectionBackground": opacity(
palette.overlay2,
isLatte ? 0.3 : 0.25,
),
"editor.selectionHighlightBackground": opacity(palette.overlay2, 0.2),
"editor.selectionHighlightBorder": opacity(palette.overlay2, 0.2),
"editor.wordHighlightBackground": opacity(palette.overlay2, 0.2),

"editorBracketMatch.background": opacity(palette.overlay2, 0.1),
"editorBracketMatch.border": palette.overlay2,
"editorCodeLens.foreground": palette.overlay1,
Expand Down

0 comments on commit 08c34c0

Please sign in to comment.