mancha 0.24.0 → 0.24.1
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 +25 -7
- package/dist/browser.d.ts +451 -2
- package/dist/browser.js +32 -1
- package/dist/css_gen_utils.d.ts +8 -915
- package/dist/css_gen_utils.js +382 -641
- package/dist/css_gen_utils.js.map +1 -1
- package/dist/mancha.js +25 -36
- package/dist/plugins.js +11 -1
- package/dist/plugins.js.map +1 -1
- package/dist/store.d.ts +8 -1
- package/dist/store.js +10 -3
- package/dist/store.js.map +1 -1
- package/dist/trusted_attributes.d.ts +0 -3
- package/dist/trusted_attributes.js +1 -3
- package/dist/trusted_attributes.js.map +1 -1
- package/docs/03_reactivity.md +20 -3
- package/docs/05_css.md +270 -275
- package/package.json +19 -4
- package/.biomeignore +0 -3
- package/.github/workflows/ci.yml +0 -109
- package/.vscode/extensions.json +0 -3
- package/.vscode/launch.json +0 -34
- package/biome.json +0 -46
- package/dist/browser.js.map +0 -1
- package/dist/expressions/ast.test.d.ts +0 -1
- package/dist/expressions/ast.test.js +0 -147
- package/dist/expressions/ast.test.js.map +0 -1
- package/dist/expressions/ast_factory.test.d.ts +0 -1
- package/dist/expressions/ast_factory.test.js +0 -94
- package/dist/expressions/ast_factory.test.js.map +0 -1
- package/dist/expressions/constants.test.d.ts +0 -1
- package/dist/expressions/constants.test.js +0 -84
- package/dist/expressions/constants.test.js.map +0 -1
- package/dist/expressions/eval.test.d.ts +0 -1
- package/dist/expressions/eval.test.js +0 -215
- package/dist/expressions/eval.test.js.map +0 -1
- package/dist/expressions/expressions.test.d.ts +0 -6
- package/dist/expressions/expressions.test.js +0 -7
- package/dist/expressions/expressions.test.js.map +0 -1
- package/dist/expressions/parser.test.d.ts +0 -1
- package/dist/expressions/parser.test.js +0 -174
- package/dist/expressions/parser.test.js.map +0 -1
- package/dist/expressions/tokenizer.test.d.ts +0 -1
- package/dist/expressions/tokenizer.test.js +0 -124
- package/dist/expressions/tokenizer.test.js.map +0 -1
- package/dist/interfaces-C8heJ6BZ.d.ts +0 -452
- package/dist/mancha.js.map +0 -1
- package/dist/renderer-B4AORGUN.js +0 -43
- package/dist/safe_browser.d.ts +0 -16
- package/dist/safe_browser.js +0 -1
- package/dist/safe_browser.js.map +0 -1
- package/dist/test_types/api.d.ts +0 -11
- package/dist/test_types/api.js +0 -3
- package/dist/test_types/api.js.map +0 -1
- package/dist/test_types/nested/child.d.ts +0 -12
- package/dist/test_types/nested/child.js +0 -2
- package/dist/test_types/nested/child.js.map +0 -1
- package/dist/test_types/product.d.ts +0 -11
- package/dist/test_types/product.js +0 -3
- package/dist/test_types/product.js.map +0 -1
- package/dist/test_types/user.d.ts +0 -10
- package/dist/test_types/user.js +0 -3
- package/dist/test_types/user.js.map +0 -1
- package/dist/test_utils.d.ts +0 -20
- package/dist/test_utils.js +0 -94
- package/dist/test_utils.js.map +0 -1
- package/global.d.ts +0 -4
- package/gulpfile.ts +0 -47
- package/scripts/generate-css-docs.ts +0 -622
- package/tsconfig.json +0 -37
- package/tsdown.config.ts +0 -32
- package/tsec_exemptions.json +0 -9
package/docs/05_css.md
CHANGED
|
@@ -179,19 +179,19 @@ You can also control the opacity of any color utility by appending `/{opacity}`
|
|
|
179
179
|
|
|
180
180
|
| Utility | Description |
|
|
181
181
|
| --- | --- |
|
|
182
|
-
| `border` | `
|
|
183
|
-
| `border-none` | `
|
|
184
|
-
| `border-solid` | `
|
|
185
|
-
| `border-dashed` | `
|
|
186
|
-
| `border-dotted` | `
|
|
187
|
-
| `border-collapse` | `
|
|
188
|
-
| `rounded-none` | `
|
|
189
|
-
| `rounded` | `
|
|
190
|
-
| `rounded-sm` | `
|
|
191
|
-
| `rounded-md` | `
|
|
192
|
-
| `rounded-lg` | `
|
|
193
|
-
| `rounded-xl` | `
|
|
194
|
-
| `rounded-full` | `
|
|
182
|
+
| `border` | `border: 1px solid` |
|
|
183
|
+
| `border-none` | `border: none` |
|
|
184
|
+
| `border-solid` | `border-style: solid` |
|
|
185
|
+
| `border-dashed` | `border-style: dashed` |
|
|
186
|
+
| `border-dotted` | `border-style: dotted` |
|
|
187
|
+
| `border-collapse` | `border-collapse: collapse` |
|
|
188
|
+
| `rounded-none` | `border-radius: 0` |
|
|
189
|
+
| `rounded` | `border-radius: .25rem` |
|
|
190
|
+
| `rounded-sm` | `border-radius: .125rem` |
|
|
191
|
+
| `rounded-md` | `border-radius: .375rem` |
|
|
192
|
+
| `rounded-lg` | `border-radius: .5rem` |
|
|
193
|
+
| `rounded-xl` | `border-radius: .75rem` |
|
|
194
|
+
| `rounded-full` | `border-radius: 9999px` |
|
|
195
195
|
| `border-{0-15}` | Border width in pixels (e.g., `border-0`, `border-1`, ..., `border-15`) |
|
|
196
196
|
| `border-x-{0-15}` | Horizontal border width in pixels |
|
|
197
197
|
| `border-y-{0-15}` | Vertical border width in pixels |
|
|
@@ -201,23 +201,23 @@ You can also control the opacity of any color utility by appending `/{opacity}`
|
|
|
201
201
|
|
|
202
202
|
| Utility | Description |
|
|
203
203
|
| --- | --- |
|
|
204
|
-
| `shadow-2xs` | `
|
|
205
|
-
| `shadow-xs` | `
|
|
206
|
-
| `shadow` | `
|
|
207
|
-
| `shadow-sm` | `
|
|
208
|
-
| `shadow-md` | `
|
|
209
|
-
| `shadow-lg` | `
|
|
210
|
-
| `shadow-xl` | `
|
|
211
|
-
| `shadow-2xl` | `
|
|
212
|
-
| `shadow-inner` | `
|
|
213
|
-
| `shadow-none` | `
|
|
214
|
-
| `ring` | `
|
|
215
|
-
| `ring-0` | `
|
|
216
|
-
| `ring-1` | `
|
|
217
|
-
| `ring-2` | `
|
|
218
|
-
| `ring-4` | `
|
|
219
|
-
| `ring-8` | `
|
|
220
|
-
| `ring-inset` |
|
|
204
|
+
| `shadow-2xs` | `box-shadow: 0 1px rgb(0 0 0 / 0.05)` |
|
|
205
|
+
| `shadow-xs` | `box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05)` |
|
|
206
|
+
| `shadow` | `box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)` |
|
|
207
|
+
| `shadow-sm` | `box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)` |
|
|
208
|
+
| `shadow-md` | `box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)` |
|
|
209
|
+
| `shadow-lg` | `box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` |
|
|
210
|
+
| `shadow-xl` | `box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)` |
|
|
211
|
+
| `shadow-2xl` | `box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25)` |
|
|
212
|
+
| `shadow-inner` | `box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05)` |
|
|
213
|
+
| `shadow-none` | `box-shadow: 0 0 #0000` |
|
|
214
|
+
| `ring` | `box-shadow: var(--ring-inset, ) 0 0 0 3px rgb(59 130 246 / 0.5)` |
|
|
215
|
+
| `ring-0` | `box-shadow: var(--ring-inset, ) 0 0 0 0px rgb(59 130 246 / 0.5)` |
|
|
216
|
+
| `ring-1` | `box-shadow: var(--ring-inset, ) 0 0 0 1px rgb(59 130 246 / 0.5)` |
|
|
217
|
+
| `ring-2` | `box-shadow: var(--ring-inset, ) 0 0 0 2px rgb(59 130 246 / 0.5)` |
|
|
218
|
+
| `ring-4` | `box-shadow: var(--ring-inset, ) 0 0 0 4px rgb(59 130 246 / 0.5)` |
|
|
219
|
+
| `ring-8` | `box-shadow: var(--ring-inset, ) 0 0 0 8px rgb(59 130 246 / 0.5)` |
|
|
220
|
+
| `ring-inset` | `--ring-inset: inset` |
|
|
221
221
|
| `opacity-0` | Fully transparent |
|
|
222
222
|
| `opacity-{5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100}` | Opacity values (multiples of 5) |
|
|
223
223
|
|
|
@@ -225,191 +225,191 @@ You can also control the opacity of any color utility by appending `/{opacity}`
|
|
|
225
225
|
|
|
226
226
|
| Utility | Description |
|
|
227
227
|
| --- | --- |
|
|
228
|
-
| `outline` | `
|
|
229
|
-
| `outline-none` | `
|
|
230
|
-
| `outline-dashed` | `
|
|
231
|
-
| `outline-dotted` | `
|
|
232
|
-
| `outline-double` | `
|
|
233
|
-
| `outline-0` | `
|
|
234
|
-
| `outline-1` | `
|
|
235
|
-
| `outline-2` | `
|
|
236
|
-
| `outline-4` | `
|
|
237
|
-
| `outline-8` | `
|
|
238
|
-
| `outline-offset-0` | `
|
|
239
|
-
| `outline-offset-1` | `
|
|
240
|
-
| `outline-offset-2` | `
|
|
241
|
-
| `outline-offset-4` | `
|
|
242
|
-
| `outline-offset-8` | `
|
|
228
|
+
| `outline` | `outline-style: solid` |
|
|
229
|
+
| `outline-none` | `outline: 2px solid transparent; outline-offset: 2px` |
|
|
230
|
+
| `outline-dashed` | `outline-style: dashed` |
|
|
231
|
+
| `outline-dotted` | `outline-style: dotted` |
|
|
232
|
+
| `outline-double` | `outline-style: double` |
|
|
233
|
+
| `outline-0` | `outline-width: 0px` |
|
|
234
|
+
| `outline-1` | `outline-width: 1px` |
|
|
235
|
+
| `outline-2` | `outline-width: 2px` |
|
|
236
|
+
| `outline-4` | `outline-width: 4px` |
|
|
237
|
+
| `outline-8` | `outline-width: 8px` |
|
|
238
|
+
| `outline-offset-0` | `outline-offset: 0px` |
|
|
239
|
+
| `outline-offset-1` | `outline-offset: 1px` |
|
|
240
|
+
| `outline-offset-2` | `outline-offset: 2px` |
|
|
241
|
+
| `outline-offset-4` | `outline-offset: 4px` |
|
|
242
|
+
| `outline-offset-8` | `outline-offset: 8px` |
|
|
243
243
|
|
|
244
244
|
### Aspect Ratio
|
|
245
245
|
|
|
246
246
|
| Utility | Description |
|
|
247
247
|
| --- | --- |
|
|
248
|
-
| `aspect-auto` | `
|
|
249
|
-
| `aspect-square` | `
|
|
250
|
-
| `aspect-video` | `
|
|
248
|
+
| `aspect-auto` | `aspect-ratio: auto` |
|
|
249
|
+
| `aspect-square` | `aspect-ratio: 1 / 1` |
|
|
250
|
+
| `aspect-video` | `aspect-ratio: 16 / 9` |
|
|
251
251
|
|
|
252
252
|
### Backdrop Filters
|
|
253
253
|
|
|
254
254
|
| Utility | Description |
|
|
255
255
|
| --- | --- |
|
|
256
|
-
| `backdrop-blur-none` | `
|
|
257
|
-
| `backdrop-blur-sm` | `
|
|
258
|
-
| `backdrop-blur` | `
|
|
259
|
-
| `backdrop-blur-md` | `
|
|
260
|
-
| `backdrop-blur-lg` | `
|
|
261
|
-
| `backdrop-blur-xl` | `
|
|
262
|
-
| `backdrop-blur-2xl` | `
|
|
263
|
-
| `backdrop-blur-3xl` | `
|
|
256
|
+
| `backdrop-blur-none` | `backdrop-filter: blur(0)` |
|
|
257
|
+
| `backdrop-blur-sm` | `backdrop-filter: blur(4px)` |
|
|
258
|
+
| `backdrop-blur` | `backdrop-filter: blur(8px)` |
|
|
259
|
+
| `backdrop-blur-md` | `backdrop-filter: blur(12px)` |
|
|
260
|
+
| `backdrop-blur-lg` | `backdrop-filter: blur(16px)` |
|
|
261
|
+
| `backdrop-blur-xl` | `backdrop-filter: blur(24px)` |
|
|
262
|
+
| `backdrop-blur-2xl` | `backdrop-filter: blur(40px)` |
|
|
263
|
+
| `backdrop-blur-3xl` | `backdrop-filter: blur(64px)` |
|
|
264
264
|
|
|
265
265
|
### Transitions & Animations
|
|
266
266
|
|
|
267
267
|
| Utility | Description |
|
|
268
268
|
| --- | --- |
|
|
269
|
-
| `transition-none` | `
|
|
270
|
-
| `transition` | `
|
|
271
|
-
| `transition-all` | `
|
|
272
|
-
| `transition-opacity` | `
|
|
273
|
-
| `transition-transform` | `
|
|
274
|
-
| `transition-shadow` | `
|
|
275
|
-
| `transition-colors` | `
|
|
276
|
-
| `animate-none` | `
|
|
277
|
-
| `animate-spin` | `
|
|
278
|
-
| `animate-ping` | `
|
|
279
|
-
| `animate-pulse` | `
|
|
269
|
+
| `transition-none` | `transition: none` |
|
|
270
|
+
| `transition` | `transition-property: all; transition-timing-function: ease-in-out; transition-duration: var(--transition-duration, 150ms)` |
|
|
271
|
+
| `transition-all` | `transition-property: all; transition-timing-function: ease-in-out; transition-duration: var(--transition-duration, 150ms)` |
|
|
272
|
+
| `transition-opacity` | `transition-property: opacity; transition-timing-function: ease-in-out; transition-duration: var(--transition-duration, 150ms)` |
|
|
273
|
+
| `transition-transform` | `transition-property: transform; transition-timing-function: ease-in-out; transition-duration: var(--transition-duration, 150ms)` |
|
|
274
|
+
| `transition-shadow` | `transition-property: box-shadow; transition-timing-function: ease-in-out; transition-duration: var(--transition-duration, 150ms)` |
|
|
275
|
+
| `transition-colors` | `transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: ease-in-out; transition-duration: var(--transition-duration, 150ms)` |
|
|
276
|
+
| `animate-none` | `animation: none` |
|
|
277
|
+
| `animate-spin` | `animation: spin 1s linear infinite` |
|
|
278
|
+
| `animate-ping` | `animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite` |
|
|
279
|
+
| `animate-pulse` | `animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite` |
|
|
280
280
|
| `duration-{25,50,75,100,150,200,300,500,700,1000}` | Transition duration in milliseconds |
|
|
281
281
|
|
|
282
282
|
### Interactivity
|
|
283
283
|
|
|
284
284
|
| Utility | Description |
|
|
285
285
|
| --- | --- |
|
|
286
|
-
| `cursor-pointer` | `
|
|
287
|
-
| `cursor-wait` | `
|
|
288
|
-
| `cursor-not-allowed` | `
|
|
289
|
-
| `select-none` | `
|
|
290
|
-
| `select-all` | `
|
|
291
|
-
| `pointer-events-auto` | `
|
|
292
|
-
| `pointer-events-none` | `
|
|
293
|
-
| `resize` | `
|
|
294
|
-
| `resize-x` | `
|
|
295
|
-
| `resize-y` | `
|
|
296
|
-
| `resize-none` | `
|
|
286
|
+
| `cursor-pointer` | `cursor: pointer` |
|
|
287
|
+
| `cursor-wait` | `cursor: wait` |
|
|
288
|
+
| `cursor-not-allowed` | `cursor: not-allowed` |
|
|
289
|
+
| `select-none` | `user-select: none` |
|
|
290
|
+
| `select-all` | `user-select: all` |
|
|
291
|
+
| `pointer-events-auto` | `pointer-events: auto` |
|
|
292
|
+
| `pointer-events-none` | `pointer-events: none` |
|
|
293
|
+
| `resize` | `resize: both` |
|
|
294
|
+
| `resize-x` | `resize: horizontal` |
|
|
295
|
+
| `resize-y` | `resize: vertical` |
|
|
296
|
+
| `resize-none` | `resize: none` |
|
|
297
297
|
|
|
298
298
|
### Typography
|
|
299
299
|
|
|
300
300
|
| Utility | Description |
|
|
301
301
|
| --- | --- |
|
|
302
|
-
| `font-mono` | `
|
|
303
|
-
| `font-sans` | `
|
|
304
|
-
| `font-serif` | `
|
|
305
|
-
| `font-cursive` | `
|
|
306
|
-
| `text-xs` | `
|
|
307
|
-
| `text-sm` | `
|
|
308
|
-
| `text-base` | `
|
|
309
|
-
| `text-lg` | `
|
|
310
|
-
| `text-xl` | `
|
|
311
|
-
| `text-2xl` | `
|
|
312
|
-
| `text-3xl` | `
|
|
313
|
-
| `text-4xl` | `
|
|
314
|
-
| `text-5xl` | `
|
|
315
|
-
| `text-6xl` | `
|
|
316
|
-
| `text-7xl` | `
|
|
317
|
-
| `font-thin` | `
|
|
318
|
-
| `font-extralight` | `
|
|
319
|
-
| `font-light` | `
|
|
320
|
-
| `font-normal` | `
|
|
321
|
-
| `font-medium` | `
|
|
322
|
-
| `font-semibold` | `
|
|
323
|
-
| `font-bold` | `
|
|
324
|
-
| `font-extrabold` | `
|
|
325
|
-
| `font-black` | `
|
|
326
|
-
| `italic` | `
|
|
327
|
-
| `not-italic` | `
|
|
328
|
-
| `tracking-tighter` | `
|
|
329
|
-
| `tracking-tight` | `
|
|
330
|
-
| `tracking-normal` | `
|
|
331
|
-
| `tracking-wide` | `
|
|
332
|
-
| `tracking-wider` | `
|
|
333
|
-
| `tracking-widest` | `
|
|
334
|
-
| `leading-none` | `
|
|
335
|
-
| `leading-tight` | `
|
|
336
|
-
| `leading-snug` | `
|
|
337
|
-
| `leading-normal` | `
|
|
338
|
-
| `leading-relaxed` | `
|
|
339
|
-
| `leading-loose` | `
|
|
340
|
-
| `text-left` | `
|
|
341
|
-
| `text-right` | `
|
|
342
|
-
| `text-center` | `
|
|
343
|
-
| `text-justify` | `
|
|
344
|
-
| `underline` | `
|
|
345
|
-
| `decoration-none` | `
|
|
346
|
-
| `line-through` | `
|
|
347
|
-
| `uppercase` | `
|
|
348
|
-
| `lowercase` | `
|
|
349
|
-
| `capitalize` | `
|
|
350
|
-
| `truncate` | `
|
|
351
|
-
| `text-elipsis` | `
|
|
352
|
-
| `text-clip` | `
|
|
353
|
-
| `text-wrap` | `
|
|
354
|
-
| `text-nowrap` | `
|
|
355
|
-
| `text-balance` | `
|
|
356
|
-
| `text-pretty` | `
|
|
357
|
-
| `whitespace-normal` | `
|
|
358
|
-
| `whitespace-nowrap` | `
|
|
359
|
-
| `whitespace-pre` | `
|
|
360
|
-
| `whitespace-pre-line` | `
|
|
361
|
-
| `whitespace-pre-wrap` | `
|
|
362
|
-
| `whitespace-break-spaces` | `
|
|
302
|
+
| `font-mono` | `font-family: monospace` |
|
|
303
|
+
| `font-sans` | `font-family: sans-serif` |
|
|
304
|
+
| `font-serif` | `font-family: serif` |
|
|
305
|
+
| `font-cursive` | `font-family: cursive` |
|
|
306
|
+
| `text-xs` | `font-size: .75rem; line-height: calc(1 / 0.75)` |
|
|
307
|
+
| `text-sm` | `font-size: .875rem; line-height: calc(1.25 / 0.875)` |
|
|
308
|
+
| `text-base` | `font-size: 1rem; line-height: calc(1.5 / 1)` |
|
|
309
|
+
| `text-lg` | `font-size: 1.125rem; line-height: calc(1.75 / 1.125)` |
|
|
310
|
+
| `text-xl` | `font-size: 1.25rem; line-height: calc(1.75 / 1.25)` |
|
|
311
|
+
| `text-2xl` | `font-size: 1.5rem; line-height: calc(2 / 1.5)` |
|
|
312
|
+
| `text-3xl` | `font-size: 1.875rem; line-height: calc(2.25 / 1.875)` |
|
|
313
|
+
| `text-4xl` | `font-size: 2.25rem; line-height: calc(2.5 / 2.25)` |
|
|
314
|
+
| `text-5xl` | `font-size: 3rem; line-height: 1` |
|
|
315
|
+
| `text-6xl` | `font-size: 3.75rem; line-height: 1` |
|
|
316
|
+
| `text-7xl` | `font-size: 4.5rem; line-height: 1` |
|
|
317
|
+
| `font-thin` | `font-weight: 100` |
|
|
318
|
+
| `font-extralight` | `font-weight: 200` |
|
|
319
|
+
| `font-light` | `font-weight: 300` |
|
|
320
|
+
| `font-normal` | `font-weight: 400` |
|
|
321
|
+
| `font-medium` | `font-weight: 500` |
|
|
322
|
+
| `font-semibold` | `font-weight: 600` |
|
|
323
|
+
| `font-bold` | `font-weight: 700` |
|
|
324
|
+
| `font-extrabold` | `font-weight: 800` |
|
|
325
|
+
| `font-black` | `font-weight: 900` |
|
|
326
|
+
| `italic` | `font-style: italic` |
|
|
327
|
+
| `not-italic` | `font-style: normal` |
|
|
328
|
+
| `tracking-tighter` | `letter-spacing: -0.05em` |
|
|
329
|
+
| `tracking-tight` | `letter-spacing: -0.025em` |
|
|
330
|
+
| `tracking-normal` | `letter-spacing: 0` |
|
|
331
|
+
| `tracking-wide` | `letter-spacing: 0.025em` |
|
|
332
|
+
| `tracking-wider` | `letter-spacing: 0.05em` |
|
|
333
|
+
| `tracking-widest` | `letter-spacing: 0.1em` |
|
|
334
|
+
| `leading-none` | `line-height: 1` |
|
|
335
|
+
| `leading-tight` | `line-height: 1.25` |
|
|
336
|
+
| `leading-snug` | `line-height: 1.375` |
|
|
337
|
+
| `leading-normal` | `line-height: 1.5` |
|
|
338
|
+
| `leading-relaxed` | `line-height: 1.625` |
|
|
339
|
+
| `leading-loose` | `line-height: 2` |
|
|
340
|
+
| `text-left` | `text-align: left` |
|
|
341
|
+
| `text-right` | `text-align: right` |
|
|
342
|
+
| `text-center` | `text-align: center` |
|
|
343
|
+
| `text-justify` | `text-align: justify` |
|
|
344
|
+
| `underline` | `text-decoration: underline` |
|
|
345
|
+
| `decoration-none` | `text-decoration: none` |
|
|
346
|
+
| `line-through` | `text-decoration: line-through` |
|
|
347
|
+
| `uppercase` | `text-transform: uppercase` |
|
|
348
|
+
| `lowercase` | `text-transform: lowercase` |
|
|
349
|
+
| `capitalize` | `text-transform: capitalize` |
|
|
350
|
+
| `truncate` | `white-space: nowrap; overflow: hidden; text-overflow: ellipsis` |
|
|
351
|
+
| `text-elipsis` | `text-overflow: ellipsis` |
|
|
352
|
+
| `text-clip` | `text-overflow: clip` |
|
|
353
|
+
| `text-wrap` | `text-wrap: wrap` |
|
|
354
|
+
| `text-nowrap` | `text-wrap: nowrap` |
|
|
355
|
+
| `text-balance` | `text-wrap: balance` |
|
|
356
|
+
| `text-pretty` | `text-wrap: pretty` |
|
|
357
|
+
| `whitespace-normal` | `white-space: normal` |
|
|
358
|
+
| `whitespace-nowrap` | `white-space: nowrap` |
|
|
359
|
+
| `whitespace-pre` | `white-space: pre` |
|
|
360
|
+
| `whitespace-pre-line` | `white-space: pre-line` |
|
|
361
|
+
| `whitespace-pre-wrap` | `white-space: pre-wrap` |
|
|
362
|
+
| `whitespace-break-spaces` | `white-space: break-spaces` |
|
|
363
363
|
|
|
364
364
|
### Flexbox & Layout
|
|
365
365
|
|
|
366
366
|
| Utility | Description |
|
|
367
367
|
| --- | --- |
|
|
368
|
-
| `flex` | `
|
|
369
|
-
| `flex-1` | `
|
|
370
|
-
| `flex-inline` | `
|
|
371
|
-
| `flex-row` | `
|
|
372
|
-
| `flex-col` | `
|
|
373
|
-
| `flex-row-reverse` | `
|
|
374
|
-
| `flex-col-reverse` | `
|
|
375
|
-
| `flex-wrap` | `
|
|
376
|
-
| `flex-wrap-reverse` | `
|
|
377
|
-
| `flex-nowrap` | `
|
|
378
|
-
| `justify-start` | `
|
|
379
|
-
| `justify-end` | `
|
|
380
|
-
| `justify-center` | `
|
|
381
|
-
| `justify-between` | `
|
|
382
|
-
| `justify-around` | `
|
|
383
|
-
| `justify-evenly` | `
|
|
384
|
-
| `justify-stretch` | `
|
|
385
|
-
| `items-start` | `
|
|
386
|
-
| `items-end` | `
|
|
387
|
-
| `items-center` | `
|
|
388
|
-
| `items-stretch` | `
|
|
389
|
-
| `flex-grow` | `
|
|
390
|
-
| `flex-shrink` | `
|
|
391
|
-
| `flex-none` | `
|
|
392
|
-
| `flex-auto` | `
|
|
393
|
-
| `flex-initial` | `
|
|
394
|
-
| `grow` | `
|
|
395
|
-
| `grow-0` | `
|
|
396
|
-
| `shrink` | `
|
|
397
|
-
| `shrink-0` | `
|
|
398
|
-
| `self-auto` | `
|
|
399
|
-
| `self-start` | `
|
|
400
|
-
| `self-end` | `
|
|
401
|
-
| `self-center` | `
|
|
402
|
-
| `self-stretch` | `
|
|
403
|
-
| `self-baseline` | `
|
|
404
|
-
| `content-normal` | `
|
|
405
|
-
| `content-start` | `
|
|
406
|
-
| `content-end` | `
|
|
407
|
-
| `content-center` | `
|
|
408
|
-
| `content-between` | `
|
|
409
|
-
| `content-around` | `
|
|
410
|
-
| `content-evenly` | `
|
|
411
|
-
| `content-stretch` | `
|
|
412
|
-
| `items-baseline` | `
|
|
368
|
+
| `flex` | `display: flex` |
|
|
369
|
+
| `flex-1` | `flex: 1 1 0%` |
|
|
370
|
+
| `flex-inline` | `display: inline-flex` |
|
|
371
|
+
| `flex-row` | `flex-direction: row` |
|
|
372
|
+
| `flex-col` | `flex-direction: column` |
|
|
373
|
+
| `flex-row-reverse` | `flex-direction: row-reverse` |
|
|
374
|
+
| `flex-col-reverse` | `flex-direction: column-reverse` |
|
|
375
|
+
| `flex-wrap` | `flex-wrap: wrap` |
|
|
376
|
+
| `flex-wrap-reverse` | `flex-wrap: wrap-reverse` |
|
|
377
|
+
| `flex-nowrap` | `flex-wrap: nowrap` |
|
|
378
|
+
| `justify-start` | `justify-content: flex-start` |
|
|
379
|
+
| `justify-end` | `justify-content: flex-end` |
|
|
380
|
+
| `justify-center` | `justify-content: center` |
|
|
381
|
+
| `justify-between` | `justify-content: space-between` |
|
|
382
|
+
| `justify-around` | `justify-content: space-around` |
|
|
383
|
+
| `justify-evenly` | `justify-content: space-evenly` |
|
|
384
|
+
| `justify-stretch` | `justify-content: stretch` |
|
|
385
|
+
| `items-start` | `align-items: flex-start` |
|
|
386
|
+
| `items-end` | `align-items: flex-end` |
|
|
387
|
+
| `items-center` | `align-items: center` |
|
|
388
|
+
| `items-stretch` | `align-items: stretch` |
|
|
389
|
+
| `flex-grow` | `flex-grow: 1` |
|
|
390
|
+
| `flex-shrink` | `flex-shrink: 1` |
|
|
391
|
+
| `flex-none` | `flex: none` |
|
|
392
|
+
| `flex-auto` | `flex: 1 1 auto` |
|
|
393
|
+
| `flex-initial` | `flex: 0 1 auto` |
|
|
394
|
+
| `grow` | `flex-grow: 1` |
|
|
395
|
+
| `grow-0` | `flex-grow: 0` |
|
|
396
|
+
| `shrink` | `flex-shrink: 1` |
|
|
397
|
+
| `shrink-0` | `flex-shrink: 0` |
|
|
398
|
+
| `self-auto` | `align-self: auto` |
|
|
399
|
+
| `self-start` | `align-self: flex-start` |
|
|
400
|
+
| `self-end` | `align-self: flex-end` |
|
|
401
|
+
| `self-center` | `align-self: center` |
|
|
402
|
+
| `self-stretch` | `align-self: stretch` |
|
|
403
|
+
| `self-baseline` | `align-self: baseline` |
|
|
404
|
+
| `content-normal` | `align-content: normal` |
|
|
405
|
+
| `content-start` | `align-content: flex-start` |
|
|
406
|
+
| `content-end` | `align-content: flex-end` |
|
|
407
|
+
| `content-center` | `align-content: center` |
|
|
408
|
+
| `content-between` | `align-content: space-between` |
|
|
409
|
+
| `content-around` | `align-content: space-around` |
|
|
410
|
+
| `content-evenly` | `align-content: space-evenly` |
|
|
411
|
+
| `content-stretch` | `align-content: stretch` |
|
|
412
|
+
| `items-baseline` | `align-items: baseline` |
|
|
413
413
|
| `gap-0` | No gap |
|
|
414
414
|
| `gap-{1-512}` | Gap in rem units (0.25rem increments) |
|
|
415
415
|
| `gap-{1-512}px` | Gap in pixels |
|
|
@@ -434,7 +434,7 @@ You can also control the opacity of any color utility by appending `/{opacity}`
|
|
|
434
434
|
|
|
435
435
|
| Utility | Description |
|
|
436
436
|
| --- | --- |
|
|
437
|
-
| `grid` | `
|
|
437
|
+
| `grid` | `display: grid` |
|
|
438
438
|
| `grid-cols-{1-12}` | `grid-template-columns: repeat(n, minmax(0, 1fr))` |
|
|
439
439
|
| `grid-cols-none` | `grid-template-columns: none` |
|
|
440
440
|
| `col-span-{1-12}` | `grid-column: span n / span n` |
|
|
@@ -454,20 +454,20 @@ You can also control the opacity of any color utility by appending `/{opacity}`
|
|
|
454
454
|
|
|
455
455
|
| Utility | Description |
|
|
456
456
|
| --- | --- |
|
|
457
|
-
| `relative` | `
|
|
458
|
-
| `fixed` | `
|
|
459
|
-
| `absolute` | `
|
|
460
|
-
| `sticky` | `
|
|
461
|
-
| `object-contain` | `
|
|
462
|
-
| `object-cover` | `
|
|
463
|
-
| `object-fill` | `
|
|
464
|
-
| `object-none` | `
|
|
465
|
-
| `inset-0` | `
|
|
466
|
-
| `inset-auto` | `
|
|
467
|
-
| `inset-x-0` | `
|
|
468
|
-
| `inset-y-0` | `
|
|
469
|
-
| `inset-x-auto` | `
|
|
470
|
-
| `inset-y-auto` | `
|
|
457
|
+
| `relative` | `position: relative` |
|
|
458
|
+
| `fixed` | `position: fixed` |
|
|
459
|
+
| `absolute` | `position: absolute` |
|
|
460
|
+
| `sticky` | `position: sticky` |
|
|
461
|
+
| `object-contain` | `object-fit: contain` |
|
|
462
|
+
| `object-cover` | `object-fit: cover` |
|
|
463
|
+
| `object-fill` | `object-fit: fill` |
|
|
464
|
+
| `object-none` | `object-fit: none` |
|
|
465
|
+
| `inset-0` | `inset: 0` |
|
|
466
|
+
| `inset-auto` | `inset: auto` |
|
|
467
|
+
| `inset-x-0` | `left: 0; right: 0` |
|
|
468
|
+
| `inset-y-0` | `top: 0; bottom: 0` |
|
|
469
|
+
| `inset-x-auto` | `left: auto; right: auto` |
|
|
470
|
+
| `inset-y-auto` | `top: auto; bottom: auto` |
|
|
471
471
|
| `top-{0-512}`, `bottom-{0-512}`, `left-{0-512}`, `right-{0-512}` | Position in rem units (0.25rem increments) |
|
|
472
472
|
| `top-{0-512}px`, `bottom-{0-512}px`, `left-{0-512}px`, `right-{0-512}px` | Position in pixels |
|
|
473
473
|
| `top-{1-100}%`, `bottom-{1-100}%`, `left-{1-100}%`, `right-{1-100}%` | Position in percentages |
|
|
@@ -478,108 +478,108 @@ You can also control the opacity of any color utility by appending `/{opacity}`
|
|
|
478
478
|
|
|
479
479
|
| Utility | Description |
|
|
480
480
|
| --- | --- |
|
|
481
|
-
| `block` | `
|
|
482
|
-
| `contents` | `
|
|
483
|
-
| `hidden` | `
|
|
484
|
-
| `inline` | `
|
|
485
|
-
| `visible` | `
|
|
486
|
-
| `invisible` | `
|
|
487
|
-
| `collapse` | `
|
|
481
|
+
| `block` | `display: block` |
|
|
482
|
+
| `contents` | `display: contents` |
|
|
483
|
+
| `hidden` | `display: none` |
|
|
484
|
+
| `inline` | `display: inline` |
|
|
485
|
+
| `visible` | `visibility: visible` |
|
|
486
|
+
| `invisible` | `visibility: hidden` |
|
|
487
|
+
| `collapse` | `visibility: collapse` |
|
|
488
488
|
|
|
489
489
|
### Overflow & Scrolling
|
|
490
490
|
|
|
491
491
|
| Utility | Description |
|
|
492
492
|
| --- | --- |
|
|
493
|
-
| `overflow-auto` | `
|
|
494
|
-
| `overflow-x-auto` | `
|
|
495
|
-
| `overflow-y-auto` | `
|
|
496
|
-
| `overflow-hidden` | `
|
|
497
|
-
| `overflow-x-hidden` | `
|
|
498
|
-
| `overflow-y-hidden` | `
|
|
499
|
-
| `overflow-visible` | `
|
|
500
|
-
| `overscroll-auto` | `
|
|
501
|
-
| `overscroll-contain` | `
|
|
502
|
-
| `overscroll-none` | `
|
|
503
|
-
| `overscroll-x-auto` | `
|
|
504
|
-
| `overscroll-x-contain` | `
|
|
505
|
-
| `overscroll-x-none` | `
|
|
506
|
-
| `overscroll-y-auto` | `
|
|
507
|
-
| `overscroll-y-contain` | `
|
|
508
|
-
| `overscroll-y-none` | `
|
|
493
|
+
| `overflow-auto` | `overflow: auto` |
|
|
494
|
+
| `overflow-x-auto` | `overflow-x: auto` |
|
|
495
|
+
| `overflow-y-auto` | `overflow-y: auto` |
|
|
496
|
+
| `overflow-hidden` | `overflow: hidden` |
|
|
497
|
+
| `overflow-x-hidden` | `overflow-x: hidden` |
|
|
498
|
+
| `overflow-y-hidden` | `overflow-y: hidden` |
|
|
499
|
+
| `overflow-visible` | `overflow: visible` |
|
|
500
|
+
| `overscroll-auto` | `overscroll-behavior: auto` |
|
|
501
|
+
| `overscroll-contain` | `overscroll-behavior: contain` |
|
|
502
|
+
| `overscroll-none` | `overscroll-behavior: none` |
|
|
503
|
+
| `overscroll-x-auto` | `overscroll-behavior-x: auto` |
|
|
504
|
+
| `overscroll-x-contain` | `overscroll-behavior-x: contain` |
|
|
505
|
+
| `overscroll-x-none` | `overscroll-behavior-x: none` |
|
|
506
|
+
| `overscroll-y-auto` | `overscroll-behavior-y: auto` |
|
|
507
|
+
| `overscroll-y-contain` | `overscroll-behavior-y: contain` |
|
|
508
|
+
| `overscroll-y-none` | `overscroll-behavior-y: none` |
|
|
509
509
|
|
|
510
510
|
### Backgrounds
|
|
511
511
|
|
|
512
512
|
| Utility | Description |
|
|
513
513
|
| --- | --- |
|
|
514
|
-
| `bg-auto` | `
|
|
515
|
-
| `bg-cover` | `
|
|
516
|
-
| `bg-contain` | `
|
|
517
|
-
| `bg-center` | `
|
|
518
|
-
| `bg-top` | `
|
|
519
|
-
| `bg-bottom` | `
|
|
520
|
-
| `bg-left` | `
|
|
521
|
-
| `bg-right` | `
|
|
522
|
-
| `bg-left-top` | `
|
|
523
|
-
| `bg-left-bottom` | `
|
|
524
|
-
| `bg-right-top` | `
|
|
525
|
-
| `bg-right-bottom` | `
|
|
526
|
-
| `bg-no-repeat` | `
|
|
527
|
-
| `bg-fixed` | `
|
|
528
|
-
| `bg-local` | `
|
|
529
|
-
| `bg-scroll` | `
|
|
514
|
+
| `bg-auto` | `background-size: auto` |
|
|
515
|
+
| `bg-cover` | `background-size: cover` |
|
|
516
|
+
| `bg-contain` | `background-size: contain` |
|
|
517
|
+
| `bg-center` | `background-position: center` |
|
|
518
|
+
| `bg-top` | `background-position: top` |
|
|
519
|
+
| `bg-bottom` | `background-position: bottom` |
|
|
520
|
+
| `bg-left` | `background-position: left` |
|
|
521
|
+
| `bg-right` | `background-position: right` |
|
|
522
|
+
| `bg-left-top` | `background-position: left top` |
|
|
523
|
+
| `bg-left-bottom` | `background-position: left bottom` |
|
|
524
|
+
| `bg-right-top` | `background-position: right top` |
|
|
525
|
+
| `bg-right-bottom` | `background-position: right bottom` |
|
|
526
|
+
| `bg-no-repeat` | `background-repeat: no-repeat` |
|
|
527
|
+
| `bg-fixed` | `background-attachment: fixed` |
|
|
528
|
+
| `bg-local` | `background-attachment: local` |
|
|
529
|
+
| `bg-scroll` | `background-attachment: scroll` |
|
|
530
530
|
|
|
531
531
|
### Lists
|
|
532
532
|
|
|
533
533
|
| Utility | Description |
|
|
534
534
|
| --- | --- |
|
|
535
|
-
| `list-none` | `
|
|
536
|
-
| `list-disc` | `
|
|
537
|
-
| `list-decimal` | `
|
|
535
|
+
| `list-none` | `list-style-type: none` |
|
|
536
|
+
| `list-disc` | `list-style-type: disc` |
|
|
537
|
+
| `list-decimal` | `list-style-type: decimal` |
|
|
538
538
|
|
|
539
539
|
### Vertical Alignment
|
|
540
540
|
|
|
541
541
|
| Utility | Description |
|
|
542
542
|
| --- | --- |
|
|
543
|
-
| `align-baseline` | `
|
|
544
|
-
| `align-top` | `
|
|
545
|
-
| `align-middle` | `
|
|
546
|
-
| `align-bottom` | `
|
|
547
|
-
| `align-text-top` | `
|
|
548
|
-
| `align-text-bottom` | `
|
|
543
|
+
| `align-baseline` | `vertical-align: baseline` |
|
|
544
|
+
| `align-top` | `vertical-align: top` |
|
|
545
|
+
| `align-middle` | `vertical-align: middle` |
|
|
546
|
+
| `align-bottom` | `vertical-align: bottom` |
|
|
547
|
+
| `align-text-top` | `vertical-align: text-top` |
|
|
548
|
+
| `align-text-bottom` | `vertical-align: text-bottom` |
|
|
549
549
|
|
|
550
550
|
### Viewport Sizing
|
|
551
551
|
|
|
552
552
|
| Utility | Description |
|
|
553
553
|
| --- | --- |
|
|
554
|
-
| `min-h-screen` | `
|
|
555
|
-
| `max-h-screen` | `
|
|
556
|
-
| `min-w-screen` | `
|
|
557
|
-
| `h-dvh` | `
|
|
558
|
-
| `h-svh` | `
|
|
559
|
-
| `h-lvh` | `
|
|
560
|
-
| `w-dvw` | `
|
|
561
|
-
| `w-svw` | `
|
|
562
|
-
| `w-lvw` | `
|
|
563
|
-
| `min-h-dvh` | `
|
|
564
|
-
| `min-h-svh` | `
|
|
565
|
-
| `min-h-lvh` | `
|
|
554
|
+
| `min-h-screen` | `min-height: 100vh` |
|
|
555
|
+
| `max-h-screen` | `max-height: 100vh` |
|
|
556
|
+
| `min-w-screen` | `min-width: 100vw` |
|
|
557
|
+
| `h-dvh` | `height: 100dvh` |
|
|
558
|
+
| `h-svh` | `height: 100svh` |
|
|
559
|
+
| `h-lvh` | `height: 100lvh` |
|
|
560
|
+
| `w-dvw` | `width: 100dvw` |
|
|
561
|
+
| `w-svw` | `width: 100svw` |
|
|
562
|
+
| `w-lvw` | `width: 100lvw` |
|
|
563
|
+
| `min-h-dvh` | `min-height: 100dvh` |
|
|
564
|
+
| `min-h-svh` | `min-height: 100svh` |
|
|
565
|
+
| `min-h-lvh` | `min-height: 100lvh` |
|
|
566
566
|
|
|
567
567
|
### Accessibility
|
|
568
568
|
|
|
569
569
|
| Utility | Description |
|
|
570
570
|
| --- | --- |
|
|
571
|
-
| `sr-only` | `
|
|
572
|
-
| `not-sr-only` | `
|
|
571
|
+
| `sr-only` | `position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0` |
|
|
572
|
+
| `not-sr-only` | `position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; white-space: normal` |
|
|
573
573
|
|
|
574
574
|
### Other Utilities
|
|
575
575
|
|
|
576
576
|
| Utility | Description |
|
|
577
577
|
| --- | --- |
|
|
578
|
-
| `no-underline` | `
|
|
579
|
-
| `grid` | `
|
|
580
|
-
| `box-border` | `
|
|
581
|
-
| `box-content` | `
|
|
582
|
-
| `appearance-none` | `
|
|
578
|
+
| `no-underline` | `text-decoration: none` |
|
|
579
|
+
| `grid` | `display: grid` |
|
|
580
|
+
| `box-border` | `box-sizing: border-box` |
|
|
581
|
+
| `box-content` | `box-sizing: content-box` |
|
|
582
|
+
| `appearance-none` | `appearance: none; -webkit-appearance: none; -moz-appearance: none` |
|
|
583
583
|
| `text-{0-99}px` | Font size in pixels (e.g., `text-12px`, `text-16px`) |
|
|
584
584
|
| `text-{0-24.75}rem` | Font size in rem units (0.25rem increments) |
|
|
585
585
|
|
|
@@ -620,18 +620,13 @@ Custom values support pseudo-states, responsive breakpoints, and dark mode:
|
|
|
620
620
|
<div class="hover:w-[200px] md:max-w-[900px] dark:bg-[#333]">
|
|
621
621
|
```
|
|
622
622
|
|
|
623
|
-
###
|
|
623
|
+
### Binding
|
|
624
624
|
|
|
625
|
-
|
|
625
|
+
Rules are injected as Mancha renders the classes, so custom values work in the `class` attribute and in `:class` alike, including values that only appear after a state change.
|
|
626
626
|
|
|
627
|
-
|
|
628
|
-
<!-- ✓ Works -->
|
|
629
|
-
<div class="w-[133px]">
|
|
627
|
+
Markup that Mancha did not render is the exception: it is never scanned, so call `scanAndInject(root)` after inserting it yourself.
|
|
630
628
|
|
|
631
|
-
|
|
632
|
-
<div :class="'w-[133px]'">
|
|
633
|
-
<div :attr:style="'width: ' + dynamicWidth">
|
|
634
|
-
```
|
|
629
|
+
### Limitations
|
|
635
630
|
|
|
636
631
|
**Browser only**: Custom values require the CSSStyleSheet API and are not available in Worker or SSR environments.
|
|
637
632
|
|