@hazae41/labase 1.0.30 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,7 +16,7 @@ npm i @hazae41/labase
16
16
  ## Setup
17
17
 
18
18
  ```css
19
- @import "../node_modules/@hazae41/labase/src/index.css";
19
+ @import "../node_modules/@hazae41/labase/src/mod.css";
20
20
  ```
21
21
 
22
22
  ## Usage
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@hazae41/labase",
4
- "version": "1.0.30",
4
+ "version": "1.0.32",
5
5
  "description": "The Tailwind framework for monochrome apps",
6
6
  "repository": "github:hazae41/labase",
7
7
  "author": "hazae41",
@@ -10,18 +10,6 @@
10
10
  }
11
11
  }
12
12
 
13
- @keyframes scale-in {
14
- from {
15
- transform: scale(0%);
16
- }
17
- }
18
-
19
- @keyframes scale-out {
20
- to {
21
- transform: scale(0%);
22
- }
23
- }
24
-
25
13
  @keyframes slideup-in {
26
14
  from {
27
15
  transform: translateY(calc(100vh));
@@ -46,22 +34,6 @@
46
34
  }
47
35
  }
48
36
 
49
- @keyframes scale-xy-in {
50
- from {
51
- opacity: 0%;
52
- transform: scale(0%);
53
- translate: calc(-50vw + var(--x)) calc(-50vh + var(--y));
54
- }
55
- }
56
-
57
- @keyframes scale-xy-out {
58
- to {
59
- opacity: 0%;
60
- transform: scale(0%);
61
- translate: calc(-50vw + var(--x)) calc(-50vh + var(--y));
62
- }
63
- }
64
-
65
37
  @keyframes scale-xywh-in {
66
38
  from {
67
39
  opacity: 0%;
@@ -82,6 +54,7 @@
82
54
  from {
83
55
  transform: rotate(-1deg);
84
56
  }
57
+
85
58
  to {
86
59
  transform: rotate(1deg);
87
60
  }
@@ -95,14 +68,6 @@
95
68
  animation: opacity-out 300ms ease-in;
96
69
  }
97
70
 
98
- @utility animate-scale-in {
99
- animation: scale-in 300ms ease-out;
100
- }
101
-
102
- @utility animate-scale-out {
103
- animation: scale-out 300ms ease-in;
104
- }
105
-
106
71
  @utility animate-slideup-in {
107
72
  animation: slideup-in 300ms ease-out;
108
73
  }
@@ -119,22 +84,6 @@
119
84
  animation: flip-out 900ms ease-in-out;
120
85
  }
121
86
 
122
- @utility animate-opacity-scale-in {
123
- animation: opacity-in 300ms ease-out, scale 300ms ease-out;
124
- }
125
-
126
- @utility animate-opacity-scale-out {
127
- animation: opacity-out 300ms ease-in, scale 300ms ease-in;
128
- }
129
-
130
- @utility animate-scale-xy-in {
131
- animation: scale-xy-in 300ms ease-out;
132
- }
133
-
134
- @utility animate-scale-xy-out {
135
- animation: scale-xy-out 300ms ease-in;
136
- }
137
-
138
87
  @utility animate-scale-xywh-in {
139
88
  animation: scale-xywh-in 300ms ease-out;
140
89
  }
@@ -3,49 +3,73 @@
3
3
  }
4
4
 
5
5
  @utility bg-default {
6
- @apply bg-white;
6
+
7
+ @variant light {
8
+ @apply bg-white;
9
+ }
7
10
 
8
11
  @variant dark {
9
12
  @apply bg-black;
10
13
  }
14
+
11
15
  }
12
16
 
13
17
  @utility bg-opposite {
14
- @apply bg-black;
18
+
19
+ @variant light {
20
+ @apply bg-black;
21
+ }
15
22
 
16
23
  @variant dark {
17
24
  @apply bg-white;
18
25
  }
26
+
19
27
  }
20
28
 
21
29
  @utility bg-default-contrast {
22
- @apply bg-black/5;
30
+
31
+ @variant light {
32
+ @apply bg-black/5;
33
+ }
23
34
 
24
35
  @variant dark {
25
36
  @apply bg-white/10;
26
37
  }
38
+
27
39
  }
28
40
 
29
41
  @utility bg-opposite-contrast {
30
- @apply bg-black/90;
42
+
43
+ @variant light {
44
+ @apply bg-black/90;
45
+ }
31
46
 
32
47
  @variant dark {
33
48
  @apply bg-white/95;
34
49
  }
50
+
35
51
  }
