From 4efc5971f791ca8ffb3397a02938fe4d24e1d2fc Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Sun, 26 Sep 2021 10:09:43 -0400 Subject: [PATCH] Add `inherit` to color palette (#5597) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Re-implementation of #2706. Co-Authored-By: Jorge González Co-authored-by: Jorge González --- src/public/colors.js | 3 ++- stubs/defaultConfig.stub.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/public/colors.js b/src/public/colors.js index 89f7136d4..51528735f 100644 --- a/src/public/colors.js +++ b/src/public/colors.js @@ -13,8 +13,9 @@ function warn({ version, from, to }) { } export default { - transparent: 'transparent', + inherit: 'inherit', current: 'currentColor', + transparent: 'transparent', black: '#000', white: '#fff', slate: { diff --git a/stubs/defaultConfig.stub.js b/stubs/defaultConfig.stub.js index 98f7fc9b6..80abe1896 100644 --- a/stubs/defaultConfig.stub.js +++ b/stubs/defaultConfig.stub.js @@ -11,8 +11,9 @@ module.exports = { '2xl': '1536px', }, colors: ({ colors }) => ({ - transparent: colors.transparent, + inherit: colors.inherit, current: colors.current, + transparent: colors.transparent, black: colors.black, white: colors.white, slate: colors.slate,