UNPKG

theme-o-rama

Version:

A TypeScript library for dynamic theme management in react + shadcn + tailwind applications

14 lines (13 loc) 640 B
import colorJson from "./color.json" with { type: "json" }; import darkJson from "./dark.json" with { type: "json" }; import lightJson from "./light.json" with { type: "json" }; import { validateTheme } from "./theme-schema-validation.js"; import { applyTheme, applyThemeIsolated } from "./theme.js"; export { SimpleThemeProvider, useSimpleTheme } from "./simple-theme-context.js"; export { ThemeProvider, useTheme } from "./theme-context.js"; export * from "./theme.type.js"; export { applyTheme, applyThemeIsolated }; export const dark = darkJson; export const light = lightJson; export const color = colorJson; export { validateTheme };