@hazae41/labase 1.0.31 → 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.31",
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,287 +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
- @apply border-black/80;
38
+
39
+ @variant light {
40
+ @apply border-black/80;
41
+ }
27
42
 
28
43
  @variant dark {
29
44
  @apply border-white/90;
30
45
  }
46
+
31
47
  }
32
48
 
33
49
  @utility border-b-default {
34
- @apply border-b-white;
50
+
51
+ @variant light {
52
+ @apply border-b-white;
53
+ }
35
54
 
36
55
  @variant dark {
37
56
  @apply border-b-black;
38
57
  }
58
+
39
59
  }
40
60
 
41
61
  @utility border-l-default {
42
- @apply border-l-white;
62
+
63
+ @variant light {
64
+ @apply border-l-white;
65
+ }
43
66
 
44
67
  @variant dark {
45
68
  @apply border-l-black;
46
69
  }
70
+
47
71
  }
48
72
 
49
73
  @utility border-t-default {
50
- @apply border-t-white;
74
+
75
+ @variant light {
76
+ @apply border-t-white;
77
+ }
51
78
 
52
79
  @variant dark {
53
80
  @apply border-t-black;
54
81
  }
82
+
55
83
  }
56
84
 
57
85
  @utility border-r-default {
58
- @apply border-r-white;
86
+
87
+ @variant light {
88
+ @apply border-r-white;
89
+ }
59
90
 
60
91
  @variant dark {
61
92
  @apply border-r-black;
62
93
  }
94
+
63
95
  }
64
96
 
65
97
  @utility border-x-default {
66
- @apply border-x-white;
98
+
99
+ @variant light {
100
+ @apply border-x-white;
101
+ }
67
102
 
68
103
  @variant dark {
69
104
  @apply border-x-black;
70
105
  }
106
+
71
107
  }
72
108
 
73
109
  @utility border-y-default {
74
- @apply border-y-white;
110
+
111
+ @variant light {
112
+ @apply border-y-white;
113
+ }
75
114
 
76
115
  @variant dark {
77
116
  @apply border-y-black;
78
117
  }
118
+
79
119
  }
80
120
 
81
121
  @utility border-s-default {
82
- @apply border-s-white;
122
+
123
+ @variant light {
124
+ @apply border-s-white;
125
+ }
83
126
 
84
127
  @variant dark {
85
128
  @apply border-s-black;
86
129
  }
130
+
87
131
  }
88
132
 
89
133
  @utility border-e-default {
90
- @apply border-e-white;
134
+
135
+ @variant light {
136
+ @apply border-e-white;
137
+ }
91
138
 
92
139
  @variant dark {
93
140
  @apply border-e-black;
94
141
  }
142
+
95
143
  }
96
144
 
97
145
  @utility border-b-opposite {
98
- @apply border-b-black;
146
+
147
+ @variant light {
148
+ @apply border-b-black;
149
+ }
99
150
 
100
151
  @variant dark {
101
152
  @apply border-b-white;
102
153
  }
154
+
103
155
  }
104
156
 
105
157
  @utility border-l-opposite {
106
- @apply border-l-black;
158
+
159
+ @variant light {
160
+ @apply border-l-black;
161
+ }
107
162
 
108
163
  @variant dark {
109
164
  @apply border-l-white;
110
165
  }
166
+
111
167
  }
112
168
 
113
169
  @utility border-t-opposite {
114
- @apply border-t-black;
170
+
171
+ @variant light {
172
+ @apply border-t-black;
173
+ }
115
174
 
116
175
  @variant dark {
117
176
  @apply border-t-white;
118
177
  }
178
+
119
179
  }
120
180
 
121
181
  @utility border-r-opposite {
122
- @apply border-r-black;
182
+
183
+ @variant light {
184
+ @apply border-r-black;
185
+ }
123
186
 
124
187
  @variant dark {
125
188
  @apply border-r-white;
126
189
  }
190
+
127
191
  }
128
192
 
129
193
  @utility border-x-opposite {
130
- @apply border-x-black;
194
+
195
+ @variant light {
196
+ @apply border-x-black;
197
+ }
131
198
 
132
199
  @variant dark {
133
200
  @apply border-x-white;
134
201
  }
202
+
135
203
  }
136
204
 
137
205
  @utility border-y-opposite {
138
- @apply border-y-black;
206
+
207
+ @variant light {
208
+ @apply border-y-black;
209
+ }
139
210
 
140
211
  @variant dark {
141
212
  @apply border-y-white;
142
213
  }
214
+
143
215
  }
144
216
 
145
217
  @utility border-s-opposite {
146
- @apply border-s-black;
218
+
219
+ @variant light {
220
+ @apply border-s-black;
221
+ }
147
222
 
148
223
  @variant dark {
149
224
  @apply border-s-white;
150
225
  }
226
+
151
227
  }
152
228
 
153
229
  @utility border-e-opposite {
154
- @apply border-e-black;
230
+
231
+ @variant light {
232
+ @apply border-e-black;
233
+ }
155
234
 
156
235
  @variant dark {
157
236
  @apply border-e-white;
158
237
  }
238
+
159
239
  }
160
240
 
