✳️ 681+ shadcn/ui Blocks, lifetime updates, unlimited projects — Get 50+ fresh blocks every month ✳️ 👇
See Components →

TweakCN

Free

Real-time Tailwind theme tweaker

TweakCN Image 1
Details About TweakCN
Key points:
  • Design Templates
  • Code Export

TweakCN shadcn/ui Themes: Perpetuity

What Is the TweakCN?

TweakCN is a web-based, no-code theme editor built specifically for shadcn/ui components. It gives you sliders, color pickers and live previews so you can brand an entire React app without touching a config file. When you’re happy, one click exports the necessary Tailwind CSS variables (v3 or v4) that plug straight into your project.

shadcn/ui Themes

Features ✨

  • Real-time visual preview — see every color or radius change the moment you move the slider.

  • Tailwind v3 & v4 compatible — flip between versions and even OKLCH/HSL color modes.

  • Global palette control for primary, secondary, accent, base, card, sidebar and chart colors.

  • Typography tweaks from weight to size with instant accessibility contrast checks.

  • Preset themes — start from beautifully curated light or dark schemes, then fine-tune

  • One-click code generation & sharing via export or shareable URL.

Pros and Cons

Pros ✅

  • No code needed—perfect for designers who don’t want to touch Tailwind configs.

  • Lightning-fast theming with instant feedback.

  • Open-source project with active GitHub community (6k+ stars).

  • Generates production-ready CSS variables you can drop straight into shadcn/ui.

Cons ⚠️

  • Focused solely on shadcn/ui—won’t theme other component libraries today.

  • Still in rapid development; occasional bugs pop up in new Tailwind releases.

  • Limited typography controls compared to full design-system tools.

  • Requires basic Tailwind knowledge to wire the exported variables into your project.

Integration

  • Exported CSS variables drop into tailwind.config.js or the new Tailwind v4 theme file.

  • Works out-of-the-box with shadcn/ui components in React, Next.js, Remix or Blitz apps.

  • Shareable URLs make it easy to stash themes in Notion or Slack.

  • Generates a JSON preset you can version-control alongside your code.

Example Theme

:root {
  --background: oklch(0.9491 0.0085 197.0126);
  --foreground: oklch(0.3772 0.0619 212.6640);
  --card: oklch(0.9724 0.0053 197.0692);
  --card-foreground: oklch(0.3772 0.0619 212.6640);
  --popover: oklch(0.9724 0.0053 197.0692);
  --popover-foreground: oklch(0.3772 0.0619 212.6640);
  --primary: oklch(0.5624 0.0947 203.2755);
  --primary-foreground: oklch(1.0000 0 0);
  --secondary: oklch(0.9244 0.0181 196.8450);
  --secondary-foreground: oklch(0.3772 0.0619 212.6640);
  --muted: oklch(0.9295 0.0107 196.9723);
  --muted-foreground: oklch(0.5428 0.0594 201.5662);
  --accent: oklch(0.9021 0.0297 201.8915);
  --accent-foreground: oklch(0.3772 0.0619 212.6640);
  --destructive: oklch(0.5732 0.1901 25.5409);
  --destructive-foreground: oklch(1.0000 0 0);
  --border: oklch(0.8931 0.0205 204.4136);
  --input: oklch(0.9244 0.0181 196.8450);
  --ring: oklch(0.5624 0.0947 203.2755);
  --chart-1: oklch(0.5624 0.0947 203.2755);
  --chart-2: oklch(0.6389 0.1029 201.5918);
  --chart-3: oklch(0.7124 0.1075 201.2486);
  --chart-4: oklch(0.7701 0.0979 201.1816);
  --chart-5: oklch(0.8336 0.0771 200.9702);
  --sidebar: oklch(0.9280 0.0183 205.3151);
  --sidebar-foreground: oklch(0.3772 0.0619 212.6640);
  --sidebar-primary: oklch(0.5624 0.0947 203.2755);
  --sidebar-primary-foreground: oklch(1.0000 0 0);
  --sidebar-accent: oklch(0.9021 0.0297 201.8915);
  --sidebar-accent-foreground: oklch(0.3772 0.0619 212.6640);
  --sidebar-border: oklch(0.8931 0.0205 204.4136);
  --sidebar-ring: oklch(0.5624 0.0947 203.2755);
  --font-sans: Courier New, monospace;
  --font-serif: Courier New, monospace;
  --font-mono: Courier New, monospace;
  --radius: 0.125rem;
  --shadow-2xs: 1px 1px 2px 0px hsl(185 70% 30% / 0.07);
  --shadow-xs: 1px 1px 2px 0px hsl(185 70% 30% / 0.07);
  --shadow-sm: 1px 1px 2px 0px hsl(185 70% 30% / 0.15), 1px 1px 2px -1px hsl(185 70% 30% / 0.15);
  --shadow: 1px 1px 2px 0px hsl(185 70% 30% / 0.15), 1px 1px 2px -1px hsl(185 70% 30% / 0.15);
  --shadow-md: 1px 1px 2px 0px hsl(185 70% 30% / 0.15), 1px 2px 4px -1px hsl(185 70% 30% / 0.15);
  --shadow-lg: 1px 1px 2px 0px hsl(185 70% 30% / 0.15), 1px 4px 6px -1px hsl(185 70% 30% / 0.15);
  --shadow-xl: 1px 1px 2px 0px hsl(185 70% 30% / 0.15), 1px 8px 10px -1px hsl(185 70% 30% / 0.15);
  --shadow-2xl: 1px 1px 2px 0px hsl(185 70% 30% / 0.38);
  --tracking-normal: 0em;
  --spacing: 0.25rem;
}

