UNPKG

@metamask/design-system-twrnc-preset

Version:
10 lines 410 B
import { createContext } from "react"; import { create } from "twrnc"; import { generateTailwindConfig } from "./tailwind.config.mjs"; import { Theme } from "./Theme.types.mjs"; export const defaultThemeContextValue = { tw: create(generateTailwindConfig(Theme.Light)), theme: Theme.Light, }; export const ThemeContext = createContext(defaultThemeContextValue); //# sourceMappingURL=ThemeContext.mjs.map