Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/browser/components/VimTextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ export const VimTextArea = React.forwardRef<HTMLTextAreaElement, VimTextAreaProp
: "bg-dark border-border-light",
!isEditing && (mode === "plan" ? "focus:border-plan-mode" : "focus:border-exec-mode"),
vimMode === "normal"
? "caret-transparent selection:bg-white/50"
: "caret-white selection:bg-selection"
? "caret-transparent selection:bg-caret/50"
: "caret-caret selection:bg-selection"
)}
/>
{trailingAction && (
Expand All @@ -244,7 +244,7 @@ export const VimTextArea = React.forwardRef<HTMLTextAreaElement, VimTextAreaProp
</div>
)}
{vimEnabled && vimMode === "normal" && value.length === 0 && (
<div className="pointer-events-none absolute top-1.5 left-2 h-4 w-2 bg-white/50" />
<div className="bg-caret/50 pointer-events-none absolute top-1.5 left-2 h-4 w-2" />
)}
</div>
</div>
Expand Down
6 changes: 6 additions & 0 deletions src/browser/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@
--color-selection: hsl(204 100% 60% / 0.5); /* selection blue with 50% opacity */
--color-vim-status: hsl(0 0% 83% / 0.6); /* status text with 60% opacity */
--color-code-keyword-overlay-light: hsl(210 100% 70% / 0.05); /* code keyword with 5% opacity */

/* Caret */
--color-caret: hsl(0 0% 100%);
--color-code-keyword-overlay: hsl(210 100% 70% / 0.2); /* code keyword with 20% opacity */

/* Info/status colors */
Expand Down Expand Up @@ -453,6 +456,9 @@
--color-selection: hsl(204 100% 45% / 0.3);
--color-vim-status: hsl(210 18% 32% / 0.6);
--color-code-keyword-overlay-light: hsl(210 88% 28% / 0.16);

/* Caret */
--color-caret: hsl(210 18% 16%);
--color-code-keyword-overlay: hsl(210 88% 28% / 0.32);

--color-info-light: hsl(5 90% 70%);
Expand Down