From 817f3f2e5d3a76a2a231f542bc5e23376aea7f89 Mon Sep 17 00:00:00 2001 From: Fabien MARIE-LOUISE Date: Fri, 28 Apr 2023 14:36:28 +0200 Subject: [PATCH] feat(tailwind): remove warnings --- .changeset/proud-fireants-double.md | 5 +++++ packages/tailwindcss/src/colors.ts | 6 ++++++ packages/tailwindcss/src/index.ts | 2 -- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .changeset/proud-fireants-double.md diff --git a/.changeset/proud-fireants-double.md b/.changeset/proud-fireants-double.md new file mode 100644 index 00000000..816830f2 --- /dev/null +++ b/.changeset/proud-fireants-double.md @@ -0,0 +1,5 @@ +--- +"@kobalte/tailwindcss": patch +--- + +fix: remove tailwind warnings diff --git a/packages/tailwindcss/src/colors.ts b/packages/tailwindcss/src/colors.ts index 7904f5eb..098f1077 100644 --- a/packages/tailwindcss/src/colors.ts +++ b/packages/tailwindcss/src/colors.ts @@ -7,6 +7,12 @@ */ export const DEFAULT_COLORS = { + inherit: "inherit", + current: "currentColor", + transparent: "transparent", + black: "#000", + white: "#fff", + /* Pure gray. */ gray: { 50: "#fafafa", diff --git a/packages/tailwindcss/src/index.ts b/packages/tailwindcss/src/index.ts index 330aeaa5..cf75f679 100644 --- a/packages/tailwindcss/src/index.ts +++ b/packages/tailwindcss/src/index.ts @@ -6,7 +6,6 @@ * https://github.com/tailwindlabs/headlessui/blob/8e1e19f94c28af68c05becc80bf89575e1fa1d36/packages/@headlessui-tailwindcss/src/index.ts */ -import twColors from "tailwindcss/colors"; import plugin from "tailwindcss/plugin"; import { DEFAULT_COLORS } from "./colors"; @@ -95,7 +94,6 @@ export default plugin.withOptions( return { theme: { colors: { - ...twColors, ...DEFAULT_COLORS, }, },