36
52
 
37
53
  @utility bg-default-double-contrast {
38
- @apply bg-black/10;
54
+
55
+ @variant light {
56
+ @apply bg-black/10;
57
+ }
39
58
 
40
59
  @variant dark {
41
60
  @apply bg-white/20;
42
61
  }
62
+
43
63
  }
44
64
 
45
65
  @utility bg-opposite-double-contrast {
46
- @apply bg-black/80;
66
+
67
+ @variant light {
68
+ @apply bg-black/80;
69
+ }
47
70
 
48
71
  @variant dark {
49
72
  @apply bg-white/90;
50
73
  }
74
+
51
75
  }
@@ -1,289 +1,431 @@
1
1
  @utility border-default {
2
- @apply border-white;
2
+
3
+ @variant light {
4
+ @apply border-white;
5
+ }
3
6
 
4
7
  @variant dark {
5
8
  @apply border-black;
6
9
  }
10
+
7
11
  }
8
12
 
9
13
  @utility border-opposite {
10
- @apply border-black;
14
+
15
+ @variant light {
16
+ @apply border-black;
17
+ }
11
18
 
12
19
  @variant dark {
13
20
  @apply border-white;
14
21
  }
22
+
15
23
  }
16
24
 
17
25
  @utility border-default-contrast {
18
- @apply border-black/10;
26
+
27
+ @variant light {
28
+ @apply border-black/10;
29
+ }
19
30
 
20
31
  @variant dark {
21
32
  @apply border-white/20;
22
33
  }
34
+
23
35
  }
24
36
 
25
37
  @utility border-opposite-contrast {
26
- /* strong dark on light */
27
- @apply border-black/80;
38
+
39
+ @variant light {
40
+ @apply border-black/80;
41
+ }
28
42
 
29
43
  @variant dark {
30
- /* strong light on dark */
31
44
  @apply border-white/90;
32
45
  }
46
+
33
47
  }
34
48
 
35
49
  @utility border-b-default {
36
- @apply border-b-white;
50
+
51
+ @variant light {
52
+ @apply border-b-white;
53
+ }
37
54
 
38
55
  @variant dark {
39
56
  @apply border-b-black;
40
57
  }
58
+
41
59
  }
42
60
 
43
61
  @utility border-l-default {
44
- @apply border-l-white;
62
+
63
+ @variant light {
64
+ @apply border-l-white;
65
+ }
45
66
 
46
67
  @variant dark {
47
68
  @apply border-l-black;
48
69
  }
70
+
49
71
  }
50
72
 
51
73
  @utility border-t-default {
52
- @apply border-t-white;
74
+
75
+ @variant light {
76
+ @apply border-t-white;
77
+ }
53
78
 
54
79
  @variant dark {
55
80
  @apply border-t-black;
56
81
  }
82
+
57
83
  }
58
84
 
59
85
  @utility border-r-default {
60
- @apply border-r-white;
86
+
87
+ @variant light {
88
+ @apply border-r-white;
89
+ }
61
90
 
62
91
  @variant dark {
63
92
  @apply border-r-black;
64
93
  }
94
+
65
95
  }
66
96
 
67
97
  @utility border-x-default {
68
- @apply border-x-white;
98
+
99
+ @variant light {
100
+ @apply border-x-white;
101
+ }
69
102
 
70
103
  @variant dark {
71
104
  @apply border-x-black;
72
105
  }
106
+
73
107
  }
74
108
 
75
109
  @utility border-y-default {
76
- @apply border-y-white;
110
+
111
+ @variant light {
112
+ @apply border-y-white;
113
+ }
77
114
 
78
115
  @variant dark {
79
116
  @apply border-y-black;
80
117
  }
118
+
81
119
  }
82
120
 
83
121
  @utility border-s-default {
84
- @apply border-s-white;
122
+
123
+ @variant light {
124
+ @apply border-s-white;
125
+ }
85
126
 
86
127
  @variant dark {
87
128
  @apply border-s-black;
88
129
  }
130
+
89
131
  }
90
132
 
91
133
  @utility border-e-default {
92
- @apply border-e-white;
134
+
135
+ @variant light {
136
+ @apply border-e-white;
137
+ }
93
138
 
94
139
  @variant dark {
95
140
  @apply border-e-black;
96
141
  }
142
+
97
143
  }
