Add fill-none and stroke-none utilities (#9403)

This commit is contained in:
lightyen 2022-09-24 02:12:57 +08:00 committed by GitHub
parent 5ea752e85c
commit d77b9cec18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -284,7 +284,10 @@ module.exports = {
'2xl': '0 25px 25px rgb(0 0 0 / 0.15)',
none: '0 0 #0000',
},
fill: ({ theme }) => theme('colors'),
fill: ({ theme }) => ({
...theme('colors'),
none: 'none',
}),
grayscale: {
0: '0',
DEFAULT: '100%',
@ -793,7 +796,10 @@ module.exports = {
space: ({ theme }) => ({
...theme('spacing'),
}),
stroke: ({ theme }) => theme('colors'),
stroke: ({ theme }) => ({
...theme('colors'),
none: 'none',
}),
strokeWidth: {
0: '0',
1: '1',