Shadcn Theme Generator
Generate a custom theme for your shadcn/ui project.
Buttons
Card
Notifications
You have 3 unread messages.
Push Notifications
Send notifications to your device.
Form Controls
Accordion
Alerts & Badges
Heads up!
You can add components to your app using the cli.
Default
Secondary
Outline
Destructive
Tabs
Make changes to your account here.
Slider & DropdownMenu
Dialog
Code Block
// Example Theme const theme = { colors: { primary: "hsl(var(--primary))", background: "hsl(var(--background))", card: "hsl(var(--card))" }, borderRadius: "var(--radius)", fontFamily: "var(--font-sans)" };
Charts
Monthly Revenue
Bar chart visualization
Product Distribution
Pie chart breakdown
Growth Trend
6-month performance
Current theme mode: light
CSS Variables
/* LIGHT MODE THEME */ :root { --primary: 221.2 83.2% 53.3%; --primary-foreground: 210 40% 98%; --secondary: 210 40% 96.1%; --secondary-foreground: 222.2 47.4% 11.2%; --accent: 210 40% 96.1%; --accent-foreground: 222.2 47.4% 11.2%; --muted: 210 40% 96.1%; --muted-foreground: 215.4 16.3% 46.9%; --destructive: 0 84.2% 60.2%; --destructive-foreground: 210 40% 98%; --card: 0 0% 100%; --card-foreground: 222.2 47.4% 11.2%; --popover: 0 0% 100%; --popover-foreground: 222.2 47.4% 11.2%; --border: 214.3 31.8% 91.4%; --input: 214.3 31.8% 91.4%; --background: 0 0% 100%; --foreground: 222.2 47.4% 11.2%; --ring: 221.2 83.2% 53.3%; --chart1: 12 76% 61%; --chart2: 173 58% 39%; --chart3: 197 37% 24%; --chart4: 43 74% 66%; --chart5: 27 87% 67%; --radius: 0.5rem; --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; } .dark { :root { --primary: 217.2 91.2% 59.8%; --primary-foreground: 210 40% 98%; --secondary: 217.2 32.6% 17.5%; --secondary-foreground: 210 40% 98%; --accent: 217.2 32.6% 17.5%; --accent-foreground: 210 40% 98%; --muted: 217.2 32.6% 17.5%; --muted-foreground: 215 20.2% 65.1%; --destructive: 0 62.8% 30.6%; --destructive-foreground: 210 40% 98%; --card: 222.2 84% 4.9%; --card-foreground: 210 40% 98%; --popover: 222.2 84% 4.9%; --popover-foreground: 210 40% 98%; --border: 217.2 32.6% 17.5%; --input: 217.2 32.6% 17.5%; --background: 222.2 84% 4.9%; --foreground: 210 40% 98%; --ring: 217.2 91.2% 59.8%; --chart1: 220 70% 50%; --chart2: 160 60% 45%; --chart3: 30 80% 55%; --chart4: 280 65% 60%; --chart5: 340 75% 55%; --radius: 0.5rem; --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; } }
Tailwind Config
/** @type {import('tailwindcss').Config} */ module.exports = { darkMode: ["class"], theme: { extend: { colors: { border: "hsl(var(--border))", input: "hsl(var(--input))", ring: "hsl(var(--ring))", background: "hsl(var(--background))", foreground: "hsl(var(--foreground))", primary: { DEFAULT: "hsl(var(--primary))", foreground: "hsl(var(--primary-foreground))", }, secondary: { DEFAULT: "hsl(var(--secondary))", foreground: "hsl(var(--secondary-foreground))", }, destructive: { DEFAULT: "hsl(var(--destructive))", foreground: "hsl(var(--destructive-foreground))", }, muted: { DEFAULT: "hsl(var(--muted))", foreground: "hsl(var(--muted-foreground))", }, accent: { DEFAULT: "hsl(var(--accent))", foreground: "hsl(var(--accent-foreground))", }, popover: { DEFAULT: "hsl(var(--popover))", foreground: "hsl(var(--popover-foreground))", }, card: { DEFAULT: "hsl(var(--card))", foreground: "hsl(var(--card-foreground))", }, }, borderRadius: { lg: "var(--radius)", md: "calc(var(--radius) - 0.125rem)", sm: "calc(var(--radius) - 0.25rem)", }, fontFamily: { sans: ["var(--font-sans)"], mono: ["var(--font-mono)"], }, }, }, };
© 2018 - 2025 Bankside Partners Ltd.