98
144
 
99
145
  @utility border-b-opposite {
100
- @apply border-b-black;
146
+
147
+ @variant light {
148
+ @apply border-b-black;
149
+ }
101
150
 
102
151
  @variant dark {
103
152
  @apply border-b-white;
104
153
  }
154
+
105
155
  }
106
156
 
107
157
  @utility border-l-opposite {
108
- @apply border-l-black;
158
+
159
+ @variant light {
160
+ @apply border-l-black;
161
+ }
109
162
 
110
163
  @variant dark {
111
164
  @apply border-l-white;
112
165
  }
166
+
113
167
  }
114
168
 
115
169
  @utility border-t-opposite {
116
- @apply border-t-black;
170
+
171
+ @variant light {
172
+ @apply border-t-black;
173
+ }
117
174
 
118
175
  @variant dark {
119
176
  @apply border-t-white;
120
177
  }
178
+
121
179
  }
122
180
 
123
181
  @utility border-r-opposite {
124
- @apply border-r-black;
182
+
183
+ @variant light {
184
+ @apply border-r-black;
185
+ }
125
186
 
126
187
  @variant dark {
127
188
  @apply border-r-white;
128
189
  }
190
+
129
191
  }
130
192
 
131
193
  @utility border-x-opposite {
132
- @apply border-x-black;
194
+
195
+ @variant light {
196
+ @apply border-x-black;
197
+ }
133
198
 
134
199
  @variant dark {
135
200
  @apply border-x-white;
136
201
  }
202
+
137
203
  }
138
204
 
139
205
  @utility border-y-opposite {
140
- @apply border-y-black;
206
+
207
+ @variant light {
208
+ @apply border-y-black;
209
+ }
141
210
 
142
211
  @variant dark {
143
212
  @apply border-y-white;
144
213
  }
214
+
145
215
  }
146
216
 
147
217
  @utility border-s-opposite {
148
- @apply border-s-black;
218
+
219
+ @variant light {
220
+ @apply border-s-black;
221
+ }
149
222
 
150
223
  @variant dark {
151
224
  @apply border-s-white;
152
225
  }
226
+
153
227
  }
154
228
 
155
229
  @utility border-e-opposite {
156
- @apply border-e-black;
230
+
231
+ @variant light {
232
+ @apply border-e-black;
233
+ }
157
234
 
158
235
  @variant dark {
159
236
  @apply border-e-white;
160
237
  }
238
+
161
239
  }
162
240
 
163
241
  @utility border-b-default-contrast {
164
- @apply border-b-black/10;
242
+
243
+ @variant light {
244
+ @apply border-b-black/10;
245
+ }
165
246
 
166
247
  @variant dark {
167
248
  @apply border-b-white/20;
168
249
  }
250
+
169
251
  }
170
252
 
171
253
  @utility border-l-default-contrast {
172
- @apply border-l-black/10;
254
+
255
+ @variant light {
256
+ @apply border-l-black/10;
257
+ }
173
258
 
174
259
  @variant dark {
175
260
  @apply border-l-white/20;
176
261
  }
262
+
177
263
  }
178
264
 
179
265
  @utility border-t-default-contrast {
180
- @apply border-t-black/10;
266
+
267
+ @variant light {
268
+ @apply border-t-black/10;
269
+ }
181
270
 
182
271
  @variant dark {
183
272
  @apply border-t-white/20;
184
273
  }
274
+
185
275
  }
186
276
 
187
277
  @utility border-r-default-contrast {
188
- @apply border-r-black/10;
278
+
279
+ @variant light {
280
+ @apply border-r-black/10;
281
+ }
189
282
 
190
283
  @variant dark {
191
284
  @apply border-r-white/20;
192
285
  }
286
+
193
287
  }
194
288
 
195
289
  @utility border-x-default-contrast {
196
- @apply border-x-black/10;
290
+
291
+ @variant light {
292
+ @apply border-x-black/10;
293
+ }
197
294
 
198
295
  @variant dark {
199
296
  @apply border-x-white/20;
200
297
  }
298
+
201
299
  }
202
300
 
203
301
  @utility border-y-default-contrast {
204
- @apply border-y-black/10;
302
+
303
+ @variant light {
304
+ @apply border-y-black/10;
305
+ }
205
306
 
206
307
  @variant dark {
207
308
  @apply border-y-white/20;
208
309
  }
310
+
209
311
  }
