Project for shadcn/ui

Project is a shadcn/ui theme built around a teal primary color (#71c1b4) with yellow accents (#c1b471). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the teal primary (#71c1b4) on a teal-tinted background (#050a09).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#050a09black
Foreground
#000000black
#f8fbfbghostwhite
Card
#f7fdfcmintcream
#050a09black
Card foreground
#000000black
#f8fbfbghostwhite
Popover
#f7fdfcmintcream
#050a09black
Popover foreground
#000000black
#f8fbfbghostwhite
Primary
#71c1b4mediumaquamarine
#71c1b4mediumaquamarine
Primary foreground
#000000black
#000000black
Secondary
#b471c1mediumorchid
#b471c1mediumorchid
Secondary foreground
#000000black
#000000black
Muted
#e7d7eagainsboro
#251528black
Muted foreground
#705775dimgray
#a38aa8darkgray
Accent
#c1b471darkkhaki
#c1b471darkkhaki
Accent foreground
#000000black
#000000black
Destructive
#b73a01firebrick
#f44e01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#71c1b4mediumaquamarine
#71c1b4mediumaquamarine

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.35:1AAA
Primary button9.96:1AAA
Secondary button6.06:1AA
Muted text4.61:1AA
Accent9.99:1AAA
Destructive5.79:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button9.96:1AAA
Secondary button6.06:1AA
Muted text5.55:1AA
Accent9.99:1AAA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 185.301);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.897 0.031 320.584);
  --muted-foreground: oklch(0.493 0.057 320.694);
  --popover: oklch(0.988 0.006 185.301);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.006 185.301);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.755 0.081 182.182);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.649 0.135 320.76);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.764 0.088 98.286);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.526 0.169 38.73);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.755 0.081 182.182);
  --chart-1: oklch(0.755 0.081 182.182);
  --chart-2: oklch(0.649 0.135 320.76);
  --chart-3: oklch(0.764 0.088 98.286);
  --chart-4: oklch(0.675 0.125 320.752);
  --chart-5: oklch(0.762 0.086 181.95);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.009 185.256);
  --foreground: oklch(0.987 0.003 185.359);
  --muted: oklch(0.226 0.042 320.752);
  --muted-foreground: oklch(0.666 0.053 320.649);
  --popover: oklch(0.138 0.009 185.256);
  --popover-foreground: oklch(0.987 0.003 185.359);
  --card: oklch(0.138 0.009 185.256);
  --card-foreground: oklch(0.987 0.003 185.359);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.755 0.081 182.182);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.649 0.135 320.76);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.764 0.088 98.286);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.65 0.212 38.031);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.755 0.081 182.182);
  --chart-1: oklch(0.755 0.081 182.182);
  --chart-2: oklch(0.649 0.135 320.76);
  --chart-3: oklch(0.764 0.088 98.286);
  --chart-4: oklch(0.675 0.125 320.752);
  --chart-5: oklch(0.762 0.086 181.95);
}