Skip to content

Commit f9fb2ce

Browse files
authored
Add full color palette for fill/stroke (#5933)
Historically we've only included `fill-current` and `stroke-current` due to file size considerations, and recommended combining them with text color utilities like this: ```html <svg class="fill-current text-blue-500"> ``` With the JIT engine, there's no real reason for this anymore, so this PR enables all colors by default, allowing you to write this out of the box instead: ```html <svg class="fill-blue-500"> ``` Giddy up.
1 parent ec1f7b0 commit f9fb2ce

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stubs/defaultConfig.stub.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ module.exports = {
279279
'2xl': '0 25px 25px rgb(0 0 0 / 0.15)',
280280
none: '0 0 #0000',
281281
},
282-
fill: { current: 'currentColor' },
282+
fill: ({ theme }) => theme('colors'),
283283
grayscale: {
284284
0: '0',
285285
DEFAULT: '100%',
@@ -788,9 +788,7 @@ module.exports = {
788788
space: ({ theme }) => ({
789789
...theme('spacing'),
790790
}),
791-
stroke: {
792-
current: 'currentColor',
793-
},
791+
stroke: ({ theme }) => theme('colors'),
794792
strokeWidth: {
795793
0: '0',
796794
1: '1',

0 commit comments

Comments
 (0)