210
312
 
211
313
  @utility border-s-default-contrast {
212
- @apply border-s-black/10;
314
+
315
+ @variant light {
316
+ @apply border-s-black/10;
317
+ }
213
318
 
214
319
  @variant dark {
215
320
  @apply border-s-white/20;
216
321
  }
322
+
217
323
  }
218
324
 
219
325
  @utility border-e-default-contrast {
220
- @apply border-e-black/10;
326
+
327
+ @variant light {
328
+ @apply border-e-black/10;
329
+ }
221
330
 
222
331
  @variant dark {
223
332
  @apply border-e-white/20;
224
333
  }
334
+
225
335
  }
226
336
 
227
337
  @utility border-b-opposite-contrast {
228
- @apply border-b-black/80;
338
+
339
+ @variant light {
340
+ @apply border-b-black/80;
341
+ }
229
342
 
230
343
  @variant dark {
231
344
  @apply border-b-white/90;
232
345
  }
346
+
233
347
  }
234
348
 
235
349
  @utility border-l-opposite-contrast {
236
- @apply border-l-black/80;
350
+
351
+ @variant light {
352
+ @apply border-l-black/80;
353
+ }
237
354
 
238
355
  @variant dark {
239
356
  @apply border-l-white/90;
240
357
  }
358
+
241
359
  }
242
360
 
243
361
  @utility border-t-opposite-contrast {
244
- @apply border-t-black/80;
362
+
363
+ @variant light {
364
+ @apply border-t-black/80;
365
+ }
245
366
 
246
367
  @variant dark {
247
368
  @apply border-t-white/90;
248
369
  }
370
+
249
371
  }
250
372
 
251
373
  @utility border-r-opposite-contrast {
252
- @apply border-r-black/80;
374
+
375
+ @variant light {
376
+ @apply border-r-black/80;
377
+ }
253
378
 
254
379
  @variant dark {
255
380
  @apply border-r-white/90;
256
381
  }
382
+
257
383
  }
258
384
 
259
385
  @utility border-x-opposite-contrast {
260
- @apply border-x-black/80;
386
+
387
+ @variant light {
388
+ @apply border-x-black/80;
389
+ }
261
390
 
262
391
  @variant dark {
263
392
  @apply border-x-white/90;
264
393
  }
394
+
265
395
  }
266
396
 
267
397
  @utility border-y-opposite-contrast {
268
- @apply border-y-black/80;
398
+
399
+ @variant light {
400
+ @apply border-y-black/80;
401
+ }
269
402
 
270
403
  @variant dark {
271
404
  @apply border-y-white/90;
272
405
  }
406
+
273
407
  }
274
408
 
275
409
  @utility border-s-opposite-contrast {
276
- @apply border-s-black/80;
410
+
411
+ @variant light {
412
+ @apply border-s-black/80;
413
+ }
277
414
 
278
415
  @variant dark {
279
416
  @apply border-s-white/90;
280
417
  }
418
+
281
419
  }
282
420
 
283
421
  @utility border-e-opposite-contrast {
284
- @apply border-e-black/80;
422
+
423
+ @variant light {
424
+ @apply border-e-black/80;
425
+ }
285
426
 
286
427
  @variant dark {
287
428
  @apply border-e-white/90;
288
429
  }
430
+
289
431
  }
@@ -1,31 +1,47 @@
1
1
  @utility divide-default {
2
- @apply divide-white;
2
+
3
+ @variant light {
4
+ @apply divide-white;
5
+ }
3
6
 
4
7
  @variant dark {
5
8
  @apply divide-black;
6
9
  }
10
+
7
11
  }
8
12
 
9
13
  @utility divide-opposite {
10
- @apply divide-black;
14
+
15
+ @variant light {
16
+ @apply divide-black;
17
+ }
11
18
 
12
19
  @variant dark {
13
20
  @apply divide-white;
14
21
  }
22
+
15
23
  }
16
24
 
17
25
  @utility divide-default-contrast {
18
- @apply divide-black/10;
26
+
27
+ @variant light {
28
+ @apply divide-black/10;
29
+ }
19
30
 
20
31
  @variant dark {
21
32
  @apply divide-white/20;
22
33
  }
34
+
23
35
  }
24
36
 
