InstanceNode.utils.ts5 lines · main
1export function metricColor(value: number): string {
2 if (value >= 90) return 'text-destructive'
3 if (value >= 80) return 'text-warning'
4 return 'text-foreground-light'
5}