-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.ts
More file actions
30 lines (26 loc) · 734 Bytes
/
Copy pathconstants.ts
File metadata and controls
30 lines (26 loc) · 734 Bytes
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
import { Color } from './types';
export const COLORS = [
Color.RED,
Color.ORANGE,
Color.YELLOW,
Color.GREEN,
Color.BLUE,
Color.PURPLE,
];
export const COLORS_HARD = [
...COLORS,
Color.CYAN,
Color.MAGENTA,
];
export const COLOR_STYLES: Record<Color, string> = {
[Color.RED]: 'bg-red-500 ring-red-300',
[Color.ORANGE]: 'bg-orange-500 ring-orange-300',
[Color.YELLOW]: 'bg-yellow-400 ring-yellow-200',
[Color.GREEN]: 'bg-green-500 ring-green-300',
[Color.BLUE]: 'bg-blue-500 ring-blue-300',
[Color.PURPLE]: 'bg-purple-500 ring-purple-300',
[Color.CYAN]: 'bg-cyan-400 ring-cyan-200',
[Color.MAGENTA]: 'bg-fuchsia-500 ring-fuchsia-300',
};
export const MAX_GUESSES = 10;
export const CODE_LENGTH = 4;