summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/InputPrompt.tsx
diff options
context:
space:
mode:
authorMiguel Solorio <[email protected]>2025-08-07 16:11:35 -0700
committerGitHub <[email protected]>2025-08-07 23:11:35 +0000
commit785ee5d59a60df89413d8f0dd1b7916279f6e786 (patch)
tree297ed9dc210070c349189018848a31f8ff802a3d /packages/cli/src/ui/components/InputPrompt.tsx
parent4f2974dbfe36638915f1b08448d2563c64f88644 (diff)
Use semantic colors in themes (#5796)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/components/InputPrompt.tsx')
-rw-r--r--packages/cli/src/ui/components/InputPrompt.tsx14
1 files changed, 8 insertions, 6 deletions
diff --git a/packages/cli/src/ui/components/InputPrompt.tsx b/packages/cli/src/ui/components/InputPrompt.tsx
index 7a7a9934..7250afea 100644
--- a/packages/cli/src/ui/components/InputPrompt.tsx
+++ b/packages/cli/src/ui/components/InputPrompt.tsx
@@ -6,7 +6,7 @@
import React, { useCallback, useEffect, useState } from 'react';
import { Box, Text } from 'ink';
-import { Colors } from '../colors.js';
+import { theme } from '../semantic-colors.js';
import { SuggestionsDisplay } from './SuggestionsDisplay.js';
import { useInputHistory } from '../hooks/useInputHistory.js';
import { TextBuffer, logicalPosToOffset } from './shared/text-buffer.js';
@@ -469,15 +469,17 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
<>
<Box
borderStyle="round"
- borderColor={shellModeActive ? Colors.AccentYellow : Colors.AccentBlue}
+ borderColor={
+ shellModeActive ? theme.status.warning : theme.border.focused
+ }
paddingX={1}
>
<Text
- color={shellModeActive ? Colors.AccentYellow : Colors.AccentPurple}
+ color={shellModeActive ? theme.status.warning : theme.text.accent}
>
{shellModeActive ? (
reverseSearchActive ? (
- <Text color={Colors.AccentCyan}>(r:) </Text>
+ <Text color={theme.text.link}>(r:) </Text>
) : (
'! '
)
@@ -490,10 +492,10 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
focus ? (
<Text>
{chalk.inverse(placeholder.slice(0, 1))}
- <Text color={Colors.Gray}>{placeholder.slice(1)}</Text>
+ <Text color={theme.text.secondary}>{placeholder.slice(1)}</Text>
</Text>
) : (
- <Text color={Colors.Gray}>{placeholder}</Text>
+ <Text color={theme.text.secondary}>{placeholder}</Text>
)
) : (
linesToRender.map((lineText, visualIdxInRenderedSet) => {