tailvars 1.2.0 → 1.3.0
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/base.css +7 -5
- package/docs/index.html +2 -10
- package/docs/package-lock.json +1077 -1040
- package/docs/package.json +5 -1
- package/docs/public/hero-texture.webp +0 -0
- package/docs/src/components/about-section.js +74 -0
- package/docs/src/components/box-icon.js +31 -0
- package/docs/src/components/color-box.js +32 -0
- package/docs/src/components/color-shades.js +89 -0
- package/docs/src/components/feature-list-item.js +54 -0
- package/docs/src/components/feature-list.js +57 -0
- package/docs/src/{hero-section.js → components/hero-section.js} +15 -12
- package/docs/src/components/sidebar-layout.js +50 -0
- package/docs/src/components/table-of-contents-item.js +89 -0
- package/docs/src/components/table-of-contents.js +35 -0
- package/docs/src/global-css-mixin.js +8 -6
- package/docs/src/global.css +98 -0
- package/docs/src/index.js +20 -0
- package/docs/src/pages/index-page.js +147 -0
- package/index.min.css +1 -1
- package/package.json +1 -4
- package/{docs/src/preflight.css → preflight.css} +72 -67
- package/docs/src/doc-section.js +0 -27
- package/docs/src/index.css +0 -31
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
TailwindCSS v4.2 preflight stylesheet.
|
|
3
|
+
Copyright ©️ Tailwind Labs, Inc.
|
|
4
|
+
2026
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
/*
|
|
2
8
|
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
3
9
|
2. Remove default margins and padding
|
|
@@ -9,10 +15,10 @@
|
|
|
9
15
|
::before,
|
|
10
16
|
::backdrop,
|
|
11
17
|
::file-selector-button {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
box-sizing: border-box; /* 1 */
|
|
19
|
+
margin: 0; /* 2 */
|
|
20
|
+
padding: 0; /* 2 */
|
|
21
|
+
border: 0 solid; /* 3 */
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
/*
|
|
@@ -27,10 +33,10 @@
|
|
|
27
33
|
|
|
28
34
|
html,
|
|
29
35
|
:host {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
line-height: 1.5; /* 1 */
|
|
37
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
38
|
+
tab-size: 4; /* 3 */
|
|
39
|
+
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/*
|
|
@@ -40,9 +46,9 @@ html,
|
|
|
40
46
|
*/
|
|
41
47
|
|
|
42
48
|
hr {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
height: 0; /* 1 */
|
|
50
|
+
color: inherit; /* 2 */
|
|
51
|
+
border-top-width: 1px; /* 3 */
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
/*
|
|
@@ -50,8 +56,8 @@ hr {
|
|
|
50
56
|
*/
|
|
51
57
|
|
|
52
58
|
abbr:where([title]) {
|
|
53
|
-
|
|
54
|
-
|
|
59
|
+
-webkit-text-decoration: underline dotted;
|
|
60
|
+
text-decoration: underline dotted;
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
/*
|
|
@@ -64,8 +70,8 @@ h3,
|
|
|
64
70
|
h4,
|
|
65
71
|
h5,
|
|
66
72
|
h6 {
|
|
67
|
-
|
|
68
|
-
|
|
73
|
+
font-size: inherit;
|
|
74
|
+
font-weight: inherit;
|
|
69
75
|
}
|
|
70
76
|
|
|
71
77
|
/*
|
|
@@ -73,9 +79,9 @@ h6 {
|
|
|
73
79
|
*/
|
|
74
80
|
|
|
75
81
|
a {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
82
|
+
color: inherit;
|
|
83
|
+
-webkit-text-decoration: inherit;
|
|
84
|
+
text-decoration: inherit;
|
|
79
85
|
}
|
|
80
86
|
|
|
81
87
|
/*
|
|
@@ -84,7 +90,7 @@ a {
|
|
|
84
90
|
|
|
85
91
|
b,
|
|
86
92
|
strong {
|
|
87
|
-
|
|
93
|
+
font-weight: bolder;
|
|
88
94
|
}
|
|
89
95
|
|
|
90
96
|
/*
|
|
@@ -98,7 +104,7 @@ code,
|
|
|
98
104
|
kbd,
|
|
99
105
|
samp,
|
|
100
106
|
pre {
|
|
101
|
-
|
|
107
|
+
font-size: 1em; /* 4 */
|
|
102
108
|
}
|
|
103
109
|
|
|
104
110
|
/*
|
|
@@ -106,7 +112,7 @@ pre {
|
|
|
106
112
|
*/
|
|
107
113
|
|
|
108
114
|
small {
|
|
109
|
-
|
|
115
|
+
font-size: 80%;
|
|
110
116
|
}
|
|
111
117
|
|
|
112
118
|
/*
|
|
@@ -115,18 +121,18 @@ small {
|
|
|
115
121
|
|
|
116
122
|
sub,
|
|
117
123
|
sup {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
124
|
+
font-size: 75%;
|
|
125
|
+
line-height: 0;
|
|
126
|
+
position: relative;
|
|
127
|
+
vertical-align: baseline;
|
|
122
128
|
}
|
|
123
129
|
|
|
124
130
|
sub {
|
|
125
|
-
|
|
131
|
+
bottom: -0.25em;
|
|
126
132
|
}
|
|
127
133
|
|
|
128
134
|
sup {
|
|
129
|
-
|
|
135
|
+
top: -0.5em;
|
|
130
136
|
}
|
|
131
137
|
|
|
132
138
|
/*
|
|
@@ -136,9 +142,9 @@ sup {
|
|
|
136
142
|
*/
|
|
137
143
|
|
|
138
144
|
table {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
145
|
+
text-indent: 0; /* 1 */
|
|
146
|
+
border-color: inherit; /* 2 */
|
|
147
|
+
border-collapse: collapse; /* 3 */
|
|
142
148
|
}
|
|
143
149
|
|
|
144
150
|
/*
|
|
@@ -146,7 +152,7 @@ table {
|
|
|
146
152
|
*/
|
|
147
153
|
|
|
148
154
|
:-moz-focusring {
|
|
149
|
-
|
|
155
|
+
outline: auto;
|
|
150
156
|
}
|
|
151
157
|
|
|
152
158
|
/*
|
|
@@ -154,7 +160,7 @@ table {
|
|
|
154
160
|
*/
|
|
155
161
|
|
|
156
162
|
progress {
|
|
157
|
-
|
|
163
|
+
vertical-align: baseline;
|
|
158
164
|
}
|
|
159
165
|
|
|
160
166
|
/*
|
|
@@ -162,7 +168,7 @@ progress {
|
|
|
162
168
|
*/
|
|
163
169
|
|
|
164
170
|
summary {
|
|
165
|
-
|
|
171
|
+
display: list-item;
|
|
166
172
|
}
|
|
167
173
|
|
|
168
174
|
/*
|
|
@@ -172,7 +178,7 @@ summary {
|
|
|
172
178
|
ol,
|
|
173
179
|
ul,
|
|
174
180
|
menu {
|
|
175
|
-
|
|
181
|
+
list-style: none;
|
|
176
182
|
}
|
|
177
183
|
|
|
178
184
|
/*
|
|
@@ -189,8 +195,8 @@ audio,
|
|
|
189
195
|
iframe,
|
|
190
196
|
embed,
|
|
191
197
|
object {
|
|
192
|
-
|
|
193
|
-
|
|
198
|
+
display: block; /* 1 */
|
|
199
|
+
vertical-align: middle; /* 2 */
|
|
194
200
|
}
|
|
195
201
|
|
|
196
202
|
/*
|
|
@@ -199,8 +205,8 @@ object {
|
|
|
199
205
|
|
|
200
206
|
img,
|
|
201
207
|
video {
|
|
202
|
-
|
|
203
|
-
|
|
208
|
+
max-width: 100%;
|
|
209
|
+
height: auto;
|
|
204
210
|
}
|
|
205
211
|
|
|
206
212
|
/*
|
|
@@ -216,14 +222,14 @@ select,
|
|
|
216
222
|
optgroup,
|
|
217
223
|
textarea,
|
|
218
224
|
::file-selector-button {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
font: inherit; /* 1 */
|
|
226
|
+
font-feature-settings: inherit; /* 1 */
|
|
227
|
+
font-variation-settings: inherit; /* 1 */
|
|
228
|
+
letter-spacing: inherit; /* 1 */
|
|
229
|
+
color: inherit; /* 1 */
|
|
230
|
+
border-radius: 0; /* 2 */
|
|
231
|
+
background-color: transparent; /* 3 */
|
|
232
|
+
opacity: 1; /* 4 */
|
|
227
233
|
}
|
|
228
234
|
|
|
229
235
|
/*
|
|
@@ -231,7 +237,7 @@ textarea,
|
|
|
231
237
|
*/
|
|
232
238
|
|
|
233
239
|
:where(select:is([multiple], [size])) optgroup {
|
|
234
|
-
|
|
240
|
+
font-weight: bolder;
|
|
235
241
|
}
|
|
236
242
|
|
|
237
243
|
/*
|
|
@@ -239,7 +245,7 @@ textarea,
|
|
|
239
245
|
*/
|
|
240
246
|
|
|
241
247
|
:where(select:is([multiple], [size])) optgroup option {
|
|
242
|
-
|
|
248
|
+
padding-inline-start: 20px;
|
|
243
249
|
}
|
|
244
250
|
|
|
245
251
|
/*
|
|
@@ -247,7 +253,7 @@ textarea,
|
|
|
247
253
|
*/
|
|
248
254
|
|
|
249
255
|
::file-selector-button {
|
|
250
|
-
|
|
256
|
+
margin-inline-end: 4px;
|
|
251
257
|
}
|
|
252
258
|
|
|
253
259
|
/*
|
|
@@ -255,7 +261,7 @@ textarea,
|
|
|
255
261
|
*/
|
|
256
262
|
|
|
257
263
|
::placeholder {
|
|
258
|
-
|
|
264
|
+
opacity: 1;
|
|
259
265
|
}
|
|
260
266
|
|
|
261
267
|
/*
|
|
@@ -263,11 +269,10 @@ textarea,
|
|
|
263
269
|
crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
|
|
264
270
|
*/
|
|
265
271
|
|
|
266
|
-
@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
272
|
+
@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or (contain-intrinsic-size: 1px) /* Safari 17+ */ {
|
|
273
|
+
::placeholder {
|
|
274
|
+
color: color-mix(in oklab, currentcolor 50%, transparent);
|
|
275
|
+
}
|
|
271
276
|
}
|
|
272
277
|
|
|
273
278
|
/*
|
|
@@ -275,7 +280,7 @@ textarea,
|
|
|
275
280
|
*/
|
|
276
281
|
|
|
277
282
|
textarea {
|
|
278
|
-
|
|
283
|
+
resize: vertical;
|
|
279
284
|
}
|
|
280
285
|
|
|
281
286
|
/*
|
|
@@ -283,7 +288,7 @@ textarea {
|
|
|
283
288
|
*/
|
|
284
289
|
|
|
285
290
|
::-webkit-search-decoration {
|
|
286
|
-
|
|
291
|
+
-webkit-appearance: none;
|
|
287
292
|
}
|
|
288
293
|
|
|
289
294
|
/*
|
|
@@ -292,8 +297,8 @@ textarea {
|
|
|
292
297
|
*/
|
|
293
298
|
|
|
294
299
|
::-webkit-date-and-time-value {
|
|
295
|
-
|
|
296
|
-
|
|
300
|
+
min-height: 1lh; /* 1 */
|
|
301
|
+
text-align: inherit; /* 2 */
|
|
297
302
|
}
|
|
298
303
|
|
|
299
304
|
/*
|
|
@@ -301,7 +306,7 @@ textarea {
|
|
|
301
306
|
*/
|
|
302
307
|
|
|
303
308
|
::-webkit-datetime-edit {
|
|
304
|
-
|
|
309
|
+
display: inline-flex;
|
|
305
310
|
}
|
|
306
311
|
|
|
307
312
|
/*
|
|
@@ -309,7 +314,7 @@ textarea {
|
|
|
309
314
|
*/
|
|
310
315
|
|
|
311
316
|
::-webkit-datetime-edit-fields-wrapper {
|
|
312
|
-
|
|
317
|
+
padding: 0;
|
|
313
318
|
}
|
|
314
319
|
|
|
315
320
|
::-webkit-datetime-edit,
|
|
@@ -321,7 +326,7 @@ textarea {
|
|
|
321
326
|
::-webkit-datetime-edit-second-field,
|
|
322
327
|
::-webkit-datetime-edit-millisecond-field,
|
|
323
328
|
::-webkit-datetime-edit-meridiem-field {
|
|
324
|
-
|
|
329
|
+
padding-block: 0;
|
|
325
330
|
}
|
|
326
331
|
|
|
327
332
|
/*
|
|
@@ -329,7 +334,7 @@ textarea {
|
|
|
329
334
|
*/
|
|
330
335
|
|
|
331
336
|
::-webkit-calendar-picker-indicator {
|
|
332
|
-
|
|
337
|
+
line-height: 1;
|
|
333
338
|
}
|
|
334
339
|
|
|
335
340
|
/*
|
|
@@ -337,7 +342,7 @@ textarea {
|
|
|
337
342
|
*/
|
|
338
343
|
|
|
339
344
|
:-moz-ui-invalid {
|
|
340
|
-
|
|
345
|
+
box-shadow: none;
|
|
341
346
|
}
|
|
342
347
|
|
|
343
348
|
/*
|
|
@@ -347,7 +352,7 @@ textarea {
|
|
|
347
352
|
button,
|
|
348
353
|
input:where([type="button"], [type="reset"], [type="submit"]),
|
|
349
354
|
::file-selector-button {
|
|
350
|
-
|
|
355
|
+
appearance: button;
|
|
351
356
|
}
|
|
352
357
|
|
|
353
358
|
/*
|
|
@@ -356,7 +361,7 @@ input:where([type="button"], [type="reset"], [type="submit"]),
|
|
|
356
361
|
|
|
357
362
|
::-webkit-inner-spin-button,
|
|
358
363
|
::-webkit-outer-spin-button {
|
|
359
|
-
|
|
364
|
+
height: auto;
|
|
360
365
|
}
|
|
361
366
|
|
|
362
367
|
/*
|
|
@@ -364,5 +369,5 @@ input:where([type="button"], [type="reset"], [type="submit"]),
|
|
|
364
369
|
*/
|
|
365
370
|
|
|
366
371
|
[hidden]:where(:not([hidden="until-found"])) {
|
|
367
|
-
|
|
372
|
+
display: none !important;
|
|
368
373
|
}
|
package/docs/src/doc-section.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { css, html, LitElement } from "lit";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* An example element.
|
|
5
|
-
*
|
|
6
|
-
* @slot - This element has a slot
|
|
7
|
-
* @csspart button - The button
|
|
8
|
-
*/
|
|
9
|
-
export class DocSection extends LitElement {
|
|
10
|
-
static properties = {};
|
|
11
|
-
|
|
12
|
-
render() {
|
|
13
|
-
return html`
|
|
14
|
-
<section>
|
|
15
|
-
|
|
16
|
-
</section>
|
|
17
|
-
`;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
static styles = css`
|
|
21
|
-
section {
|
|
22
|
-
margin: var(--size-16) 0;
|
|
23
|
-
}
|
|
24
|
-
`;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
window.customElements.define("doc-section", DocSection);
|
package/docs/src/index.css
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
@import "tailvars";
|
|
2
|
-
@import "preflight.css";
|
|
3
|
-
@import "@fontsource/vt323";
|
|
4
|
-
|
|
5
|
-
:root {
|
|
6
|
-
--font-heading: "VT323";
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
body {
|
|
10
|
-
font: var(--font-body-md);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.container {
|
|
14
|
-
--gap-size: var(--size-3);
|
|
15
|
-
|
|
16
|
-
display: grid;
|
|
17
|
-
gap: 0 var(--gap-size);
|
|
18
|
-
grid-template-columns: 1fr min(calc(100% - 2 * var(--gap-size)), var(--screen-width-lg)) 1fr;
|
|
19
|
-
|
|
20
|
-
& > * {
|
|
21
|
-
grid-column: 2;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
& .no-container {
|
|
25
|
-
grid-column: 1 / -1;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@media (--screen-lg) or (--screen-md) or (--screen-sm) or (--screen-xs) {
|
|
29
|
-
grid-template-columns: 1fr min(calc(100% - 2 * var(--gap-size)), var(--screen-width-md)) 1fr;
|
|
30
|
-
}
|
|
31
|
-
}
|