-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.ts
More file actions
51 lines (47 loc) · 1.22 KB
/
constants.ts
File metadata and controls
51 lines (47 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import type { Defect } from './types';
export const DEFECT_COLORS: Record<Defect['type'], { border: string; bg: string; text: string }> = {
'Pothole': {
border: 'border-orange-500',
bg: 'bg-orange-500/20',
text: 'text-orange-400'
},
'Rutting': {
border: 'border-green-500',
bg: 'bg-green-500/20',
text: 'text-green-400'
},
'Alligator Crack': {
border: 'border-blue-500',
bg: 'bg-blue-500/20',
text: 'text-blue-400'
},
'Longitudinal Crack': {
border: 'border-orange-500',
bg: 'bg-orange-500/20',
text: 'text-orange-400'
},
'Transverse Crack': {
border: 'border-teal-500',
bg: 'bg-teal-500/20',
text: 'text-teal-400'
},
'Block Crack': {
border: 'border-purple-500',
bg: 'bg-purple-500/20',
text: 'text-purple-400'
},
'Roughness': {
border: 'border-yellow-500',
bg: 'bg-yellow-500/20',
text: 'text-yellow-400'
},
'Distress': {
border: 'border-indigo-500',
bg: 'bg-indigo-500/20',
text: 'text-indigo-400'
}
};
export const SEGMENT_COLORS: Record<string, { border: string; bg: string; text: string }> = {
...DEFECT_COLORS,
};
export const DEFECT_TYPES = Object.keys(DEFECT_COLORS) as (keyof typeof DEFECT_COLORS)[];