25
37
  @utility divide-opposite-contrast {
26
- @apply divide-black/80;
38
+
39
+ @variant light {
40
+ @apply divide-black/80;
41
+ }
27
42
 
28
43
  @variant dark {
29
44
  @apply divide-white/90;
30
45
  }
46
+
31
47
  }
@@ -0,0 +1,2 @@
1
+ @import "./oblong/mod.css";
2
+ @import "./safe/mod.css";
@@ -1,15 +1,16 @@
1
1
  @import "tailwindcss/index";
2
2
 
3
- @import "./padding/index.css";
4
- @import "./margin/index.css";
5
- @import "./animations/index.css";
6
- @import "./background/index.css";
7
- @import "./text/index.css";
8
- @import "./border/index.css";
9
- @import "./outline/index.css";
10
- @import "./divide/index.css";
11
- @import "./scrollbar/index.css";
12
- @import "./selection/index.css";
3
+ @import "./padding/mod.css";
4
+ @import "./margin/mod.css";
5
+ @import "./animations/mod.css";
6
+ @import "./background/mod.css";
7
+ @import "./text/mod.css";
8
+ @import "./border/mod.css";
9
+ @import "./outline/mod.css";
10
+ @import "./divide/mod.css";
11
+ @import "./scrollbar/mod.css";
12
+ @import "./scrollfade/mod.css";
13
+ @import "./selection/mod.css";
13
14
 
14
15
  @custom-variant light {
15
16
  @media (prefers-color-scheme: light) {
@@ -47,6 +48,42 @@
47
48
  }
48
49
  }
49
50
 