161
241
  @utility border-b-default-contrast {
162
- @apply border-b-black/10;
242
+
243
+ @variant light {
244
+ @apply border-b-black/10;
245
+ }
163
246
 
164
247
  @variant dark {
165
248
  @apply border-b-white/20;
166
249
  }
250
+
167
251
  }
168
252
 
169
253
  @utility border-l-default-contrast {
170
- @apply border-l-black/10;
254
+
255
+ @variant light {
256
+ @apply border-l-black/10;
257
+ }
171
258
 
172
259
  @variant dark {
173
260
  @apply border-l-white/20;
174
261
  }
262
+
175
263
  }
176
264
 
177
265
  @utility border-t-default-contrast {
178
- @apply border-t-black/10;
266
+
267
+ @variant light {
268
+ @apply border-t-black/10;
269
+ }
179
270
 
180
271
  @variant dark {
181
272
  @apply border-t-white/20;
182
273
  }
274
+
183
275
  }
184
276
 
185
277
  @utility border-r-default-contrast {
186
- @apply border-r-black/10;
278
+
279
+ @variant light {
280
+ @apply border-r-black/10;
281
+ }
187
282
 
188
283
  @variant dark {
189
284
  @apply border-r-white/20;
190
285
  }
286
+
191
287
  }
192
288
 
193
289
  @utility border-x-default-contrast {
194
- @apply border-x-black/10;
290
+
291
+ @variant light {
292
+ @apply border-x-black/10;
293
+ }
195
294
 
196
295
  @variant dark {
197
296
  @apply border-x-white/20;
198
297
  }
298
+
199
299
  }
200
300
 
201
301
  @utility border-y-default-contrast {
202
- @apply border-y-black/10;
302
+
303
+ @variant light {
304
+ @apply border-y-black/10;
305
+ }
203
306
 
204
307
  @variant dark {
205
308
  @apply border-y-white/20;
206
309
  }
310
+
207
311
  }
208
312
 
209
313
  @utility border-s-default-contrast {
210
- @apply border-s-black/10;
314
+
315
+ @variant light {
316
+ @apply border-s-black/10;
317
+ }
211
318
 
212
319
  @variant dark {
213
320
  @apply border-s-white/20;
214
321
  }
322
+
215
323
  }
216
324
 
217
325
  @utility border-e-default-contrast {
218
- @apply border-e-black/10;
326
+
327
+ @variant light {
328
+ @apply border-e-black/10;
329
+ }
219
330
 
220
331
  @variant dark {
221
332
  @apply border-e-white/20;
222
333
  }
334
+
223
335
  }
224
336
 
225
337
  @utility border-b-opposite-contrast {
226
- @apply border-b-black/80;
338
+
339
+ @variant light {
340
+ @apply border-b-black/80;
341
+ }
227
342
 
228
343
  @variant dark {
229
344
  @apply border-b-white/90;
230
345
  }
346
+
231
347
  }
232
348
 
233
349
  @utility border-l-opposite-contrast {
234
- @apply border-l-black/80;
350
+
351
+ @variant light {
352
+ @apply border-l-black/80;
353
+ }
235
354
 
236
355
  @variant dark {
237
356
  @apply border-l-white/90;
238
357
  }
358
+
239
359
  }
240
360
 
241
361
  @utility border-t-opposite-contrast {
242
- @apply border-t-black/80;
362
+
363
+ @variant light {
364
+ @apply border-t-black/80;
365
+ }
243
366
 
244
367
  @variant dark {
245
368
  @apply border-t-white/90;
246
369
  }
370
+
247
371
  }
248
372
 
249
373
  @utility border-r-opposite-contrast {
250
- @apply border-r-black/80;
374
+
375
+ @variant light {
376
+ @apply border-r-black/80;
377
+ }
251
378
 
252
379
  @variant dark {
253
380
  @apply border-r-white/90;
254
381
  }
382
+
255
383
  }
256
384
 
257
385
  @utility border-x-opposite-contrast {
258
- @apply border-x-black/80;
386
+
387
+ @variant light {
388
+ @apply border-x-black/80;
389
+ }
259
390
 
260
391
  @variant dark {
261
392
  @apply border-x-white/90;
262
393
  }
394
+
263
395
  }
264
396
 
265
397
  @utility border-y-opposite-contrast {
266
- @apply border-y-black/80;
398
+
399
+ @variant light {
400
+ @apply border-y-black/80;
401
+ }
267
402
 
268
403
  @variant dark {
269
404
  @apply border-y-white/90;
270
405
  }
406
+
271
407
  }
272
408
 
273
409
  @utility border-s-opposite-contrast {
274
- @apply border-s-black/80;
410
+
411
+ @variant light {
412
+ @apply border-s-black/80;
413
+ }
275
414
 
276
415
  @variant dark {
277
416
  @apply border-s-white/90;
278
417
  }
418
+
279
419
  }
280
420
 
281
421
  @utility border-e-opposite-contrast {
282
- @apply border-e-black/80;
422
+
423
+ @variant light {
424
+ @apply border-e-black/80;
425
+ }
283
426
 
284
427
  @variant dark {
285
428
  @apply border-e-white/90;
286
429
  }
430
+
287
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) {
@@ -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