@unocss/preset-attributify 0.38.0 → 0.39.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.
Files changed (2) hide show
  1. package/README.md +21 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -47,7 +47,27 @@ With attributify mode, you can separate utilities into attributes:
47
47
 
48
48
  For example, `text-sm text-white` could be grouped into `text="sm white"` without duplicating the same prefix.
49
49
 
50
- ###### Valueless Attributify
50
+ ### Prefix Self-referencing
51
+
52
+ For utilities like `flex`, `grid`, `border`, that have the utilities same as the prefix, a special `~` value is provided.
53
+
54
+ For example:
55
+
56
+ ```html
57
+ <button class="border border-red">
58
+ Button
59
+ </button>
60
+ ```
61
+
62
+ Can be written as
63
+
64
+ ```html
65
+ <button border="~ red">
66
+ Button
67
+ </button>
68
+ ```
69
+
70
+ ### Valueless Attributify
51
71
 
52
72
  In addition to Windi CSS's Attributify Mode, this presets also supports valueless attributes.
53
73
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-attributify",
3
- "version": "0.38.0",
3
+ "version": "0.39.0",
4
4
  "description": "Attributify preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@unocss/core": "0.38.0"
36
+ "@unocss/core": "0.39.0"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "unbuild",