Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add full color palette for fill/stroke
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.
  • Loading branch information
adamwathan committed Oct 29, 2021
commit 50c0b57a297f318ee10ad65b3787b6bc9ae99b76
6 changes: 2 additions & 4 deletions stubs/defaultConfig.stub.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ module.exports = {
'2xl': '0 25px 25px rgb(0 0 0 / 0.15)',
none: '0 0 #0000',
},
fill: { current: 'currentColor' },
fill: ({ theme }) => theme('colors'),
grayscale: {
0: '0',
DEFAULT: '100%',
Expand Down Expand Up @@ -788,9 +788,7 @@ module.exports = {
space: ({ theme }) => ({
...theme('spacing'),
}),
stroke: {
current: 'currentColor',
},
stroke: ({ theme }) => theme('colors'),
strokeWidth: {
0: '0',
1: '1',
Expand Down