Primitive
CLI registryTheme Provider
App-level next-themes wrapper. No visible chrome of its own - mount once at the root so ThemeToggle and dark tokens work.
Preview → install → use
01
Preview
npx shadcn@latest add @atroui/theme-providerProvider
ThemeProvider is active
Card
Surfaces use design tokens that flip with light / dark.
Muted
Try Light / System / Dark with the toggle.
BrandSource lands in your repo. Setup: Installation · Registry catalog.
02
Usage
Wrap the app root once with enableSystem so ThemeToggle’s System option follows prefers-color-scheme. Docs already mounts it this way.
Theme Provider