@@ -1014,7 +1014,11 @@ export let divideColor = ({ matchUtilities, theme, corePlugins }) => {
10141014 {
10151015 divide : ( value ) => {
10161016 if ( ! corePlugins ( 'divideOpacity' ) ) {
1017- return { [ '& > :not([hidden]) ~ :not([hidden])' ] : { 'border-color' : value } }
1017+ return {
1018+ [ '& > :not([hidden]) ~ :not([hidden])' ] : {
1019+ 'border-color' : toColorValue ( value ) ,
1020+ } ,
1021+ }
10181022 }
10191023
10201024 return {
@@ -1174,9 +1178,10 @@ export let borderStyle = ({ addUtilities }) => {
11741178
11751179export let borderColor = ( { addBase, matchUtilities, theme, corePlugins } ) => {
11761180 if ( ! corePlugins ( 'borderOpacity' ) ) {
1181+ let value = theme ( 'borderColor.DEFAULT' , 'currentColor' )
11771182 addBase ( {
11781183 '@defaults border-width' : {
1179- 'border-color' : theme ( 'borderColor.DEFAULT' , 'currentColor' ) ,
1184+ 'border-color' : toColorValue ( value ) ,
11801185 } ,
11811186 } )
11821187 } else {
@@ -1193,7 +1198,9 @@ export let borderColor = ({ addBase, matchUtilities, theme, corePlugins }) => {
11931198 {
11941199 border : ( value ) => {
11951200 if ( ! corePlugins ( 'borderOpacity' ) ) {
1196- return { 'border-color' : value }
1201+ return {
1202+ 'border-color' : toColorValue ( value ) ,
1203+ }
11971204 }
11981205
11991206 return withAlphaVariable ( {
@@ -1213,7 +1220,9 @@ export let borderColor = ({ addBase, matchUtilities, theme, corePlugins }) => {
12131220 {
12141221 'border-t' : ( value ) => {
12151222 if ( ! corePlugins ( 'borderOpacity' ) ) {
1216- return { 'border-top-color' : value }
1223+ return {
1224+ 'border-top-color' : toColorValue ( value ) ,
1225+ }
12171226 }
12181227
12191228 return withAlphaVariable ( {
@@ -1224,7 +1233,9 @@ export let borderColor = ({ addBase, matchUtilities, theme, corePlugins }) => {
12241233 } ,
12251234 'border-r' : ( value ) => {
12261235 if ( ! corePlugins ( 'borderOpacity' ) ) {
1227- return { 'border-right-color' : value }
1236+ return {
1237+ 'border-right-color' : toColorValue ( value ) ,
1238+ }
12281239 }
12291240
12301241 return withAlphaVariable ( {
@@ -1235,7 +1246,9 @@ export let borderColor = ({ addBase, matchUtilities, theme, corePlugins }) => {
12351246 } ,
12361247 'border-b' : ( value ) => {
12371248 if ( ! corePlugins ( 'borderOpacity' ) ) {
1238- return { 'border-bottom-color' : value }
1249+ return {
1250+ 'border-bottom-color' : toColorValue ( value ) ,
1251+ }
12391252 }
12401253
12411254 return withAlphaVariable ( {
@@ -1246,7 +1259,9 @@ export let borderColor = ({ addBase, matchUtilities, theme, corePlugins }) => {
12461259 } ,
12471260 'border-l' : ( value ) => {
12481261 if ( ! corePlugins ( 'borderOpacity' ) ) {
1249- return { 'border-left-color' : value }
1262+ return {
1263+ 'border-left-color' : toColorValue ( value ) ,
1264+ }
12501265 }
12511266
12521267 return withAlphaVariable ( {
@@ -1272,7 +1287,9 @@ export let backgroundColor = ({ matchUtilities, theme, corePlugins }) => {
12721287 {
12731288 bg : ( value ) => {
12741289 if ( ! corePlugins ( 'backgroundOpacity' ) ) {
1275- return { 'background-color' : value }
1290+ return {
1291+ 'background-color' : toColorValue ( value ) ,
1292+ }
12761293 }
12771294
12781295 return withAlphaVariable ( {
@@ -1539,7 +1556,7 @@ export let textColor = ({ matchUtilities, theme, corePlugins }) => {
15391556 {
15401557 text : ( value ) => {
15411558 if ( ! corePlugins ( 'textOpacity' ) ) {
1542- return { color : value }
1559+ return { color : toColorValue ( value ) }
15431560 }
15441561
15451562 return withAlphaVariable ( {
@@ -1583,7 +1600,11 @@ export let placeholderColor = ({ matchUtilities, theme, corePlugins }) => {
15831600 {
15841601 placeholder : ( value ) => {
15851602 if ( ! corePlugins ( 'placeholderOpacity' ) ) {
1586- return { '&::placeholder' : { color : value } }
1603+ return {
1604+ '&::placeholder' : {
1605+ color : toColorValue ( value ) ,
1606+ } ,
1607+ }
15871608 }
15881609
15891610 return {
0 commit comments