summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/utils/displayUtils.ts
diff options
context:
space:
mode:
authorJacob Richman <[email protected]>2025-08-15 20:18:31 -0700
committerGitHub <[email protected]>2025-08-16 03:18:31 +0000
commit6c1373c33212e26521701acf73c0398721b3a881 (patch)
tree6a00fb90c90b51a0c8285b21af7b174064ab6492 /packages/cli/src/ui/utils/displayUtils.ts
parentd57cc0b9306f0359482ef6e243308bcda2989007 (diff)
Revert "Update semantic color tokens" (#6365)
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 6f6c9209..a52c6ff0 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 { theme } from '../semantic-colors.js';
+import { Colors } from '../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 theme.status.success;
+ return Colors.AccentGreen;
}
if (value >= thresholds.yellow) {
- return theme.status.warning;
+ return Colors.AccentYellow;
}
- return options.defaultColor || theme.status.error;
+ return options.defaultColor || Colors.AccentRed;
};