radix-ui-themes-with-tailwind
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -5,5 +5,3 @@ import * as tailwindcss_types_config from 'tailwindcss/types/config'; | ||
type RadixColors = Exclude<(typeof radixTheme.themeAccentColorsOrdered)[number] | (typeof radixTheme.themeGrayColorsGrouped)[0]["values"][number], "auto">; | ||
declare const tailwindColorsToRadixMap: Record<"zinc" | "neutral" | "stone" | "emerald" | "fuchsia" | "rose", // missing colors names in radix colors | ||
// missing colors names in radix colors | ||
RadixColors | Record<string, string>>; | ||
declare const tailwindColorsToRadixMap: Record<"zinc" | "neutral" | "stone" | "emerald" | "fuchsia" | "rose", RadixColors | Record<string, string>>; | ||
declare const radixThemePlugin: { | ||
@@ -13,3 +11,3 @@ (options: { | ||
useTailwindRadiusNames?: boolean; | ||
mapMissingTailwindColors?: boolean | typeof tailwindColorsToRadixMap; | ||
mapMissingTailwindColors?: boolean | Partial<typeof tailwindColorsToRadixMap>; | ||
}): { | ||
@@ -16,0 +14,0 @@ handler: tailwindcss_types_config.PluginCreator; |
{ | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"name": "radix-ui-themes-with-tailwind", | ||
@@ -4,0 +4,0 @@ "description": "Tailwind plugin for Radix Themes", |
@@ -49,3 +49,3 @@ import plugin from "tailwindcss/plugin"; | ||
const tailwindColorsToRadixMap: Record< | ||
"zinc" | "neutral" | "stone" | "emerald" | "fuchsia" | "rose", // missing colors names in radix colors | ||
"zinc" | "neutral" | "stone" | "emerald" | "fuchsia" | "rose", | ||
RadixColors | Record<string, string> | ||
@@ -85,3 +85,5 @@ > = { | ||
useTailwindRadiusNames?: boolean; | ||
mapMissingTailwindColors?: boolean | typeof tailwindColorsToRadixMap; | ||
mapMissingTailwindColors?: | ||
| boolean | ||
| Partial<typeof tailwindColorsToRadixMap>; | ||
} = {}) => { | ||
@@ -88,0 +90,0 @@ return function () {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
79418