Skip to content
File

Blob: src/client/components/editor/controllers/colors.ts

typescript31 lines
1export interface ColorEntry {
2 value: string | null;
3 label: string;
4}
5 
6export const TEXT_COLORS: ColorEntry[] = [
7 { value: null, label: "Default" },
8 { value: "#ef4444", label: "Red" },
9 { value: "#f97316", label: "Orange" },
10 { value: "#eab308", label: "Yellow" },
11 { value: "#22c55e", label: "Green" },
12 { value: "#3b82f6", label: "Blue" },
13 { value: "#8b5cf6", label: "Violet" },
14 { value: "#ec4899", label: "Pink" },
15 { value: "#14b8a6", label: "Teal" },
16 { value: "#f4f4f5", label: "White" },
17];
18 
19export const BG_COLORS: ColorEntry[] = [
20 { value: null, label: "None" },
21 { value: "rgba(239,68,68,0.35)", label: "Red" },
22 { value: "rgba(234,179,8,0.35)", label: "Yellow" },
23 { value: "rgba(34,197,94,0.35)", label: "Green" },
24 { value: "rgba(59,130,246,0.35)", label: "Blue" },
25 { value: "rgba(139,92,246,0.35)", label: "Violet" },
26 { value: "rgba(236,72,153,0.35)", label: "Pink" },
27 { value: "rgba(20,184,166,0.35)", label: "Teal" },
28 { value: "rgba(249,115,22,0.35)", label: "Orange" },
29 { value: "rgba(244,244,245,0.15)", label: "Gray" },
30];