-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcolours.js
72 lines (64 loc) · 1.45 KB
/
colours.js
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import { copyObj } from "@ractf/util";
export const BASE_COLOURS = {
white: "#fff",
lightGrey: "#f2f2f2",
grey: "#e0e1e2",
darkGrey: "#5b5b5b",
black: "#363636",
blue: "#4582ec",
indigo: "#6610f2",
purple: "#6f42c1",
pink: "#e83e8c",
red: "#d9534f",
orange: "#fd7e14",
yellow: "#f0ad4e",
green: "#02b875",
teal: "#20c997",
cyan: "#17a2b8",
accent: "#4582ec",
background: "--col-white",
color: "--col-black",
"back-lift": "rgba(54, 54, 54, 0.125)",
"back-lift-2x": "rgba(54, 54, 54, 0.25)",
};
export const COLOURS = copyObj(BASE_COLOURS);
export const BASE_TYPES = {
primary: {
fg: "--col-white",
bg: "--col-accent",
},
secondary: {
fg: "--col-darkGrey",
bg: "--col-grey",
"fg-lesser": "--col-darkGrey",
},
success: {
fg: "--col-white",
bg: "--col-green",
},
info: {
fg: "--col-white",
bg: "--col-cyan",
},
warning: {
fg: "--col-black",
bg: "--col-yellow",
},
danger: {
fg: "--col-white",
bg: "--col-red",
},
dark: {
fg: "--col-white",
bg: "--col-black",
},
light: {
fg: "--col-black",
bg: "--col-lightGrey",
"fg-lesser": "--col-black",
"bg-lesser": "--col-lightGrey",
},
};
export const TYPES = copyObj(BASE_TYPES);
window.__ractf_colours = COLOURS;
window.__ractf_types = TYPES;