Advance for shadcn/ui

Advance is a shadcn/ui theme built around a teal primary color (#33946c) with neutral gray accents (#d6dbd9). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#33946c) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#ffffffwhite
#030705black
Foreground
#030806black
#ffffffwhite
Card
#ffffffwhite
#030705black
Card foreground
#030806black
#ffffffwhite
Popover
#ffffffwhite
#030705black
Popover foreground
#030806black
#ffffffwhite
Primary
#33946cseagreen
#33946cseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d6dbd9gainsboro
#171c1ablack
Secondary foreground
#3b4440darkslategray
#acb9b4darkgray
Muted
#e7f4eehoneydew
#0b1813black
Muted foreground
#414e48darkslategray
#b1beb9silver
Accent
#d6dbd9gainsboro
#171c1ablack
Accent foreground
#3b4440darkslategray
#acb9b4darkgray
Destructive
#c50a07firebrick
#f71b18red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#33946cseagreen
#33946cseagreen

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button3.74:1AA Large
Secondary button7.20:1AAA
Muted text7.68:1AAA
Accent7.20:1AAA
Destructive6.14:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button3.74:1AA Large
Secondary button8.52:1AAA
Muted text9.45:1AAA
Accent8.52:1AAA
Destructive4.10:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.123 0.014 169.903);
  --muted: oklch(0.955 0.015 169.21);
  --muted-foreground: oklch(0.41 0.019 168.319);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.123 0.014 169.903);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.123 0.014 169.903);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.599 0.11 162.071);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.888 0.007 169.462);
  --secondary-foreground: oklch(0.378 0.013 168.639);
  --accent: oklch(0.888 0.007 169.462);
  --accent-foreground: oklch(0.378 0.013 168.639);
  --destructive: oklch(0.52 0.209 29.095);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.599 0.11 162.071);
  --chart-1: oklch(0.599 0.11 162.071);
  --chart-2: oklch(0.888 0.007 169.462);
  --chart-3: oklch(0.888 0.007 169.462);
  --chart-4: oklch(0.911 0.005 169.509);
  --chart-5: oklch(0.607 0.115 161.625);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.009 169.831);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.196 0.021 166.059);
  --muted-foreground: oklch(0.79 0.016 169.086);
  --popover: oklch(0.121 0.009 169.831);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.009 169.831);
  --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.599 0.11 162.071);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.219 0.007 168.743);
  --secondary-foreground: oklch(0.773 0.015 169.099);
  --accent: oklch(0.219 0.007 168.743);
  --accent-foreground: oklch(0.773 0.015 169.099);
  --destructive: oklch(0.62 0.244 28.731);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.599 0.11 162.071);
  --chart-1: oklch(0.599 0.11 162.071);
  --chart-2: oklch(0.219 0.007 168.743);
  --chart-3: oklch(0.219 0.007 168.743);
  --chart-4: oklch(0.253 0.009 168.66);
  --chart-5: oklch(0.607 0.115 161.625);
}