Skip to content

Commit

Permalink
feat(tailwind): remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien-ml committed Apr 28, 2023
1 parent 025872f commit 817f3f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-fireants-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kobalte/tailwindcss": patch
---

fix: remove tailwind warnings
6 changes: 6 additions & 0 deletions packages/tailwindcss/src/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
*/

export const DEFAULT_COLORS = {
inherit: "inherit",
current: "currentColor",
transparent: "transparent",
black: "#000",
white: "#fff",

/* Pure gray. */
gray: {
50: "#fafafa",
Expand Down
2 changes: 0 additions & 2 deletions packages/tailwindcss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -95,7 +94,6 @@ export default plugin.withOptions<KobalteTailwindPluginOptions>(
return {
theme: {
colors: {
...twColors,
...DEFAULT_COLORS,
},
},
Expand Down

0 comments on commit 817f3f2

Please sign in to comment.