@unocss/reset 0.54.2 → 0.54.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/reset",
3
3
  "type": "module",
4
- "version": "0.54.2",
4
+ "version": "0.54.3",
5
5
  "description": "Collection of CSS resetting",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -5,6 +5,7 @@ Please read: https://github.com/unocss/unocss/blob/main/packages/reset/tailwind-
5
5
  /*
6
6
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
7
7
  2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
8
+ 2. [UnoCSS]: allow to override the default border color with css var `--un-default-border-color`
8
9
  */
9
10
 
10
11
  *,
@@ -13,7 +14,7 @@ Please read: https://github.com/unocss/unocss/blob/main/packages/reset/tailwind-
13
14
  box-sizing: border-box; /* 1 */
14
15
  border-width: 0; /* 2 */
15
16
  border-style: solid; /* 2 */
16
- border-color: #e5e7eb; /* 2 */
17
+ border-color: var(--un-default-border-color, #e5e7eb); /* 2 */
17
18
  }
18
19
 
19
20
  /*
package/tailwind.css CHANGED
@@ -1,6 +1,7 @@
1
1
  /*
2
2
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
3
3
  2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
4
+ 2. [UnoCSS]: allow to override the default border color with css var `--un-default-border-color`
4
5
  */
5
6
 
6
7
  *,
@@ -9,7 +10,7 @@
9
10
  box-sizing: border-box; /* 1 */
10
11
  border-width: 0; /* 2 */
11
12
  border-style: solid; /* 2 */
12
- border-color: #e5e7eb; /* 2 */
13
+ border-color: var(--un-default-border-color, #e5e7eb); /* 2 */
13
14
  }
14
15
 
15
16
  /*