Elffuss BraidHub

kikocis/continue public

fix: :lipstick: Fix theme colors and prettier
Changeset0edd3d43967bde8499bb4ed416360490a9a41b209760baed1accf47439203c88
Authorchezsmithy <chezsmithy@me.com> · 2025-08-27 14:26 -07:00
Committerchezsmithy <chezsmithy@me.com> · 2025-08-27 14:26 -07:00
Parentscf44248155ac

Browse the files at this changeset

3 files changed

modified gui/src/components/UnifiedTerminal/UnifiedTerminal.tsx +24 −14
@@ -65,7 +65,17 @@
6565 fontSize?: number;
6666 }>`
6767 background-color: var(--background);
68- font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
68+ font-family:
69+ ui-sans-serif,
70+ system-ui,
71+ -apple-system,
72+ BlinkMacSystemFont,
73+ "Segoe UI",
74+ Roboto,
75+ "Helvetica Neue",
76+ Arial,
77+ "Noto Sans",
78+ sans-serif;
6979 font-size: ${(props) => props.fontSize || getFontSize()}px;
7080 color: var(--foreground);
7181 line-height: 1.5;
@@ -93,11 +103,15 @@
93103 border-radius: 0.5rem;
94104 background-color: var(--editor-background);
95105 font-size: ${getFontSize() - 2}px;
96- font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
106+ font-family:
107+ ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono",
108+ Menlo, monospace;
97109 }
98110
99111 code:not(pre > code) {
100- font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
112+ font-family:
113+ ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono",
114+ Menlo, monospace;
101115 color: var(--input-placeholder);
102116 }
103117 `;
@@ -404,10 +418,7 @@
404418 }, [command, output, hasOutput]);
405419
406420 return (
407- <StyledTerminalContainer
408- fontSize={getFontSize()}
409- className="mb-4"
410- >
421+ <StyledTerminalContainer fontSize={getFontSize()} className="mb-4">
411422 <div className="outline-command-border -outline-offset-0.5 rounded-default bg-editor !my-2 flex min-w-0 flex-col outline outline-1">
412423 {/* Toolbar */}
413424 <div
@@ -444,11 +455,7 @@
444455 <pre className="bg-editor">
445456 <code>
446457 {/* Command is always visible */}
447- <div
448- className="pb-2 text-terminal"
449- >
450- $ {command}
451- </div>
458+ <div className="text-terminal pb-2">$ {command}</div>
452459
453460 {/* Running state with cursor */}
454461 {isRunning && !hasOutput && (
@@ -498,9 +505,12 @@
498505
499506 {/* Status information */}
500507 {(statusMessage || isRunning) && (
501- <div
508+ <div
502509 className="text-description flex items-center px-2 pb-2 pt-2 text-xs"
503- style={{ borderTop: '1px solid var(--vscode-commandCenter-inactiveBorder, #555555)' }}
510+ style={{
511+ borderTop:
512+ "1px solid var(--vscode-commandCenter-inactiveBorder, #555555)",
513+ }}
504514 >
505515 <StatusIcon status={statusType} />
506516 {isRunning ? "Running" : statusMessage}
modified gui/src/styles/theme.ts +4 −0
@@ -140,6 +140,10 @@
140140 vars: ["--vscode-textLink-foreground"],
141141 default: "#5c9ce6", // medium blue
142142 },
143+ terminal: {
144+ vars: ["--vscode-terminal-ansiGreen"],
145+ default: "#0dbc79", // green
146+ },
143147 textCodeBlockBackground: {
144148 vars: ["--vscode-textCodeBlock-background"],
145149 default: "#1e1e1e", // same as editor-background
modified gui/tailwind.config.cjs +1 −0
@@ -86,6 +86,7 @@
8686 error: varWithFallback("error"),
8787 link: varWithFallback("link"),
8888 accent: varWithFallback("accent"),
89+ terminal: varWithFallback("terminal"),
8990 findMatch: {
9091 DEFAULT: THEME_COLORS["find-match"].default,
9192 selected: varWithFallback("find-match-selected"),