Skip to content

Commit

Permalink
Move default border color back to preflight
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Jan 7, 2022
1 parent c2ee08c commit 5407159
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/corePlugins.js
Expand Up @@ -1179,13 +1179,7 @@ export let corePlugins = {
})
},

borderColor: ({ addDefaults, matchUtilities, theme, corePlugins }) => {
let value = theme('borderColor.DEFAULT', 'currentColor')

addDefaults('border-width', {
'border-color': toColorValue(value),
})

borderColor: ({ matchUtilities, theme, corePlugins }) => {
matchUtilities(
{
border: (value) => {
Expand Down
2 changes: 1 addition & 1 deletion src/css/preflight.css
Expand Up @@ -9,7 +9,7 @@
box-sizing: border-box; /* 1 */
border-width: 0; /* 2 */
border-style: solid; /* 2 */
border-color: currentColor; /* 2 */
border-color: theme('borderColor.DEFAULT', 'currentColor'); /* 2 */
}

::before,
Expand Down

0 comments on commit 5407159

Please sign in to comment.