Skip to content

Commit 5407159

Browse files
committed
Move default border color back to preflight
1 parent c2ee08c commit 5407159

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/corePlugins.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -1179,13 +1179,7 @@ export let corePlugins = {
11791179
})
11801180
},
11811181

1182-
borderColor: ({ addDefaults, matchUtilities, theme, corePlugins }) => {
1183-
let value = theme('borderColor.DEFAULT', 'currentColor')
1184-
1185-
addDefaults('border-width', {
1186-
'border-color': toColorValue(value),
1187-
})
1188-
1182+
borderColor: ({ matchUtilities, theme, corePlugins }) => {
11891183
matchUtilities(
11901184
{
11911185
border: (value) => {

src/css/preflight.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
box-sizing: border-box; /* 1 */
1010
border-width: 0; /* 2 */
1111
border-style: solid; /* 2 */
12-
border-color: currentColor; /* 2 */
12+
border-color: theme('borderColor.DEFAULT', 'currentColor'); /* 2 */
1313
}
1414

1515
::before,

0 commit comments

Comments
 (0)