From 72bdcd1375c5b2b39cec653720773b2a3e5c1b55 Mon Sep 17 00:00:00 2001 From: Toria Date: Fri, 10 Apr 2026 01:57:04 +0100 Subject: [PATCH 1/3] Add text field and button theming. Signed-off-by: Toria --- src/catppuccin.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/catppuccin.ts b/src/catppuccin.ts index 56089e1..ab80f87 100644 --- a/src/catppuccin.ts +++ b/src/catppuccin.ts @@ -25,7 +25,7 @@ function createCatppuccinTheme(flavor: CatppuccinFlavor) { "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { - backgroundColor: `${colors.overlay2.hex}40` + backgroundColor: `${colors.overlay2.hex}40`, }, ".cm-panels": { @@ -59,6 +59,15 @@ function createCatppuccinTheme(flavor: CatppuccinFlavor) { border: "none", }, + ".cm-textfield": { + border: `1px solid ${colors.overlay0.hex}`, + }, + + ".cm-button": { + backgroundColor: colors.surface0.hex, + border: `1px solid ${colors.overlay0.hex}`, + }, + ".cm-activeLineGutter": { backgroundColor: colors.surface0.hex, }, From a0bd59084d97473de08ec7b058583dc28854abe8 Mon Sep 17 00:00:00 2001 From: Toria Date: Fri, 10 Apr 2026 01:57:46 +0100 Subject: [PATCH 2/3] Whoops, match upstream. Signed-off-by: Toria --- src/catppuccin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/catppuccin.ts b/src/catppuccin.ts index ab80f87..70b63b6 100644 --- a/src/catppuccin.ts +++ b/src/catppuccin.ts @@ -64,7 +64,7 @@ function createCatppuccinTheme(flavor: CatppuccinFlavor) { }, ".cm-button": { - backgroundColor: colors.surface0.hex, + backgroundImage: `linear-gradient(${colors.surface1.hex}, ${colors.surface0.hex})`, border: `1px solid ${colors.overlay0.hex}`, }, From 0b1400920987e7c76cf4428bb945465843f4fbb2 Mon Sep 17 00:00:00 2001 From: Toria Date: Fri, 10 Apr 2026 02:01:42 +0100 Subject: [PATCH 3/3] Add pressed state. Signed-off-by: Toria --- src/catppuccin.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/catppuccin.ts b/src/catppuccin.ts index 70b63b6..ba2fef2 100644 --- a/src/catppuccin.ts +++ b/src/catppuccin.ts @@ -68,6 +68,10 @@ function createCatppuccinTheme(flavor: CatppuccinFlavor) { border: `1px solid ${colors.overlay0.hex}`, }, + ".cm-button:active": { + backgroundImage: `linear-gradient(${colors.surface0.hex}, ${colors.surface1.hex})`, + }, + ".cm-activeLineGutter": { backgroundColor: colors.surface0.hex, },