Skip to content
Design System Supply Chain

theme

CSS-only multi-theme engine — six oklch presets toggled by data-theme attribute. No JavaScript on the critical path.

packages/design/theme · Source ↗ · Docs ↗

In code

theme.tsx
1import { ThemeProvider } from "@nebutra/tokens";
2
3export function RootLayout({ children }: { children: React.ReactNode }) {
4  return (
5    <html suppressHydrationWarning>
6      <body>
7        <ThemeProvider attribute="class" defaultTheme="system" enableSystem>
8          {children}
9        </ThemeProvider>
10      </body>
11    </html>
12  );
13}