From f9fb2cec12b06dbd312d718cc4b28b7e3a2fa229 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Wed, 3 Nov 2021 10:51:57 -0400 Subject: [PATCH] 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 ``` 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 ``` Giddy up. --- stubs/defaultConfig.stub.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stubs/defaultConfig.stub.js b/stubs/defaultConfig.stub.js index fb86c38e9..2fa76ad9b 100644 --- a/stubs/defaultConfig.stub.js +++ b/stubs/defaultConfig.stub.js @@ -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%', @@ -788,9 +788,7 @@ module.exports = { space: ({ theme }) => ({ ...theme('spacing'), }), - stroke: { - current: 'currentColor', - }, + stroke: ({ theme }) => theme('colors'), strokeWidth: { 0: '0', 1: '1',