diff options
| author | Jacob Richman <[email protected]> | 2025-08-15 20:18:31 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-16 03:18:31 +0000 |
| commit | 6c1373c33212e26521701acf73c0398721b3a881 (patch) | |
| tree | 6a00fb90c90b51a0c8285b21af7b174064ab6492 /packages/cli/src/ui/utils/MarkdownDisplay.tsx | |
| parent | d57cc0b9306f0359482ef6e243308bcda2989007 (diff) | |
Revert "Update semantic color tokens" (#6365)
Diffstat (limited to 'packages/cli/src/ui/utils/MarkdownDisplay.tsx')
| -rw-r--r-- | packages/cli/src/ui/utils/MarkdownDisplay.tsx | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/packages/cli/src/ui/utils/MarkdownDisplay.tsx b/packages/cli/src/ui/utils/MarkdownDisplay.tsx index d656dbc8..7568e1f8 100644 --- a/packages/cli/src/ui/utils/MarkdownDisplay.tsx +++ b/packages/cli/src/ui/utils/MarkdownDisplay.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { Text, Box } from 'ink'; -import { theme } from '../semantic-colors.js'; +import { Colors } from '../colors.js'; import { colorizeCode } from './CodeColorizer.js'; import { TableRenderer } from './TableRenderer.js'; import { RenderInline } from './InlineMarkdownRenderer.js'; @@ -115,7 +115,7 @@ const MarkdownDisplayInternal: React.FC<MarkdownDisplayProps> = ({ // Not a table, treat as regular text addContentBlock( <Box key={key}> - <Text wrap="wrap" color={theme.text.primary}> + <Text wrap="wrap"> <RenderInline text={line} /> </Text> </Box>, @@ -154,7 +154,7 @@ const MarkdownDisplayInternal: React.FC<MarkdownDisplayProps> = ({ if (line.trim().length > 0) { addContentBlock( <Box key={key}> - <Text wrap="wrap" color={theme.text.primary}> + <Text wrap="wrap"> <RenderInline text={line} /> </Text> </Box>, @@ -173,35 +173,35 @@ const MarkdownDisplayInternal: React.FC<MarkdownDisplayProps> = ({ switch (level) { case 1: headerNode = ( - <Text bold color={theme.text.accent}> + <Text bold color={Colors.AccentCyan}> <RenderInline text={headerText} /> </Text> ); break; case 2: headerNode = ( - <Text bold color={theme.text.link}> + <Text bold color={Colors.AccentBlue}> <RenderInline text={headerText} /> </Text> ); break; case 3: headerNode = ( - <Text bold color={theme.text.primary}> + <Text bold> <RenderInline text={headerText} /> </Text> ); break; case 4: headerNode = ( - <Text italic color={theme.text.secondary}> + <Text italic color={Colors.Gray}> <RenderInline text={headerText} /> </Text> ); break; default: headerNode = ( - <Text color={theme.text.primary}> + <Text> <RenderInline text={headerText} /> </Text> ); @@ -245,7 +245,7 @@ const MarkdownDisplayInternal: React.FC<MarkdownDisplayProps> = ({ } else { addContentBlock( <Box key={key}> - <Text wrap="wrap" color={theme.text.primary}> + <Text wrap="wrap"> <RenderInline text={line} /> </Text> </Box>, @@ -314,9 +314,7 @@ const RenderCodeBlockInternal: React.FC<RenderCodeBlockProps> = ({ // Not enough space to even show the message meaningfully return ( <Box paddingLeft={CODE_BLOCK_PREFIX_PADDING}> - <Text color={theme.text.secondary}> - ... code is being written ... - </Text> + <Text color={Colors.Gray}>... code is being written ...</Text> </Box> ); } @@ -332,7 +330,7 @@ const RenderCodeBlockInternal: React.FC<RenderCodeBlockProps> = ({ return ( <Box paddingLeft={CODE_BLOCK_PREFIX_PADDING} flexDirection="column"> {colorizedTruncatedCode} - <Text color={theme.text.secondary}>... generating more ...</Text> + <Text color={Colors.Gray}>... generating more ...</Text> </Box> ); } @@ -385,10 +383,10 @@ const RenderListItemInternal: React.FC<RenderListItemProps> = ({ flexDirection="row" > <Box width={prefixWidth}> - <Text color={theme.text.accent}>{prefix}</Text> + <Text>{prefix}</Text> </Box> <Box flexGrow={LIST_ITEM_TEXT_FLEX_GROW}> - <Text wrap="wrap" color={theme.text.primary}> + <Text wrap="wrap"> <RenderInline text={itemText} /> </Text> </Box> |
