summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/utils/displayUtils.ts
diff options
context:
space:
mode:
authorMiguel Solorio <[email protected]>2025-08-15 15:39:54 -0700
committerGitHub <[email protected]>2025-08-15 22:39:54 +0000
commit3c0af3654ac5491e79c6f9b55de5debf0e1e13c1 (patch)
tree51eabe9544038b06b0c0a78d31dfa25232de3754 /packages/cli/src/ui/utils/displayUtils.ts
parent5246aa11f49108a22d4ba306a49b1af79153cac1 (diff)
Update semantic color tokens (#6253)
Co-authored-by: jacob314 <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/utils/displayUtils.ts')
-rw-r--r--packages/cli/src/ui/utils/displayUtils.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/cli/src/ui/utils/displayUtils.ts b/packages/cli/src/ui/utils/displayUtils.ts
index a52c6ff0..6f6c9209 100644
--- a/packages/cli/src/ui/utils/displayUtils.ts
+++ b/packages/cli/src/ui/utils/displayUtils.ts
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
-import { Colors } from '../colors.js';
+import { theme } from '../semantic-colors.js';
// --- Thresholds ---
export const TOOL_SUCCESS_RATE_HIGH = 95;
@@ -23,10 +23,10 @@ export const getStatusColor = (
options: { defaultColor?: string } = {},
) => {
if (value >= thresholds.green) {
- return Colors.AccentGreen;
+ return theme.status.success;
}
if (value >= thresholds.yellow) {
- return Colors.AccentYellow;
+ return theme.status.warning;
}
- return options.defaultColor || Colors.AccentRed;
+ return options.defaultColor || theme.status.error;
};