Advanced for shadcn/ui

Advanced is a shadcn/ui theme built around a vivid light green primary color (#9afea6) with neutral gray accents (#daddda). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#9afea6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#061408black
#f5faf6whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#061408black
#f5faf6whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#061408black
#f5faf6whitesmoke
Primary
#9afea6palegreen
#9afea6palegreen
Primary foreground
#000000black
#000000black
Secondary
#dadddagainsboro
#273429darkslategray
Secondary foreground
#404540darkslategray
#bfcfc1silver
Muted
#d8e9dagainsboro
#162718black
Muted foreground
#546356dimgray
#9cab9edarkgray
Accent
#dadddagainsboro
#273429darkslategray
Accent foreground
#404540darkslategray
#bfcfc1silver
Destructive
#6f1901maroon
#fd4d1corangered
Destructive foreground
#feb8a4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9afea6palegreen
#9afea6palegreen

Contrast

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

Light mode
Text on background18.89:1AAA
Text on card18.89:1AAA
Primary button17.09:1AAA
Secondary button7.14:1AAA
Muted text5.02:1AA
Accent7.14:1AAA
Destructive6.94:1AA
Dark mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button17.09:1AAA
Secondary button7.98:1AAA
Muted text6.51:1AA
Accent7.98:1AAA
Destructive3.37:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.172 0.032 147.186);
  --muted: oklch(0.917 0.027 148.778);
  --muted-foreground: oklch(0.484 0.027 148.447);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.172 0.032 147.186);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.172 0.032 147.186);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.914 0.152 146.906);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.894 0.005 149.073);
  --secondary-foreground: oklch(0.384 0.01 148.807);
  --accent: oklch(0.894 0.005 149.073);
  --accent-foreground: oklch(0.384 0.01 148.807);
  --destructive: oklch(0.358 0.124 35.165);
  --destructive-foreground: oklch(0.842 0.087 36.063);
  --ring: oklch(0.914 0.152 146.906);
  --chart-1: oklch(0.914 0.152 146.906);
  --chart-2: oklch(0.894 0.005 149.073);
  --chart-3: oklch(0.894 0.005 149.073);
  --chart-4: oklch(0.917 0.004 149.087);
  --chart-5: oklch(0.916 0.157 146.842);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.007 149.049);
  --muted: oklch(0.253 0.036 147.254);
  --muted-foreground: oklch(0.724 0.025 148.724);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.007 149.049);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.979 0.007 149.049);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.914 0.152 146.906);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.311 0.026 148.074);
  --secondary-foreground: oklch(0.838 0.026 148.769);
  --accent: oklch(0.311 0.026 148.074);
  --accent-foreground: oklch(0.838 0.026 148.769);
  --destructive: oklch(0.664 0.22 35);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.914 0.152 146.906);
  --chart-1: oklch(0.914 0.152 146.906);
  --chart-2: oklch(0.311 0.026 148.074);
  --chart-3: oklch(0.311 0.026 148.074);
  --chart-4: oklch(0.342 0.03 148.037);
  --chart-5: oklch(0.916 0.157 146.842);
}