@@ -19,7 +19,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
1919 radioSize : '1em' ,
2020 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>` ,
2121 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 ] ,
2323 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>` ,
2424 selectIconOffset : defaultTheme . spacing [ 2 ] ,
2525 selectIconSize : '1.5em' ,
@@ -34,6 +34,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
3434 height : options . checkboxSize ,
3535 width : options . checkboxSize ,
3636 verticalAlign : 'middle' ,
37+ color : options . checkedColor ,
3738 borderColor : options . borderColor ,
3839 borderWidth : options . borderWidth ,
3940 borderRadius : options . borderRadius ,
@@ -48,8 +49,8 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
4849 borderColor : options . focusBorderColor ,
4950 } ,
5051 '&:checked' : {
51- backgroundColor : options . checkedColor ,
52- borderColor : options . checkedColor ,
52+ backgroundColor : 'currentColor' ,
53+ borderColor : 'currentColor' ,
5354 backgroundImage : `url("${ svgToDataUri ( options . checkboxIcon ) } ")` ,
5455 backgroundSize : '100% 100%' ,
5556 backgroundPosition : 'center' ,
@@ -70,6 +71,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
7071 height : options . radioSize ,
7172 width : options . radioSize ,
7273 verticalAlign : 'middle' ,
74+ color : options . checkedColor ,
7375 borderColor : options . borderColor ,
7476 borderWidth : options . borderWidth ,
7577 borderRadius : '50%' ,
@@ -84,8 +86,8 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
8486 borderColor : options . focusBorderColor ,
8587 } ,
8688 '&:checked' : {
87- backgroundColor : options . checkedColor ,
88- borderColor : options . checkedColor ,
89+ backgroundColor : 'currentColor' ,
90+ borderColor : 'currentColor' ,
8991 backgroundImage : `url("${ svgToDataUri ( options . radioIcon ) } ")` ,
9092 backgroundSize : '100% 100%' ,
9193 backgroundPosition : 'center' ,
0 commit comments