@thorprovider/create-thor-app 4.1.7 → 4.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -45,6 +45,11 @@ ALWAYS import from @thorprovider/types — NEVER define Product, Cart, Collectio
|
|
|
45
45
|
- Do NOT replace the commerce runtime globally with local demo data
|
|
46
46
|
- Do NOT gate storefront rendering on environment-variable checks
|
|
47
47
|
|
|
48
|
+
## Dark Mode
|
|
49
|
+
ThemeProvider is pre-configured in `app-providers.tsx` — do NOT create a new `theme-provider.tsx`.
|
|
50
|
+
Toggle theme with `useTheme()` from 'next-themes': `const { setTheme } = useTheme()`.
|
|
51
|
+
Dark mode tokens are in `styles/tokens.css` under `.dark { ... }` — use CSS variables, never hardcode colors.
|
|
52
|
+
|
|
48
53
|
## Stack
|
|
49
54
|
Next.js 16, React 19, TS strict, Tailwind 4, shadcn/ui.
|
|
50
55
|
Server Components default. 'use client' only for interactivity.
|