Smooth for shadcn/ui

Smooth is a shadcn/ui theme built around a muted deep green primary color (#3a3d34) with muted light green accents (#d5d8cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#3a3d34) on a neutral background (#060703).

Color palette

TokenLightDark
Background
#ffffffwhite
#060703black
Foreground
#060802black
#fdfdfbsnow
Card
#fcfcfcsnow
#090b04black
Card foreground
#030401black
#ffffffwhite
Popover
#ffffffwhite
#060703black
Popover foreground
#060802black
#fdfdfbsnow
Primary
#3a3d34darkslategray
#3a3d34darkslategray
Primary foreground
#d2d5cdlightgrey
#d2d5cdlightgrey
Secondary
#d5d8cflightgrey
#1d1f19black
Secondary foreground
#3d4134darkslategray
#b8bdadsilver
Muted
#e9e9e7linen
#171816black
Muted foreground
#484e3cdarkslategray
#bdc3b1silver
Accent
#d5d8cflightgrey
#1d1f19black
Accent foreground
#3d4134darkslategray
#b8bdadsilver
Destructive
#a02a0dfirebrick
#ef613etomato
Destructive foreground
#fde8e3mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3a3d34darkslategray
#3a3d34darkslategray

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.12:1AAA
Text on card20.11:1AAA
Primary button7.50:1AAA
Secondary button7.28:1AAA
Muted text7.11:1AAA
Accent7.28:1AAA
Destructive6.26:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.78:1AAA
Primary button7.50:1AAA
Secondary button8.64:1AAA
Muted text9.81:1AAA
Accent8.64:1AAA
Destructive6.46:1AA

CSS variables

Paste this into your globals.css to use Smooth in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.129 0.02 121.134);
  --muted: oklch(0.934 0.004 121.558);
  --muted-foreground: oklch(0.412 0.03 122.684);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.129 0.02 121.134);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.103 0.016 121.134);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.353 0.016 122.216);
  --primary-foreground: oklch(0.868 0.01 121.684);
  --secondary: oklch(0.878 0.013 121.738);
  --secondary-foreground: oklch(0.367 0.022 122.482);
  --accent: oklch(0.878 0.013 121.738);
  --accent-foreground: oklch(0.367 0.022 122.482);
  --destructive: oklch(0.47 0.159 34.191);
  --destructive-foreground: oklch(0.946 0.024 34.298);
  --ring: oklch(0.353 0.016 122.216);
  --chart-1: oklch(0.353 0.016 122.216);
  --chart-2: oklch(0.878 0.013 121.738);
  --chart-3: oklch(0.878 0.013 121.738);
  --chart-4: oklch(0.9 0.011 121.688);
  --chart-5: oklch(0.357 0.021 122.474);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.015 121.215);
  --foreground: oklch(0.994 0.003 121.535);
  --muted: oklch(0.208 0.006 121.92);
  --muted-foreground: oklch(0.808 0.025 122.004);
  --popover: oklch(0.126 0.015 121.215);
  --popover-foreground: oklch(0.994 0.003 121.535);
  --card: oklch(0.144 0.017 121.33);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.353 0.016 122.216);
  --primary-foreground: oklch(0.868 0.01 121.684);
  --secondary: oklch(0.235 0.012 122.317);
  --secondary-foreground: oklch(0.79 0.023 121.97);
  --accent: oklch(0.235 0.012 122.317);
  --accent-foreground: oklch(0.79 0.023 121.97);
  --destructive: oklch(0.669 0.183 35.165);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.353 0.016 122.216);
  --chart-1: oklch(0.353 0.016 122.216);
  --chart-2: oklch(0.235 0.012 122.317);
  --chart-3: oklch(0.235 0.012 122.317);
  --chart-4: oklch(0.27 0.015 122.377);
  --chart-5: oklch(0.357 0.021 122.474);
}