teacss 0.3.5 → 0.3.7
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 +13 -9
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -327,20 +327,24 @@ import { cn } from "teacss";
|
|
|
327
327
|
|
|
328
328
|
cn("p:4 d:flex", "p:8"); // "d:flex p:8"
|
|
329
329
|
cn("p:4", "p:invalid"); // "p:invalid"
|
|
330
|
-
cn("reset
|
|
331
|
-
cn("d:block", "reset
|
|
330
|
+
cn("reset-list", "reset-heading"); // "reset-heading"
|
|
331
|
+
cn("d:block", "reset-list"); // "d:block reset-list"
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
The default `cn` is one direct merger composed from `pluginStandard` and
|
|
335
335
|
`pluginIcon`; it does not chain preset-local mergers. Resolution is based
|
|
336
336
|
on parsed shape, conditions, importance, and declared footprints. It does not
|
|
337
|
-
validate values, so an unsupported winner may emit no CSS. The
|
|
338
|
-
|
|
339
|
-
`
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
337
|
+
validate values, so an unsupported winner may emit no CSS. The eight reset
|
|
338
|
+
profiles apply to the current element and are bare class names, never
|
|
339
|
+
`property:value` utilities: `reset-heading`, `reset-list`, `reset-button`,
|
|
340
|
+
`reset-select`, `reset-textarea`, `reset-input`, `reset-checkbox`, and
|
|
341
|
+
`reset-radio`. `reset-input` is only for text-like inputs; button-like input
|
|
342
|
+
types use `reset-button`, and box controls take `reset-checkbox` /
|
|
343
|
+
`reset-radio`.
|
|
344
|
+
Element deltas expressible with ordinary utilities carry no profile — use
|
|
345
|
+
`text-color:inherit decoration-line:none` for a link and
|
|
346
|
+
`d:block text-align:unset` for a list item. Profiles replace one another as a
|
|
347
|
+
single opaque family and never delete an unrelated utility. Document-root and shadow-host
|
|
344
348
|
defaults come from the standard preset's automatic preflight.
|
|
345
349
|
|
|
346
350
|
Generic class merging is a separate package for custom conflict metadata:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "teacss",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "The TeaCSS application entry with the official `cn`, `recipe`, engine, and preset subpaths.",
|
|
5
5
|
"homepage": "https://css.teasim.com",
|
|
6
6
|
"funding": "https://github.com/sponsors/billgo",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"dev": "tsdown --watch"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@teacss/classes": "0.3.
|
|
30
|
-
"@teacss/core": "0.3.
|
|
31
|
-
"@teacss/preset-articles": "0.3.
|
|
32
|
-
"@teacss/preset-icons": "0.3.
|
|
33
|
-
"@teacss/preset-standard": "0.3.
|
|
29
|
+
"@teacss/classes": "0.3.7",
|
|
30
|
+
"@teacss/core": "0.3.7",
|
|
31
|
+
"@teacss/preset-articles": "0.3.7",
|
|
32
|
+
"@teacss/preset-icons": "0.3.7",
|
|
33
|
+
"@teacss/preset-standard": "0.3.7"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=22.12.0"
|