Smooth for shadcn/ui

Smooth is a shadcn/ui theme built around a light blue primary color (#bed7e9) with muted light blue accents (#e3e6e8). The light mode uses a neutral background (#f7fafd). Dark mode keeps the light blue primary (#bed7e9) on a blue-tinted background (#070b0d).

Color palette

TokenLightDark
Background
#f7fafdghostwhite
#070b0dblack
Foreground
#020608black
#f8fafcghostwhite
Card
#f7fafdghostwhite
#070b0dblack
Card foreground
#020608black
#f8fafcghostwhite
Popover
#f7fafdghostwhite
#070b0dblack
Popover foreground
#020608black
#f8fafcghostwhite
Primary
#bed7e9powderblue
#bed7e9powderblue
Primary foreground
#1e3f57darkslategray
#1e3f57darkslategray
Secondary
#e3e6e8gainsboro
#121517black
Secondary foreground
#464e53darkslategray
#a3afb8darkgray
Muted
#e4ecf1lavender
#0e151bblack
Muted foreground
#60676cdimgray
#939a9fdarkgray
Accent
#e3e6e8gainsboro
#121517black
Accent foreground
#464e53darkslategray
#a3afb8darkgray
Destructive
#b24206saddlebrown
#f97934coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bed7e9powderblue
#bed7e9powderblue

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button7.41:1AAA
Secondary button6.76:1AA
Muted text4.79:1AA
Accent6.76:1AA
Destructive5.71:1AA
Dark mode
Text on background18.90:1AAA
Text on card18.90:1AAA
Primary button7.41:1AAA
Secondary button8.20:1AAA
Muted text6.43:1AA
Accent8.20:1AAA
Destructive7.80:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.005 238.437);
  --foreground: oklch(0.114 0.013 230.448);
  --muted: oklch(0.938 0.01 238.519);
  --muted-foreground: oklch(0.509 0.012 238.701);
  --popover: oklch(0.984 0.005 238.437);
  --popover-foreground: oklch(0.114 0.013 230.448);
  --card: oklch(0.984 0.005 238.437);
  --card-foreground: oklch(0.114 0.013 230.448);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.867 0.036 238.983);
  --primary-foreground: oklch(0.356 0.057 241.877);
  --secondary: oklch(0.923 0.004 238.422);
  --secondary-foreground: oklch(0.418 0.014 238.858);
  --accent: oklch(0.923 0.004 238.422);
  --accent-foreground: oklch(0.418 0.014 238.858);
  --destructive: oklch(0.528 0.158 41.611);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.867 0.036 238.983);
  --chart-1: oklch(0.867 0.036 238.983);
  --chart-2: oklch(0.923 0.004 238.422);
  --chart-3: oklch(0.923 0.004 238.422);
  --chart-4: oklch(0.946 0.003 238.403);
  --chart-5: oklch(0.867 0.038 239.023);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.009 237.1);
  --foreground: oklch(0.985 0.003 238.405);
  --muted: oklch(0.193 0.015 239.617);
  --muted-foreground: oklch(0.682 0.011 238.596);
  --popover: oklch(0.145 0.009 237.1);
  --popover-foreground: oklch(0.985 0.003 238.405);
  --card: oklch(0.145 0.009 237.1);
  --card-foreground: oklch(0.985 0.003 238.405);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.867 0.036 238.983);
  --primary-foreground: oklch(0.356 0.057 241.877);
  --secondary: oklch(0.193 0.007 238.864);
  --secondary-foreground: oklch(0.748 0.019 238.727);
  --accent: oklch(0.193 0.007 238.864);
  --accent-foreground: oklch(0.748 0.019 238.727);
  --destructive: oklch(0.715 0.175 45.683);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.867 0.036 238.983);
  --chart-1: oklch(0.867 0.036 238.983);
  --chart-2: oklch(0.193 0.007 238.864);
  --chart-3: oklch(0.193 0.007 238.864);
  --chart-4: oklch(0.226 0.009 238.931);
  --chart-5: oklch(0.867 0.038 239.023);
}