From 3acec894c3f4824caa4586e23730e0beddf04c07 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Sat, 25 Sep 2021 07:24:34 -0400 Subject: [PATCH] Add `inherit` to color palette 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 --- 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 89f7136d4c98..51528735f4d6 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 98f7fc9b699c..80abe1896ec9 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,