Revert "Update semantic color tokens" (#6365)

This commit is contained in:
Jacob Richman
2025-08-15 20:18:31 -07:00
committed by GitHub
parent d57cc0b930
commit 6c1373c332
60 changed files with 502 additions and 606 deletions

View File

@@ -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;
};