home / skills / andrelandgraf / fullstackrecipes / shadcn-ui-setup
This skill helps you set up Shadcn UI with dark mode support using next-themes, including theme provider and CSS variables configuration.
npx playbooks add skill andrelandgraf/fullstackrecipes --skill shadcn-ui-setupReview the files below or copy the command above to add this skill to your agents.
---
name: shadcn-ui-setup
description: Add Shadcn UI components with dark mode support using next-themes. Includes theme provider and CSS variables configuration.
---
# Shadcn UI & Theming
To set up Shadcn UI & Theming, refer to the fullstackrecipes MCP server resource:
**Resource URI:** `recipe://fullstackrecipes.com/shadcn-ui-setup`
If the MCP server is not configured, fetch the recipe directly:
```bash
curl -H "Accept: text/plain" https://fullstackrecipes.com/api/recipes/shadcn-ui-setup
```
This skill adds Shadcn UI components and configures app-level theming with dark mode support using next-themes. It wires a ThemeProvider, sets up CSS variables for tokens, and provides a clear integration path for TypeScript Next.js projects. The goal is production-ready UI patterns that work with server and client rendering.
The skill installs and configures Shadcn UI components, then injects a ThemeProvider wrapper to manage theme state via next-themes. It also generates or updates a CSS variables file and applies theme-aware styles so components automatically respond to light and dark modes. Integration points include app layout, global styles, and a simple toggle component for switching themes.
Does this require next-themes?
Yes. next-themes manages theme state and persistence; the skill configures it with a ThemeProvider wrapper.
Will themes work with server-side rendering?
The setup is SSR-aware. Use the ThemeProvider at the root and a client-only toggle to avoid hydration mismatches.