unocss 0.22.3 → 0.22.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.
Files changed (2) hide show
  1. package/README.md +5 -2
  2. package/package.json +9 -9
package/README.md CHANGED
@@ -440,7 +440,7 @@ As a result, the following CSS will be generated:
440
440
 
441
441
  With this, we could have `m-2` applied only when users hover over the element.
442
442
 
443
- The variant system is very powerful and can't be covered fully in this guide, you can check [the default preset's implementation](https://github.com/antfu/unocss/tree/main/packages/preset-uno/src/variants) to see more advanced usages.
443
+ The variant system is very powerful and can't be covered fully in this guide, you can check [the default preset's implementation](https://github.com/antfu/unocss/tree/main/packages/preset-mini/src/variants) to see more advanced usages.
444
444
 
445
445
  ### Extend Theme
446
446
 
@@ -449,7 +449,10 @@ UnoCSS also supports the theming system that you might be familiar with in Tailw
449
449
  ```ts
450
450
  theme: {
451
451
  colors: {
452
- 'very-cool': '#0000ff',
452
+ 'veryCool': '#0000ff', // class="text-very-cool"
453
+ 'brand': {
454
+ 'primary': '#1f6ae3', //class="bg-brand-primary"
455
+ }
453
456
  },
454
457
  breakpoints: {
455
458
  xs: '320px',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unocss",
3
- "version": "0.22.3",
3
+ "version": "0.22.7",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "keywords": [
6
6
  "unocss",
@@ -42,14 +42,14 @@
42
42
  "*.d.ts"
43
43
  ],
44
44
  "dependencies": {
45
- "@unocss/core": "0.22.3",
46
- "@unocss/cli": "0.22.3",
47
- "@unocss/reset": "0.22.3",
48
- "@unocss/preset-icons": "0.22.3",
49
- "@unocss/preset-attributify": "0.22.3",
50
- "@unocss/preset-uno": "0.22.3",
51
- "@unocss/preset-web-fonts": "0.22.3",
52
- "@unocss/vite": "0.22.3"
45
+ "@unocss/core": "0.22.7",
46
+ "@unocss/cli": "0.22.7",
47
+ "@unocss/reset": "0.22.7",
48
+ "@unocss/preset-icons": "0.22.7",
49
+ "@unocss/preset-attributify": "0.22.7",
50
+ "@unocss/preset-uno": "0.22.7",
51
+ "@unocss/preset-web-fonts": "0.22.7",
52
+ "@unocss/vite": "0.22.7"
53
53
  },
54
54
  "engines": {
55
55
  "node": ">=14"