forked from activist-org/activist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.css
242 lines (194 loc) · 6.88 KB
/
tailwind.css
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Text&display=swap");
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Note: *-over-layer-2 texts have opacities from tailwind.config.ts included. */
.light {
--layer-0: 255, 255, 255;
--layer-1: 246, 248, 250;
--layer-2: 240, 240, 235;
--section-div: 216, 222, 228;
--primary-text: 0, 0, 0;
--primary-text-over-layer-2: 36, 36, 35;
--distinct-text: 90, 90, 90;
--distinct-text-over-layer-2: 105, 105, 105;
--link-text: 0, 92, 184;
--link-text-hover: 0, 59, 119;
--menu-selection: 50, 50, 50;
--interactive: 75, 75, 67;
--highlight: 140, 140, 140;
--highlight-darker: 120, 120, 120;
--highlight-lighter: 140, 140, 140;
--cta-orange: 242, 166, 84;
--action-red: 186, 61, 59;
--learn-blue: 33, 118, 174;
--accepted-green: 62, 137, 20;
--warn-yellow: 255, 191, 0;
}
.dark {
--layer-0: 6, 8, 15;
--layer-1: 19, 19, 22;
--layer-2: 22, 27, 34;
--section-div: 43, 50, 59;
--primary-text: 255, 255, 255;
--primary-text-over-layer-2: 220, 221, 222;
--distinct-text: 150, 150, 150;
--distinct-text-over-layer-2: 137, 138, 138;
--link-text: 86, 167, 252;
--link-text-hover: 134, 192, 253;
--menu-selection: 200, 200, 200;
--interactive: 133, 126, 123;
--highlight: 70, 70, 70;
--highlight-darker: 70, 70, 70;
--highlight-lighter: 120, 120, 120;
--cta-orange: 241, 156, 65;
--action-red: 238, 90, 88;
--learn-blue: 62, 146, 204;
--accepted-green: 97, 139, 37;
--warn-yellow: 255, 209, 102;
}
@layer base {
body {
@apply bg-layer-2;
}
* {
@apply scrollbar scrollbar-track-transparent scrollbar-thumb-distinct-text scrollbar-thumb-rounded-md scrollbar-w-2;
}
}
@layer components {
.bg-breakpoint-test {
@apply bg-red-500 sm:bg-orange-500 md:bg-yellow-500 lg:bg-green-500 xl:bg-blue-500 2xl:bg-violet-500 3xl:bg-pink-500;
}
.btn-base-class {
@apply focus-brand elem-shadow-sm w-fit select-none px-4 py-2 text-center font-semibold;
}
.btn-disabled {
@apply focus-off elem-shadow-sm w-fit select-none px-4 py-2 text-center font-semibold;
}
.card-style-base {
@apply elem-shadow-sm rounded-md sm:rounded-lg;
}
.card-style {
@apply card-style-base bg-layer-1;
}
.elem-on-card-style {
@apply card-style-base elem-shadow-sm bg-layer-2 hover:bg-highlight active:bg-layer-2 dark:border dark:border-primary-text;
}
.elem-shadow-sm {
@apply shadow-sm shadow-zinc-700;
}
.elem-shadow-md {
@apply shadow-md shadow-zinc-700;
}
.elem-shadow-lg {
@apply shadow-lg shadow-zinc-700;
}
.focus-brand {
@apply rounded-sm focus:outline-none focus-visible:border-link-text focus-visible:ring-2 focus-visible:ring-link-text;
}
.focus-inside {
@apply rounded-sm focus-within:border-link-text focus-within:outline-none focus-within:ring-2 focus-within:ring-link-text;
}
.link-text {
@apply text-link-text hover:text-link-text-hover;
}
.responsive-h1 {
@apply font-display text-2xl sm:text-3xl md:text-4xl xl:text-5xl;
}
.responsive-h2 {
@apply font-display text-xl sm:text-2xl md:text-3xl xl:text-4xl;
}
.responsive-h3 {
@apply font-display text-lg sm:text-xl md:text-2xl xl:text-3xl;
}
.responsive-h4 {
@apply font-display text-base sm:text-lg md:text-xl xl:text-2xl;
}
.responsive-h5 {
@apply font-display text-base md:text-lg xl:text-xl;
}
.responsive-px-1 {
@apply px-1 sm:px-2;
}
.responsive-px-2 {
@apply px-2 lg:px-4 xl:px-6;
}
.responsive-px-3 {
@apply px-4 lg:px-6 xl:px-8;
}
.responsive-px-4 {
@apply px-6 lg:px-8 xl:px-10;
}
.responsive-px-5 {
@apply px-6 lg:px-10 xl:px-14;
}
.responsive-py-1 {
@apply py-1 sm:py-2;
}
.responsive-py-2 {
@apply py-2 lg:py-4 xl:py-6;
}
.responsive-py-3 {
@apply py-4 lg:py-6 xl:py-8;
}
.responsive-py-4 {
@apply py-6 lg:py-8 xl:py-10;
}
.responsive-py-5 {
@apply py-8 lg:py-10 xl:py-14;
}
.style-action {
@apply focus-brand border border-primary-text bg-action-red text-primary-text hover:bg-action-red/80 active:bg-action-red dark:border-action-red dark:bg-action-red/10 dark:text-action-red dark:hover:bg-action-red/25 dark:active:bg-action-red/10;
}
.style-btn {
@apply focus-brand elem-shadow-sm bg-layer-0 text-primary-text hover:bg-highlight active:bg-layer-0 dark:border dark:border-primary-text;
}
.style-btns-next-to-one-another {
@apply mx-auto grid max-w-[70%] grid-cols-1 gap-y-4 sm:mx-0 sm:max-w-[90%] sm:grid-cols-2 sm:grid-rows-1 sm:gap-x-4 sm:gap-y-0 md:max-w-[70%] md:gap-x-6 lg:max-w-[60%] xl:max-w-[70%] xl:gap-x-8 2xl:max-w-[80%];
}
.style-cta {
@apply focus-brand border border-primary-text bg-cta-orange fill-primary-text text-primary-text hover:bg-cta-orange/70 active:bg-cta-orange dark:border-cta-orange dark:bg-cta-orange/10 dark:fill-cta-orange dark:text-cta-orange dark:hover:bg-cta-orange/25 dark:active:bg-cta-orange/10;
}
.style-cta-disabled {
@apply focus-brand cursor-not-allowed border border-primary-text/50 bg-cta-orange/50 fill-primary-text/50 text-primary-text/50 shadow-none dark:border-cta-orange/50 dark:bg-cta-orange/10 dark:fill-cta-orange/50 dark:text-cta-orange/50;
}
.style-cta-secondary {
@apply focus-brand border border-primary-text bg-layer-2 fill-primary-text text-primary-text hover:bg-highlight-darker active:bg-layer-2 dark:border-primary-text dark:hover:bg-highlight-lighter;
}
.style-cta-secondary-disabled {
@apply focus-brand cursor-not-allowed border border-primary-text/50 bg-layer-2/75 fill-primary-text/50 text-primary-text/50 shadow-none dark:border-primary-text/50 dark:fill-primary-text/50 dark:text-primary-text/50;
}
.style-learn {
@apply focus-brand border border-primary-text bg-learn-blue text-primary-text hover:bg-learn-blue/80 active:bg-learn-blue dark:border-learn-blue dark:bg-learn-blue/10 dark:text-learn-blue dark:hover:bg-learn-blue/25 dark:active:bg-learn-blue/10;
}
.style-menu-option {
@apply focus-brand focus-brand fill-primary-text text-primary-text hover:bg-cta-orange/80 dark:fill-primary-text dark:text-primary-text dark:hover:bg-cta-orange/25 dark:hover:text-cta-orange;
}
.style-menu-option-cta {
@apply focus-brand bg-menu-selection fill-layer-1 text-layer-1 hover:bg-menu-selection/80;
}
.style-warn {
@apply focus-brand border border-primary-text bg-warn-yellow text-primary-text hover:bg-warn-yellow/80 active:bg-warn-yellow dark:border-warn-yellow dark:bg-warn-yellow/10 dark:text-warn-yellow dark:hover:bg-warn-yellow/25 dark:active:bg-warn-yellow/10;
}
.tooltip {
@apply absolute;
}
.has-tooltip:hover .tooltip {
@apply visible z-40;
}
}
.loading-pulse {
animation: pulse 4s infinite;
}
@keyframes pulse {
0% {
@apply opacity-50;
}
50% {
@apply opacity-100;
}
100% {
@apply opacity-50;
}
}