Idea for shadcn/ui

Idea is a shadcn/ui theme built around a muted deep green primary color (#223f30) with muted light green accents (#cce0d6). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the muted deep green primary (#223f30) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcfamintcream
#000000black
Foreground
#000000black
#f6f8f7whitesmoke
Card
#f4fbf7mintcream
#030303black
Card foreground
#000000black
#f9fbfamintcream
Popover
#f8fcfamintcream
#000000black
Popover foreground
#000000black
#f6f8f7whitesmoke
Primary
#223f30darkslategray
#223f30darkslategray
Primary foreground
#bad9c8silver
#bad9c8silver
Secondary
#e7eeealavender
#242926darkslategray
Secondary foreground
#1a231eblack
#bbc4bfsilver
Muted
#ebefedwhitesmoke
#101412black
Muted foreground
#4e5551darkslategray
#aab1addarkgray
Accent
#cce0d6lightgrey
#2e3e35darkslategray
Accent foreground
#2e4d3cdarkslategray
#c7d6celightgrey
Destructive
#a0260efirebrick
#ee583atomato
Destructive foreground
#fde7e3mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#223f30darkslategray
#223f30darkslategray

Contrast

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

Light mode
Text on background20.29:1AAA
Text on card19.95:1AAA
Primary button7.64:1AAA
Secondary button13.67:1AAA
Muted text6.60:1AA
Accent6.79:1AA
Destructive6.39:1AA
Dark mode
Text on background19.68:1AAA
Text on card19.89:1AAA
Primary button7.64:1AAA
Secondary button8.29:1AAA
Muted text8.51:1AAA
Accent7.55:1AAA
Destructive6.08:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 163.299);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.949 0.005 163.323);
  --muted-foreground: oklch(0.442 0.01 162.86);
  --popover: oklch(0.987 0.006 163.299);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.009 163.224);
  --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.338 0.044 159.584);
  --primary-foreground: oklch(0.858 0.04 162.208);
  --secondary: oklch(0.943 0.008 163.22);
  --secondary-foreground: oklch(0.247 0.017 161.561);
  --accent: oklch(0.89 0.026 162.679);
  --accent-foreground: oklch(0.389 0.046 159.951);
  --destructive: oklch(0.464 0.161 32.825);
  --destructive-foreground: oklch(0.944 0.024 31.11);
  --ring: oklch(0.338 0.044 159.584);
  --chart-1: oklch(0.338 0.044 159.584);
  --chart-2: oklch(0.943 0.008 163.22);
  --chart-3: oklch(0.89 0.026 162.679);
  --chart-4: oklch(0.964 0.005 163.308);
  --chart-5: oklch(0.342 0.048 159.187);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.978 0.003 163.379);
  --muted: oklch(0.185 0.007 162.485);
  --muted-foreground: oklch(0.753 0.009 163.146);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.978 0.003 163.379);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.002 163.401);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.338 0.044 159.584);
  --primary-foreground: oklch(0.858 0.04 162.208);
  --secondary: oklch(0.274 0.009 162.567);
  --secondary-foreground: oklch(0.811 0.012 163.072);
  --accent: oklch(0.345 0.026 161.404);
  --accent-foreground: oklch(0.862 0.019 162.88);
  --destructive: oklch(0.655 0.191 33.202);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.338 0.044 159.584);
  --chart-1: oklch(0.338 0.044 159.584);
  --chart-2: oklch(0.274 0.009 162.567);
  --chart-3: oklch(0.345 0.026 161.404);
  --chart-4: oklch(0.306 0.011 162.525);
  --chart-5: oklch(0.342 0.048 159.187);
}