diff options
| author | Miguel Solorio <[email protected]> | 2025-08-07 16:11:35 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-07 23:11:35 +0000 |
| commit | 785ee5d59a60df89413d8f0dd1b7916279f6e786 (patch) | |
| tree | 297ed9dc210070c349189018848a31f8ff802a3d /packages/cli/src/ui/themes/theme-manager.ts | |
| parent | 4f2974dbfe36638915f1b08448d2563c64f88644 (diff) | |
Use semantic colors in themes (#5796)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/themes/theme-manager.ts')
| -rw-r--r-- | packages/cli/src/ui/themes/theme-manager.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/cli/src/ui/themes/theme-manager.ts b/packages/cli/src/ui/themes/theme-manager.ts index e30c1cce..b19b06a9 100644 --- a/packages/cli/src/ui/themes/theme-manager.ts +++ b/packages/cli/src/ui/themes/theme-manager.ts @@ -22,6 +22,7 @@ import { createCustomTheme, validateCustomTheme, } from './theme.js'; +import { SemanticColors } from './semantic-tokens.js'; import { ANSI } from './ansi.js'; import { ANSILight } from './ansi-light.js'; import { NoColorTheme } from './no-color.js'; @@ -135,6 +136,14 @@ class ThemeManager { } /** + * Gets the semantic colors for the active theme. + * @returns The semantic colors. + */ + getSemanticColors(): SemanticColors { + return this.getActiveTheme().semanticColors; + } + + /** * Gets a list of custom theme names. * @returns Array of custom theme names. */ |
