Pretty for shadcn/ui

Pretty is a shadcn/ui theme built around a vivid light teal primary color (#b7f5da) with muted light teal accents (#c1d7cd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light teal primary (#b7f5da) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#ffffffwhite
#010403black
Foreground
#02120bblack
#f9fbfamintcream
Card
#ffffffwhite
#010403black
Card foreground
#02120bblack
#f9fbfamintcream
Popover
#ffffffwhite
#010403black
Popover foreground
#02120bblack
#f9fbfamintcream
Primary
#b7f5dapaleturquoise
#b7f5dapaleturquoise
Primary foreground
#02120bblack
#02120bblack
Secondary
#d9e2degainsboro
#303131darkslategray
Secondary foreground
#3b4e46darkslategray
#c9cacalightgrey
Muted
#d8e8e1gainsboro
#172720black
Muted foreground
#49504ddarkslategray
#afb6b3darkgray
Accent
#c1d7cdlightgrey
#36443edarkslategray
Accent foreground
#283e34darkslategray
#d2dbd7lightgrey
Destructive
#be1004firebrick
#fa2819orangered
Destructive foreground
#fff6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b7f5dapaleturquoise
#b7f5dapaleturquoise

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button15.65:1AAA
Secondary button6.74:1AA
Muted text6.54:1AA
Accent7.57:1AAA
Destructive6.04:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button15.65:1AAA
Secondary button7.95:1AAA
Muted text7.58:1AAA
Accent7.23:1AAA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.165 0.03 165.574);
  --muted: oklch(0.918 0.019 168.135);
  --muted-foreground: oklch(0.423 0.009 168.127);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.165 0.03 165.574);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.165 0.03 165.574);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.922 0.073 166.3);
  --primary-foreground: oklch(0.164 0.028 165.719);
  --secondary: oklch(0.906 0.011 168.38);
  --secondary-foreground: oklch(0.407 0.028 166.649);
  --accent: oklch(0.86 0.026 167.852);
  --accent-foreground: oklch(0.341 0.032 165.784);
  --destructive: oklch(0.508 0.202 29.857);
  --destructive-foreground: oklch(0.979 0.01 22.329);
  --ring: oklch(0.922 0.073 166.3);
  --chart-1: oklch(0.922 0.073 166.3);
  --chart-2: oklch(0.906 0.011 168.38);
  --chart-3: oklch(0.86 0.026 167.852);
  --chart-4: oklch(0.928 0.009 168.47);
  --chart-5: oklch(0.924 0.075 166.204);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.01 168.939);
  --foreground: oklch(0.986 0.003 168.643);
  --muted: oklch(0.254 0.025 165.542);
  --muted-foreground: oklch(0.769 0.008 168.448);
  --popover: oklch(0.097 0.01 168.939);
  --popover-foreground: oklch(0.986 0.003 168.643);
  --card: oklch(0.097 0.01 168.939);
  --card-foreground: oklch(0.986 0.003 168.643);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.922 0.073 166.3);
  --primary-foreground: oklch(0.164 0.028 165.719);
  --secondary: oklch(0.312 0.002 168.594);
  --secondary-foreground: oklch(0.838 0.001 168.689);
  --accent: oklch(0.372 0.02 167.129);
  --accent-foreground: oklch(0.882 0.011 168.381);
  --destructive: oklch(0.632 0.241 29.676);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.922 0.073 166.3);
  --chart-1: oklch(0.922 0.073 166.3);
  --chart-2: oklch(0.312 0.002 168.594);
  --chart-3: oklch(0.372 0.02 167.129);
  --chart-4: oklch(0.342 0.002 168.59);
  --chart-5: oklch(0.924 0.075 166.204);
}