51
+ @custom-variant in-light {
52
+ @media (prefers-color-scheme: light) {
53
+ &:not([data-theme="dark"] *, [data-theme="opposite"] *) {
54
+ @slot;
55
+ }
56
+ }
57
+
58
+ @media (prefers-color-scheme: dark) {
59
+ &:where([data-theme="opposite"] *) {
60
+ @slot;
61
+ }
62
+ }
63
+
64
+ &:where([data-theme="light"] *) {
65
+ @slot;
66
+ }
67
+ }
68
+
69
+ @custom-variant in-dark {
70
+ @media (prefers-color-scheme: dark) {
71
+ &:not([data-theme="light"] *, [data-theme="opposite"] *) {
72
+ @slot;
73
+ }
74
+ }
75
+
76
+ @media (prefers-color-scheme: light) {
77
+ &:where([data-theme="opposite"] *) {
78
+ @slot;
79
+ }
80
+ }
81
+
82
+ &:where([data-theme="dark"] *) {
83
+ @slot;
84
+ }
85
+ }
86
+
50
87
  @layer base {
51
88
 
52
89
  html {
@@ -1,31 +1,47 @@
1
1
  @utility outline-default {
2
- @apply outline-white;
2
+
3
+ @variant light {
4
+ @apply outline-white;
5
+ }
3
6
 
4
7
  @variant dark {
5
8
  @apply outline-black;
6
9
  }
10
+
7
11
  }
8
12
 
9
13
  @utility outline-opposite {
10
- @apply outline-black;
14
+
15
+ @variant light {
16
+ @apply outline-black;
17
+ }
11
18
 
12
19
  @variant dark {
13
20
  @apply outline-white;
14
21
  }
22
+
15
23
  }
16
24
 
17
25
  @utility outline-default-contrast {
18
- @apply outline-black/10;
26
+
27
+ @variant light {
28
+ @apply outline-black/10;
29
+ }
19
30
 
20
31
  @variant dark {
21
32
  @apply outline-white/20;
22
33
  }
34
+
23
35
  }
24
36
 
25
37
  @utility outline-opposite-contrast {
26
- @apply outline-black/80;
38
+
39
+ @variant light {
40
+ @apply outline-black/80;
41
+ }
27
42
 
28
43
  @variant dark {
29
44
  @apply outline-white/90;
30
45
  }
46
+
31
47
  }
@@ -0,0 +1,2 @@
1
+ @import "./oblong/mod.css";
2
+ @import "./safe/mod.css";
@@ -35,20 +35,23 @@
35
35
  }
36
36
 
37
37
  @utility scrollbar-default-* {
38
- @supports (-moz-appearance:none) {
39
- scrollbar-color: rgba(0 0 0 / 0.1) --value([color]);
40
- }
41
38
 
42
- &::-webkit-scrollbar {
43
- background-color: --value([color]);
44
- }
39
+ @variant light {
40
+ @supports (-moz-appearance:none) {
41
+ scrollbar-color: rgba(0 0 0 / 0.1) --value([color]);
42
+ }
45
43
 
46
- &::-webkit-scrollbar-thumb {
47
- @apply bg-black/10 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
48
- }
44
+ &::-webkit-scrollbar {
45
+ background-color: --value([color]);
46
+ }
49
47
 
50
- &::-webkit-scrollbar-thumb:hover {
51
- @apply bg-black/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
48
+ &::-webkit-scrollbar-thumb {
49
+ @apply bg-black/10 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
50
+ }
51
+
52
+ &::-webkit-scrollbar-thumb:hover {
53
+ @apply bg-black/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
54
+ }
52
55
  }
53
56
 
54
57
  @variant dark {
@@ -68,23 +71,27 @@
68
71
  @apply bg-white/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
69
72
  }
70
73
  }
74
+
71
75
  }
72
76
 
73
77
  @utility scrollbar-opposite-* {
74
- @supports (-moz-appearance:none) {
75
- scrollbar-color: rgba(255 255 255 / 0.1) --value([color]);
76
- }
77
78
 
78
- &::-webkit-scrollbar {
79
- background-color: --value([color]);
80
- }
79
+ @variant light {
80
+ @supports (-moz-appearance:none) {
81
+ scrollbar-color: rgba(255 255 255 / 0.1) --value([color]);
82
+ }
81
83
 
82
- &::-webkit-scrollbar-thumb {
83
- @apply bg-white/10 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
84
- }
84
+ &::-webkit-scrollbar {
85
+ background-color: --value([color]);
86
+ }
85
87
 
86
- &::-webkit-scrollbar-thumb:hover {
87
- @apply bg-white/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
88
+ &::-webkit-scrollbar-thumb {
89
+ @apply bg-white/10 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
90
+ }
91
+
92
+ &::-webkit-scrollbar-thumb:hover {
93
+ @apply bg-white/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
94
+ }
88
95
  }
89
96
 
90
97
  @variant dark {
@@ -104,4 +111,5 @@
104
111
  @apply bg-black/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
105
112
  }
106
113
  }
114
+
107
115
  }
@@ -0,0 +1,95 @@
1
+ @property --scrollfade-s {
2
+ syntax: "<length>";
3
+ inherits: false;
4
+ initial-value: 0;
5
+ }
6
+
7
+ @property --scrollfade-e {
8
+ syntax: "<length>";
9
+ inherits: false;
10
+ initial-value: 0;
11
+ }
12
+
13
+ @keyframes scrollfade {
14
+ 0% {
15
+ --scrollfade-s: 0;
16
+ }
17
+
18
+ 10%,
19
+ 100% {
20
+ --scrollfade-s: 4rem;
21
+ }
22
+
23
+ 0%,
24
+ 90% {
25
+ --scrollfade-e: 4rem;
26
+ }
27
+
28
+ 100% {
29
+ --scrollfade-e: 0;
30
+ }
31
+ }
32
+
33
+ @utility scrollfade-x-default {
34
+ animation: scrollfade;
35
+ animation-timeline: --scrollfade;
36
+ scroll-timeline: --scrollfade x;
37
+
38
+ @variant light {
39
+ mask-image: linear-gradient(to right, transparent, black var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
40
+ -webkit-mask-image: linear-gradient(to right, transparent, black var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
41
+ }
42
+
43
+ @variant dark {
44
+ mask-image: linear-gradient(to right, transparent, white var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
45
+ -webkit-mask-image: linear-gradient(to right, transparent, white var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
46
+ }
47
+ }
48
+
49
+ @utility scrollfade-x-opposite {
50
+ animation: scrollfade;
51
+ animation-timeline: --scrollfade;
52
+ scroll-timeline: --scrollfade x;
53
+
54
+ @variant light {
55
+ mask-image: linear-gradient(to right, transparent, white var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
56
+ -webkit-mask-image: linear-gradient(to right, transparent, white var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
57
+ }
58
+
59
+ @variant dark {
60
+ mask-image: linear-gradient(to right, transparent, black var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
61
+ -webkit-mask-image: linear-gradient(to right, transparent, black var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
62
+ }
63
+ }
64
+
65
+ @utility scrollfade-y-default {
66
+ animation: scrollfade;
67
+ animation-timeline: --scrollfade;
68
+ scroll-timeline: --scrollfade y;
69
+
70
+ @variant light {
71
+ mask-image: linear-gradient(to bottom, transparent, black var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
72
+ -webkit-mask-image: linear-gradient(to bottom, transparent, black var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
73
+ }
74
+
75
+ @variant dark {
76
+ mask-image: linear-gradient(to bottom, transparent, white var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
77
+ -webkit-mask-image: linear-gradient(to bottom, transparent, white var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
78
+ }
79
+ }
80
+
81
+ @utility scrollfade-y-opposite {
82
+ animation: scrollfade;
83
+ animation-timeline: --scrollfade;
84
+ scroll-timeline: --scrollfade y;
85
+
86
+ @variant light {
87
+ mask-image: linear-gradient(to bottom, transparent, white var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
88
+ -webkit-mask-image: linear-gradient(to bottom, transparent, white var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
89
+ }
90
+
91
+ @variant dark {
92
+ mask-image: linear-gradient(to bottom, transparent, black var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
93
+ -webkit-mask-image: linear-gradient(to bottom, transparent, black var(--scrollfade-s) calc(100% - var(--scrollfade-e)), transparent);
94
+ }
95
+ }
@@ -1,6 +1,9 @@
1
1
  @utility selection-default {
2
- &::selection {
3
- @apply bg-black/10;
2
+
3
+ @variant light {
4
+ &::selection {
5
+ @apply bg-black/10;
6
+ }
4
7
  }
5
8
 
6
9
  @variant dark {
@@ -8,11 +11,15 @@
8
11
  @apply bg-white/40;
9
12
  }
10
13
  }
14
+
11
15
  }
12
16
 
13
17
  @utility selection-opposite {
14
- &::selection {
15
- @apply bg-white/40;
18
+
19
+ @variant light {
20
+ &::selection {
21
+ @apply bg-white/40;
22
+ }
16
23
  }
17
24
 
18
25
  @variant dark {
@@ -20,4 +27,5 @@
20
27
  @apply bg-black/10;
21
28
  }
22
29
  }
30
+
23
31
  }
@@ -1,49 +1,73 @@
1
1
  @utility text-default {
2
- @apply text-black;
2
+
3
+ @variant light {
4
+ @apply text-black;
5
+ }
3
6
 
4
7
  @variant dark {
5
8
  @apply text-white;
6
9
  }
10
+
7
11
  }
8
12
 
9
13
  @utility text-opposite {
10
- @apply text-white;
11
-
14
+
15
+ @variant light {
16
+ @apply text-white;
17
+ }
18
+
12
19
  @variant dark {
13
20
  @apply text-black;
14
21
  }
22
+
15
23
  }
16
24
 
17
25
  @utility text-default-contrast {
18
- @apply text-black/50;
26
+
27
+ @variant light {
28
+ @apply text-black/50;
29
+ }
19
30
 
20
31
  @variant dark {
21
32
  @apply text-white/50;
22
33
  }
34
+
23
35
  }
24
36
 
25
37
  @utility text-opposite-contrast {
26
- @apply text-white/50;
38
+
39
+ @variant light {
40
+ @apply text-white/50;
41
+ }
27
42
 
28
43
  @variant dark {
29
44
  @apply text-black/50;
30
45
  }
46
+
31
47
  }
32
48
 
33
49
  @utility text-default-half-contrast {
34
- @apply text-black/75;
50
+
51
+ @variant light {
52
+ @apply text-black/75;
53
+ }
35
54
 
36
55
  @variant dark {
37
56
  @apply text-white/75;
38
57
  }
58
+
39
59
  }
40
60
 
41
61
  @utility text-opposite-half-contrast {
42
- @apply text-white/75;
62
+
63
+ @variant light {
64
+ @apply text-white/75;
65
+ }
43
66
 
44
67
  @variant dark {
45
68
  @apply text-black/75;
46
69
  }
70
+
47
71
  }
48
72
 
49
73
  @utility text-white-contrast {
@@ -1,2 +0,0 @@
1
- @import "./oblong/index.css";
2
- @import "./safe/index.css";
@@ -1,3 +0,0 @@
1
- @import "./oblong/index.css";
2
- @import "./safe/index.css";
3
- @import "./scroll/index.css";
@@ -1,7 +0,0 @@
1
- @utility p-scroll {
2
- @apply p-[3px];
3
-
4
- @supports (-moz-appearance:none) {
5
- @apply p-[1px];
6
- }
7
- }
File without changes
File without changes
File without changes
File without changes