From 785ee5d59a60df89413d8f0dd1b7916279f6e786 Mon Sep 17 00:00:00 2001 From: Miguel Solorio Date: Thu, 7 Aug 2025 16:11:35 -0700 Subject: Use semantic colors in themes (#5796) Co-authored-by: Jacob Richman --- packages/cli/src/ui/themes/theme-manager.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'packages/cli/src/ui/themes/theme-manager.ts') 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'; @@ -134,6 +135,14 @@ class ThemeManager { return this.activeTheme; } + /** + * 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. -- cgit v1.2.3