@nextui-org/theme
Advanced tools
Comparing version 0.0.0-dev-v2-20230326125142 to 0.0.0-dev-v2-20230326130503
@@ -27,3 +27,3 @@ export { AvatarSlots, AvatarVariantProps, avatar } from './components/avatar.js'; | ||
export { colors } from './colors/index.js'; | ||
export { Colors, ColorsWithScheme, ConfigFunction, ConfigObject, DefaultTheme, NextUIConfig, nextui, resolveConfig } from './plugin.js'; | ||
export { Colors, ColorsWithScheme, ConfigFunction, ConfigObject, DefaultThemeType, NextUIConfig, nextui } from './plugin.js'; | ||
export { VariantProps, tv } from 'tailwind-variants'; | ||
@@ -30,0 +30,0 @@ export { BaseColors, ColorScale, SemanticBaseColors, SemanticColors } from './colors/types.js'; |
@@ -17,3 +17,3 @@ import * as tailwindcss from 'tailwindcss'; | ||
type SchemerFn<T> = (colors: Colors) => ColorsWithScheme<T>; | ||
type DefaultTheme = "light" | "dark"; | ||
type DefaultThemeType = "light" | "dark"; | ||
type ConfigObject = Record<string, ColorsWithScheme<"light" | "dark">>; | ||
@@ -33,15 +33,4 @@ type ConfigFunction = ({ light, dark, }: { | ||
*/ | ||
defaultTheme?: DefaultTheme; | ||
defaultTheme?: DefaultThemeType; | ||
}; | ||
declare const resolveConfig: (config: ConfigObject | ConfigFunction | undefined, defaultTheme: DefaultTheme) => { | ||
variants: { | ||
name: string; | ||
definition: string[]; | ||
}[]; | ||
utilities: Record<string, Record<string, any>>; | ||
colors: Record<string, ({ opacityValue, opacityVariable }: { | ||
opacityValue: string; | ||
opacityVariable: string; | ||
}) => string>; | ||
}; | ||
declare const nextui: (config?: NextUIConfig) => { | ||
@@ -52,2 +41,2 @@ handler: tailwindcss_types_config.PluginCreator; | ||
export { Colors, ColorsWithScheme, ConfigFunction, ConfigObject, DefaultTheme, NextUIConfig, nextui, resolveConfig }; | ||
export { Colors, ColorsWithScheme, ConfigFunction, ConfigObject, DefaultThemeType, NextUIConfig, nextui }; |
@@ -29,4 +29,3 @@ "use strict"; | ||
__export(plugin_exports, { | ||
nextui: () => nextui, | ||
resolveConfig: () => resolveConfig | ||
nextui: () => nextui | ||
}); | ||
@@ -570,4 +569,3 @@ module.exports = __toCommonJS(plugin_exports); | ||
0 && (module.exports = { | ||
nextui, | ||
resolveConfig | ||
nextui | ||
}); |
{ | ||
"name": "@nextui-org/theme", | ||
"version": "0.0.0-dev-v2-20230326125142", | ||
"version": "0.0.0-dev-v2-20230326130503", | ||
"description": "The default theme for NextUI components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
550084
22819