Smooth for shadcn/ui

Smooth is a shadcn/ui theme built around a near-white primary color (#fcfdfd) with near-white accents (#fcfcfd). The light mode uses a neutral background (#f7fcfc). Dark mode keeps the near-white primary (#fcfdfd) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#f7fcfcmintcream
#030707black
Foreground
#051314black
#ffffffwhite
Card
#f4fafbmintcream
#050a0bblack
Card foreground
#040f10black
#ffffffwhite
Popover
#f4fafbmintcream
#050a0bblack
Popover foreground
#040f10black
#ffffffwhite
Primary
#fcfdfdwhite
#fcfdfdwhite
Primary foreground
#2d3334darkslategray
#2d3334darkslategray
Secondary
#fcfdfcwhite
#fcfdfcwhite
Secondary foreground
#2d3431darkslategray
#2d3431darkslategray
Muted
#dce0degainsboro
#1f2322black
Muted foreground
#4f5955darkslategray
#a6b0acdarkgray
Accent
#fcfcfdwhite
#fcfcfdwhite
Accent foreground
#5b626bdimgray
#5b626bdimgray
Destructive
#8a0500darkred
#ff2b24orangered
Destructive foreground
#ffbfbdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcfdfdwhite
#fcfdfdwhite

Contrast

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

Light mode
Text on background18.27:1AAA
Text on card18.43:1AAA
Primary button12.57:1AAA
Secondary button12.48:1AAA
Muted text5.44:1AA
Accent6.03:1AA
Destructive6.41:1AA
Dark mode
Text on background20.27:1AAA
Text on card19.92:1AAA
Primary button12.57:1AAA
Secondary button12.48:1AAA
Muted text7.12:1AAA
Accent6.03:1AA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 206.412);
  --foreground: oklch(0.173 0.02 205.977);
  --muted: oklch(0.903 0.005 171.439);
  --muted-foreground: oklch(0.455 0.014 170.667);
  --popover: oklch(0.981 0.007 206.398);
  --popover-foreground: oklch(0.157 0.018 205.272);
  --card: oklch(0.981 0.007 206.398);
  --card-foreground: oklch(0.157 0.018 205.272);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.993 0 206.438);
  --primary-foreground: oklch(0.317 0.01 206.295);
  --secondary: oklch(0.993 0 171.578);
  --secondary-foreground: oklch(0.318 0.012 170.477);
  --accent: oklch(0.992 0 259.934);
  --accent-foreground: oklch(0.493 0.017 259.937);
  --destructive: oklch(0.399 0.161 29.787);
  --destructive-foreground: oklch(0.862 0.074 20.97);
  --ring: oklch(0.993 0 206.438);
  --chart-1: oklch(0.993 0 206.438);
  --chart-2: oklch(0.993 0 171.578);
  --chart-3: oklch(0.992 0 259.934);
  --chart-4: oklch(1.015 0.001 351.618);
  --chart-5: oklch(0.993 0.001 206.437);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.009 204.242);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.252 0.006 170.833);
  --muted-foreground: oklch(0.748 0.013 171.1);
  --popover: oklch(0.138 0.011 204.369);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.011 204.369);
  --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.993 0 206.438);
  --primary-foreground: oklch(0.317 0.01 206.295);
  --secondary: oklch(0.993 0 171.578);
  --secondary-foreground: oklch(0.318 0.012 170.477);
  --accent: oklch(0.992 0 259.934);
  --accent-foreground: oklch(0.493 0.017 259.937);
  --destructive: oklch(0.643 0.243 28.639);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.993 0 206.438);
  --chart-1: oklch(0.993 0 206.438);
  --chart-2: oklch(0.993 0 171.578);
  --chart-3: oklch(0.992 0 259.934);
  --chart-4: oklch(1.015 0.001 351.618);
  --chart-5: oklch(0.993 0.001 206.437);
}