.dark {
  --background: oklch(0.2068 0.0247 224.4533);
  --foreground: oklch(0.8520 0.1269 195.0354);
  --card: oklch(0.2293 0.0276 216.0674);
  --card-foreground: oklch(0.8520 0.1269 195.0354);
  --popover: oklch(0.2293 0.0276 216.0674);
  --popover-foreground: oklch(0.8520 0.1269 195.0354);
  --primary: oklch(0.8520 0.1269 195.0354);
  --primary-foreground: oklch(0.2068 0.0247 224.4533);
  --secondary: oklch(0.3775 0.0564 216.5010);
  --secondary-foreground: oklch(0.8520 0.1269 195.0354);
  --muted: oklch(0.2894 0.0412 218.8153);
  --muted-foreground: oklch(0.6611 0.0975 195.0526);
  --accent: oklch(0.3775 0.0564 216.5010);
  --accent-foreground: oklch(0.8520 0.1269 195.0354);
  --destructive: oklch(0.6168 0.2086 25.8088);
  --destructive-foreground: oklch(0.9612 0 0);
  --border: oklch(0.3775 0.0564 216.5010);
  --input: oklch(0.3775 0.0564 216.5010);
  --ring: oklch(0.8520 0.1269 195.0354);
  --chart-1: oklch(0.8520 0.1269 195.0354);
  --chart-2: oklch(0.6611 0.0975 195.0526);
  --chart-3: oklch(0.5804 0.0849 195.0673);
  --chart-4: oklch(0.4269 0.0630 202.6247);
  --chart-5: oklch(0.3142 0.0455 204.1575);
  --sidebar: oklch(0.2068 0.0247 224.4533);
  --sidebar-foreground: oklch(0.8520 0.1269 195.0354);
  --sidebar-primary: oklch(0.8520 0.1269 195.0354);
  --sidebar-primary-foreground: oklch(0.2068 0.0247 224.4533);
  --sidebar-accent: oklch(0.3775 0.0564 216.5010);
  --sidebar-accent-foreground: oklch(0.8520 0.1269 195.0354);
  --sidebar-border: oklch(0.3775 0.0564 216.5010);
  --sidebar-ring: oklch(0.8520 0.1269 195.0354);
  --font-sans: Source Code Pro, monospace;
  --font-serif: Source Code Pro, monospace;
  --font-mono: Source Code Pro, monospace;
  --radius: 0.125rem;
  --shadow-2xs: 1px 1px 2px 0px hsl(180 70% 60% / 0.10);
  --shadow-xs: 1px 1px 2px 0px hsl(180 70% 60% / 0.10);
  --shadow-sm: 1px 1px 2px 0px hsl(180 70% 60% / 0.20), 1px 1px 2px -1px hsl(180 70% 60% / 0.20);
  --shadow: 1px 1px 2px 0px hsl(180 70% 60% / 0.20), 1px 1px 2px -1px hsl(180 70% 60% / 0.20);
  --shadow-md: 1px 1px 2px 0px hsl(180 70% 60% / 0.20), 1px 2px 4px -1px hsl(180 70% 60% / 0.20);
  --shadow-lg: 1px 1px 2px 0px hsl(180 70% 60% / 0.20), 1px 4px 6px -1px hsl(180 70% 60% / 0.20);
  --shadow-xl: 1px 1px 2px 0px hsl(180 70% 60% / 0.20), 1px 8px 10px -1px hsl(180 70% 60% / 0.20);
  --shadow-2xl: 1px 1px 2px 0px hsl(180 70% 60% / 0.50);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);

  --font-sans: var(--font-sans);
  --font-mono: var(--font-mono);
  --font-serif: var(--font-serif);

  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  --shadow-2xs: var(--shadow-2xs);
  --shadow-xs: var(--shadow-xs);
  --shadow-sm: var(--shadow-sm);
  --shadow: var(--shadow);
  --shadow-md: var(--shadow-md);
  --shadow-lg: var(--shadow-lg);
  --shadow-xl: var(--shadow-xl);
  --shadow-2xl: var(--shadow-2xl);
}

FAQ

Is TweakCN free?

Yes—core features are free; advanced functionality may arrive in a paid tier later.

Can I use my theme in Tailwind v3 projects?

Absolutely, there’s a toggle for v3 vs v4 variables.

Does it support dark mode?

Every preset ships with matching light/dark values, and you can customize both.

Where is the code hosted?

On GitHub under the Apache-2.0 license—fork it or contribute anytime.

Featured Developer Tools

Browse 100+ Tailwind CSS developer tools—generators, color pickers, gradient makers, VS Code snippets and more.

Shuffle HOT

Drag-drop Tailwind builder with Laravel export

LaunchFast

Complete SaaS starter kits for Astro, Next.js & SvelteKit

Shipixen

Instant Next.js boilerplates for blogs & landing pages