@@ -361,7 +361,7 @@ export function renderAssistantMessage(
361361 VStack({ padding: { x: 1 } }, [
362362 Text(thinking, {
363363 wrap: "word",
364- fgColor: "color08",
364+ fgColor: opts.theme.mutedText,
365365 italic: true,
366366 }),
367367 ]),
@@ -497,13 +497,13 @@ function renderToolLine(line: ToolRenderLine, theme: Theme): Node {
497497 case "command":
498498 case "path":
499499 return Text(line.text, {
500- fgColor: "color06",
500+ fgColor: theme.accentText,
501501 bold: true,
502502 wrap: "word",
503503 });
504504 case "toolName":
505505 return Text(line.text, {
506- fgColor: "color05",
506+ fgColor: theme.secondaryAccentText,
507507 bold: true,
508508 wrap: "word",
509509 });
@@ -738,7 +738,7 @@ export function renderStreamingResponse(
738738 VStack({ padding: { x: 1 } }, [
739739 Text(streaming.thinking, {
740740 wrap: "word",
741- fgColor: "color08",
741+ fgColor: opts.theme.mutedText,
742742 italic: true,
743743 }),
744744 ]),
@@ -765,10 +765,10 @@ export function renderStreamingResponse(
765765 // ---------------------------------------------------------------------------
766766
767767 /** Render an internal UI message in the conversation log. */
768-function renderUiMessage(msg: UiMessage): Node {
768+function renderUiMessage(msg: UiMessage, theme: Theme): Node {
769769 return VStack({ padding: { x: 1 } }, [
770770 Text(msg.content, {
771- fgColor: "color08",
771+ fgColor: theme.mutedText,
772772 italic: true,
773773 wrap: "word",
774774 }),
@@ -798,7 +798,7 @@ export function buildConversationLog(state: AppState): Node[] {
798798
799799 for (const msg of state.messages) {
800800 if (msg.role === "ui") {
801- pushConversationNode(renderUiMessage(msg));
801+ pushConversationNode(renderUiMessage(msg, state.theme));
802802 } else if (msg.role === "user") {
803803 pushConversationNode(renderUserMessage(msg, state.theme));
804804 } else if (msg.role === "assistant") {
@@ -847,7 +847,7 @@ export function buildConversationLog(state: AppState): Node[] {
847847 state.model
848848 ? "Ready. Type a message to start."
849849 : "No providers configured. Use /login to authenticate.",
850- { fgColor: "color08", italic: true },
850+ { fgColor: state.theme.mutedText, italic: true },
851851 ),
852852 ]),
853853 );
@@ -887,7 +887,10 @@ function renderOverlay(state: AppState): Node {
887887 padding: { x: 1 },
888888 },
889889 [
890- Text(activeOverlay!.title, { bold: true, fgColor: "color06" }),
890+ Text(activeOverlay!.title, {
891+ bold: true,
892+ fgColor: state.theme.accentText,
893+ }),
891894 activeOverlay!.select(),
892895 ],
893896 ),
@@ -895,6 +898,42 @@ function renderOverlay(state: AppState): Node {
895898 );
896899 }
897900
901+// ---------------------------------------------------------------------------
902+// Status bar
903+// ---------------------------------------------------------------------------
904+
905+/**
906+ * Render the two-line status bar.
907+ *
908+ * @param state - Application state.
909+ * @returns The status bar node.
910+ */
911+export function renderStatusBar(state: AppState): Node {
912+ return VStack(
913+ {
914+ height: 2,
915+ padding: { x: 1 },
916+ fgColor: state.theme.statusText,
917+ },
918+ [
919+ HStack({}, [
920+ Text(abbreviatePath(state.cwd)),
921+ Spacer(),
922+ Text(formatGitStatus(state), {
923+ fgColor: state.theme.secondaryAccentText,
924+ }),
925+ ]),
926+ HStack({}, [
927+ Text(formatModelInfo(state), {
928+ fgColor: state.theme.accentText,
929+ }),
930+ Spacer(),
931+ Text(formatUsage(state)),
932+ ]),
933+ ],
934+ );
935+}
936+
898937 // ---------------------------------------------------------------------------
899938 // Input area
900939 // ---------------------------------------------------------------------------
@@ -954,17 +993,21 @@ export function createInputController(state: AppState): InputController {
954993 /**
955994 * Render the padded input area.
956995 *
996+ * @param theme - Active UI theme.
957997 * @param controller - Stable TextInput callbacks.
958998 * @returns The input area node.
959999 */
960-export function renderInputArea(controller: InputController): Node {
1000+export function renderInputArea(
1001+ theme: Theme,
1002+ controller: InputController,
1003+): Node {
9611004 return VStack({ padding: { x: 1 } }, [
9621005 TextInput({
9631006 flex: 1,
9641007 maxHeight: 10,
9651008 value: inputValue,
9661009 onChange: controller.onChange,
967- placeholder: Text("message…", { fgColor: "color08" }),
1010+ placeholder: Text("message…", { fgColor: theme.mutedText }),
9681011 focused: inputFocused,
9691012 onFocus: controller.onFocus,
9701013 onBlur: controller.onBlur,
@@ -1004,7 +1047,7 @@ function handleModelCommand(state: AppState): void {
10041047 maxVisible: OVERLAY_MAX_VISIBLE,
10051048 placeholder: "type to filter models...",
10061049 focused: true,
1007- highlightColor: "color06",
1050+ highlightColor: state.theme.accentText,
10081051 onSelect: (value) => {
10091052 const picked = models.find((m) => `${m.provider}/${m.id}` === value);
10101053 if (picked) {
@@ -1041,7 +1084,7 @@ function handleEffortCommand(state: AppState): void {
10411084 maxVisible: OVERLAY_MAX_VISIBLE,
10421085 placeholder: "type to filter...",
10431086 focused: true,
1044- highlightColor: "color06",
1087+ highlightColor: state.theme.accentText,
10451088 onSelect: (value) => {
10461089 state.effort = value as ThinkingLevel;
10471090 dismissOverlay();
@@ -1078,7 +1121,7 @@ function handleSessionCommand(state: AppState): void {
10781121 maxVisible: OVERLAY_MAX_VISIBLE,
10791122 placeholder: "type to filter sessions...",
10801123 focused: true,
1081- highlightColor: "color06",
1124+ highlightColor: state.theme.accentText,
10821125 onSelect: (sessionId) => {
10831126 if (sessionId !== state.session.id) {
10841127 const picked = sessions.find((s) => s.id === sessionId);
@@ -1217,7 +1260,7 @@ function handleLoginCommand(state: AppState): void {
12171260 maxVisible: OVERLAY_MAX_VISIBLE,
12181261 placeholder: "type to filter providers...",
12191262 focused: true,
1220- highlightColor: "color06",
1263+ highlightColor: state.theme.accentText,
12211264 onSelect: (providerId) => {
12221265 dismissOverlay();
12231266 const provider = oauthProviders.find((p) => p.id === providerId);
@@ -1300,7 +1343,7 @@ function handleLogoutCommand(state: AppState): void {
13001343 maxVisible: OVERLAY_MAX_VISIBLE,
13011344 placeholder: "type to filter providers...",
13021345 focused: true,
1303- highlightColor: "color06",
1346+ highlightColor: state.theme.accentText,
13041347 onSelect: (providerId) => {
13051348 delete state.oauthCredentials[providerId];
13061349 saveOAuthCredentials(state.oauthCredentials);
@@ -1460,7 +1503,7 @@ function showCommandAutocomplete(state: AppState): void {
14601503 maxVisible: OVERLAY_MAX_VISIBLE,
14611504 placeholder: "type to filter commands...",
14621505 focused: true,
1463- highlightColor: "color06",
1506+ highlightColor: state.theme.accentText,
14641507 onSelect: (value) => {
14651508 dismissOverlay();
14661509 handleInput(`/${value}`, state);
@@ -1752,31 +1795,13 @@ export function startUI(state: AppState): void {
17521795 renderDivider(state, cols),
17531796
17541797 // ── Input area ──
1755- renderInputArea(inputController),
1798+ renderInputArea(state.theme, inputController),
17561799
17571800 // ── Static divider ──
17581801 Divider({ fgColor: state.theme.divider }),
17591802
17601803 // ── Status bar (2 lines) ──
1761- VStack(
1762- {
1763- height: 2,
1764- padding: { x: 1 },
1765- fgColor: state.theme.statusText,
1766- },
1767- [
1768- HStack({}, [
1769- Text(abbreviatePath(state.cwd)),
1770- Spacer(),
1771- Text(formatGitStatus(state), { fgColor: "color05" }),
1772- ]),
1773- HStack({}, [
1774- Text(formatModelInfo(state), { fgColor: "color06" }),
1775- Spacer(),
1776- Text(formatUsage(state)),
1777- ]),
1778- ],
1779- ),
1804+ renderStatusBar(state),
17801805 ],
17811806 );