@@ -19,7 +19,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
19
19
radioSize : '1em' ,
20
20
checkboxIcon : `<svg viewBox="0 0 16 16" fill="#fff" xmlns="http://www.w3.org/2000/svg"><path d="M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z"/></svg>` ,
21
21
radioIcon : `<svg viewBox="0 0 16 16" fill="#fff" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="3"/></svg>` ,
22
- checkedColor : 'currentColor' ,
22
+ checkedColor : defaultTheme . colors . gray [ 800 ] ,
23
23
selectIcon : `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="${ defaultTheme . colors . gray [ 500 ] } "><path d="M15.3 9.3a1 1 0 0 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 1.4-1.4l3.3 3.29 3.3-3.3z"/></svg>` ,
24
24
selectIconOffset : defaultTheme . spacing [ 2 ] ,
25
25
selectIconSize : '1.5em' ,
@@ -34,6 +34,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
34
34
height : options . checkboxSize ,
35
35
width : options . checkboxSize ,
36
36
verticalAlign : 'middle' ,
37
+ color : options . checkedColor ,
37
38
borderColor : options . borderColor ,
38
39
borderWidth : options . borderWidth ,
39
40
borderRadius : options . borderRadius ,
@@ -48,8 +49,8 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
48
49
borderColor : options . focusBorderColor ,
49
50
} ,
50
51
'&:checked' : {
51
- backgroundColor : options . checkedColor ,
52
- borderColor : options . checkedColor ,
52
+ backgroundColor : 'currentColor' ,
53
+ borderColor : 'currentColor' ,
53
54
backgroundImage : `url("${ svgToDataUri ( options . checkboxIcon ) } ")` ,
54
55
backgroundSize : '100% 100%' ,
55
56
backgroundPosition : 'center' ,
@@ -70,6 +71,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
70
71
height : options . radioSize ,
71
72
width : options . radioSize ,
72
73
verticalAlign : 'middle' ,
74
+ color : options . checkedColor ,
73
75
borderColor : options . borderColor ,
74
76
borderWidth : options . borderWidth ,
75
77
borderRadius : '50%' ,
@@ -84,8 +86,8 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
84
86
borderColor : options . focusBorderColor ,
85
87
} ,
86
88
'&:checked' : {
87
- backgroundColor : options . checkedColor ,
88
- borderColor : options . checkedColor ,
89
+ backgroundColor : 'currentColor' ,
90
+ borderColor : 'currentColor' ,
89
91
backgroundImage : `url("${ svgToDataUri ( options . radioIcon ) } ")` ,
90
92
backgroundSize : '100% 100%' ,
91
93
backgroundPosition : 'center' ,
0 commit comments