Expert for shadcn/ui

Expert is a shadcn/ui theme built around a green primary color (#3ed07b) with pink accents (#d03e93). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the green primary (#3ed07b) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#fbfdfcwhite
#010402black
Foreground
#050f09black
#f9fbfamintcream
Card
#fbfdfcwhite
#010402black
Card foreground
#050f09black
#f9fbfamintcream
Popover
#fbfdfcwhite
#010402black
Popover foreground
#050f09black
#f9fbfamintcream
Primary
#3ed07bmediumseagreen
#3ed07bmediumseagreen
Primary foreground
#0d351edarkgreen
#0d351edarkgreen
Secondary
#d03e93mediumvioletred
#d03e93mediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1eaeelinen
#150e12black
Muted foreground
#555354dimgray
#acaaabdarkgray
Accent
#d03e93mediumvioletred
#d03e93mediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#641902maroon
#f63c04orangered
Destructive foreground
#fdb29bburlywood
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3ed07bmediumseagreen
#3ed07bmediumseagreen

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button6.82:1AA
Secondary button4.37:1AA Large
Muted text6.42:1AA
Accent4.37:1AA Large
Destructive7.13:1AAA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button6.82:1AA
Secondary button4.37:1AA Large
Muted text8.21:1AAA
Accent4.37:1AA Large
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 160.953);
  --foreground: oklch(0.157 0.021 159.371);
  --muted: oklch(0.943 0.009 341.246);
  --muted-foreground: oklch(0.445 0.003 341.153);
  --popover: oklch(0.994 0.003 160.953);
  --popover-foreground: oklch(0.157 0.021 159.371);
  --card: oklch(0.994 0.003 160.953);
  --card-foreground: oklch(0.157 0.021 159.371);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.762 0.173 153.159);
  --primary-foreground: oklch(0.295 0.062 154.074);
  --secondary: oklch(0.601 0.199 348.908);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.601 0.199 348.908);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.337 0.113 36.298);
  --destructive-foreground: oklch(0.829 0.095 37.638);
  --ring: oklch(0.762 0.173 153.159);
  --chart-1: oklch(0.762 0.173 153.159);
  --chart-2: oklch(0.601 0.199 348.908);
  --chart-3: oklch(0.601 0.199 348.908);
  --chart-4: oklch(0.621 0.19 348.028);
  --chart-5: oklch(0.77 0.179 152.809);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.014 160.942);
  --foreground: oklch(0.986 0.004 160.927);
  --muted: oklch(0.176 0.014 342.834);
  --muted-foreground: oklch(0.74 0.002 341.087);
  --popover: oklch(0.098 0.014 160.942);
  --popover-foreground: oklch(0.986 0.004 160.927);
  --card: oklch(0.098 0.014 160.942);
  --card-foreground: oklch(0.986 0.004 160.927);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.762 0.173 153.159);
  --primary-foreground: oklch(0.295 0.062 154.074);
  --secondary: oklch(0.601 0.199 348.908);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.601 0.199 348.908);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.638 0.227 34.111);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.762 0.173 153.159);
  --chart-1: oklch(0.762 0.173 153.159);
  --chart-2: oklch(0.601 0.199 348.908);
  --chart-3: oklch(0.601 0.199 348.908);
  --chart-4: oklch(0.621 0.19 348.028);
  --chart-5: oklch(0.77 0.179 152.809);
}