You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add "Using with Vite" docs page for non-Next.js setups
- Add Dashboard, Data Tables, Settings, Empty & Loading pattern pages
- Move docs-only deps to devDependencies (removes Next.js transitive dep)
- Fix HTML nesting error on themes page
The package is now fully Vite-compatible with zero Next.js dependencies.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CLAUDE.md
+70Lines changed: 70 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -713,6 +713,76 @@ export default function RootLayout({ children }) {
713
713
}
714
714
```
715
715
716
+
#### Using with Vite (Non-Next.js Projects)
717
+
718
+
The design system is fully compatible with Vite, Create React App, and other non-Next.js setups. The only difference is handling dark mode yourself instead of using `next-themes`.
719
+
720
+
```tsx
721
+
// main.tsx or App.tsx
722
+
import {useState, useEffect} from "react"
723
+
import {DesignSystemProvider, Button, Card} from "@sourceful-energy/ui"
724
+
import "@sourceful-energy/ui/styles.css" // MUST be imported
725
+
import "./index.css" // Your styles second
726
+
727
+
function App() {
728
+
// Handle dark mode yourself (replaces next-themes)
0 commit comments