@@ -1014,7 +1014,11 @@ export let divideColor = ({ matchUtilities, theme, corePlugins }) => {
1014
1014
{
1015
1015
divide : ( value ) => {
1016
1016
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
+ }
1018
1022
}
1019
1023
1020
1024
return {
@@ -1174,9 +1178,10 @@ export let borderStyle = ({ addUtilities }) => {
1174
1178
1175
1179
export let borderColor = ( { addBase, matchUtilities, theme, corePlugins } ) => {
1176
1180
if ( ! corePlugins ( 'borderOpacity' ) ) {
1181
+ let value = theme ( 'borderColor.DEFAULT' , 'currentColor' )
1177
1182
addBase ( {
1178
1183
'@defaults border-width' : {
1179
- 'border-color' : theme ( 'borderColor.DEFAULT' , 'currentColor' ) ,
1184
+ 'border-color' : toColorValue ( value ) ,
1180
1185
} ,
1181
1186
} )
1182
1187
} else {
@@ -1193,7 +1198,9 @@ export let borderColor = ({ addBase, matchUtilities, theme, corePlugins }) => {
1193
1198
{
1194
1199
border : ( value ) => {
1195
1200
if ( ! corePlugins ( 'borderOpacity' ) ) {
1196
- return { 'border-color' : value }
1201
+ return {
1202
+ 'border-color' : toColorValue ( value ) ,
1203
+ }
1197
1204
}
1198
1205
1199
1206
return withAlphaVariable ( {
@@ -1213,7 +1220,9 @@ export let borderColor = ({ addBase, matchUtilities, theme, corePlugins }) => {
1213
1220
{
1214
1221
'border-t' : ( value ) => {
1215
1222
if ( ! corePlugins ( 'borderOpacity' ) ) {
1216
- return { 'border-top-color' : value }
1223
+ return {
1224
+ 'border-top-color' : toColorValue ( value ) ,
1225
+ }
1217
1226
}
1218
1227
1219
1228
return withAlphaVariable ( {
@@ -1224,7 +1233,9 @@ export let borderColor = ({ addBase, matchUtilities, theme, corePlugins }) => {
1224
1233
} ,
1225
1234
'border-r' : ( value ) => {
1226
1235
if ( ! corePlugins ( 'borderOpacity' ) ) {
1227
- return { 'border-right-color' : value }
1236
+ return {
1237
+ 'border-right-color' : toColorValue ( value ) ,
1238
+ }
1228
1239
}
1229
1240
1230
1241
return withAlphaVariable ( {
@@ -1235,7 +1246,9 @@ export let borderColor = ({ addBase, matchUtilities, theme, corePlugins }) => {
1235
1246
} ,
1236
1247
'border-b' : ( value ) => {
1237
1248
if ( ! corePlugins ( 'borderOpacity' ) ) {
1238
- return { 'border-bottom-color' : value }
1249
+ return {
1250
+ 'border-bottom-color' : toColorValue ( value ) ,
1251
+ }
1239
1252
}
1240
1253
1241
1254
return withAlphaVariable ( {
@@ -1246,7 +1259,9 @@ export let borderColor = ({ addBase, matchUtilities, theme, corePlugins }) => {
1246
1259
} ,
1247
1260
'border-l' : ( value ) => {
1248
1261
if ( ! corePlugins ( 'borderOpacity' ) ) {
1249
- return { 'border-left-color' : value }
1262
+ return {
1263
+ 'border-left-color' : toColorValue ( value ) ,
1264
+ }
1250
1265
}
1251
1266
1252
1267
return withAlphaVariable ( {
@@ -1272,7 +1287,9 @@ export let backgroundColor = ({ matchUtilities, theme, corePlugins }) => {
1272
1287
{
1273
1288
bg : ( value ) => {
1274
1289
if ( ! corePlugins ( 'backgroundOpacity' ) ) {
1275
- return { 'background-color' : value }
1290
+ return {
1291
+ 'background-color' : toColorValue ( value ) ,
1292
+ }
1276
1293
}
1277
1294
1278
1295
return withAlphaVariable ( {
@@ -1539,7 +1556,7 @@ export let textColor = ({ matchUtilities, theme, corePlugins }) => {
1539
1556
{
1540
1557
text : ( value ) => {
1541
1558
if ( ! corePlugins ( 'textOpacity' ) ) {
1542
- return { color : value }
1559
+ return { color : toColorValue ( value ) }
1543
1560
}
1544
1561
1545
1562
return withAlphaVariable ( {
@@ -1583,7 +1600,11 @@ export let placeholderColor = ({ matchUtilities, theme, corePlugins }) => {
1583
1600
{
1584
1601
placeholder : ( value ) => {
1585
1602
if ( ! corePlugins ( 'placeholderOpacity' ) ) {
1586
- return { '&::placeholder' : { color : value } }
1603
+ return {
1604
+ '&::placeholder' : {
1605
+ color : toColorValue ( value ) ,
1606
+ } ,
1607
+ }
1587
1608
}
1588
1609
1589
1610
return {
0 commit comments