web/src/styles/values.css
145 lines · 3331 bytes
1html {
2 --ink-dark: #1e1f21;
3 --ink-light: #fff;
4
5 --accent: #f45397;
6 --accent-2: #ffdf60;
7 --accent-3: #5f53f4;
8 --accent-4: #28dffd;
9
10 /* Legible ink for text sitting on each accent fill (theme-independent) */
11 --accent-fg: var(--ink-dark);
12 --accent-2-fg: var(--ink-dark);
13 --accent-3-fg: var(--ink-light);
14 --accent-4-fg: var(--ink-dark);
15
16 /* Accent tints legible as text on --background / --surface */
17 --accent-text: var(--accent);
18 --accent-3-text: #8b82f7;
19
20 --bright: #fff;
21
22 --foreground: #fff;
23 --foreground-muted: #b9b9c0;
24 --background-hr-color: #2f2f2f;
25
26 --curve-sm: 4px;
27 --curve-md: 6px;
28 --curve-lg: 12px;
29 --curve-pill: 18px;
30
31 --danger: #ff0048;
32 --success: #00ff64;
33 --success-muted: #0fb953;
34
35 --transparent-accent: #5f53f482;
36 --accent-translucent: #f453974d;
37 --accent-3-translucent: #5f53f440;
38 --code-bg: #acabb782;
39
40 --background: #151517;
41 --bg-gradient-comp-1: #151517;
42 --bg-gradient-comp-2: #151517;
43 --background-form: #19191c;
44 --surface: #1e1f21;
45 --surface-line: #ffffff1f;
46
47 --box-outline: #000;
48
49 --font-heading: 'Libre Franklin', sans-serif;
50 --font-subtitle: 'Lekton', sans-serif;
51 --font-body: 'Rubik', sans-serif;
52
53 --shadow-lg: 6px 6px 0 var(--box-outline);
54 --shadow-md: 4px 4px 0 var(--box-outline);
55 --shadow-sm: 3px 3px 0 var(--box-outline);
56 --shadow-xs: 2px 2px 0 var(--box-outline);
57
58 --shadow-lg-hover: 8px 8px 0 var(--box-outline);
59 --shadow-sm-hover: 4px 4px 0 var(--box-outline);
60 --shadow-xs-hover: 3px 3px 0 var(--box-outline);
61
62 --border-heavy: 2px solid var(--box-outline);
63 --border-light: 1px solid var(--box-outline);
64
65 --font-code: Menlo, Monaco, 'Liberation Mono', 'Courier New', monospace;
66
67 --text-xs: 0.75rem;
68 --text-sm: 0.85rem;
69 --text-base: 1rem;
70 --text-md: 1.2rem;
71 --text-lg: 1.4rem;
72 --text-xl: 1.6rem;
73 --text-2xl: 1.8rem;
74 --text-3xl: 2rem;
75 --text-4xl: 3rem;
76 --text-5xl: 5rem;
77
78 --space-xs: 0.25rem;
79 --space-sm: 0.5rem;
80 --space-md: 1rem;
81 --space-lg: 2rem;
82 --space-xl: 3rem;
83 --space-2xl: 4rem;
84
85 --opacity-dim: 0.65;
86 --opacity-muted: 0.6;
87 --opacity-soft: 0.7;
88 --opacity-subtle: 0.8;
89
90 --width-container: 1200px;
91 --width-container-narrow: 1000px;
92 --width-container-max: calc(100% - 5rem);
93
94 --transition-fast: all 0.15s ease-in-out;
95 --transition-normal: all 0.2s ease-in-out;
96
97 --rating-a: #35b969;
98 --rating-b: #6bb935;
99 --rating-c: #c7cc22;
100 --rating-d: #e1bb23;
101 --rating-e: #df8b1e;
102 --rating-f: #f2703a;
103 --rating-g: #f8524f;
104 --rating-neutral: #ecd40f;
105 --rating-unknown: #9a9aa2;
106
107 --changelog-add: #6fdd8b;
108 --changelog-rem: #fdcc0b;
109 --changelog-mod: #42c1ff;
110 --changelog-rej: #ff2d55;
111
112 &[data-theme='light'] {
113 --accent-text: #c2185b;
114 --accent-3-text: #5346e8;
115
116 --foreground: #13151a;
117 --foreground-muted: #55565e;
118 --background: #f1ebf1;
119 --bg-gradient-comp-1: #feecff;
120 --bg-gradient-comp-2: #e1e4fb;
121 --background-form: #fff;
122 --surface: #fff;
123 --surface-line: #0000001f;
124 --background-hr-color: #ececec;
125
126 --success: #006e32;
127 --success-muted: #097a36;
128 --danger: #a80032;
129
130 --rating-a: #186636;
131 --rating-b: #3b6b1d;
132 --rating-c: #5f6211;
133 --rating-d: #6b590f;
134 --rating-e: #77490e;
135 --rating-f: #8c3211;
136 --rating-g: #991414;
137 --rating-neutral: #6b6007;
138 --rating-unknown: #54555b;
139
140 --changelog-rem: #7a6204;
141 --changelog-rej: #b81936;
142 --changelog-mod: #256f92;
143 --changelog-add: #33683f;
144 }
145}