Integration for shadcn/ui

Integration is a shadcn/ui theme built around a muted green primary color (#547355) with muted red accents (#735554). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted green primary (#547355) on a green-tinted background (#060e07).

Color palette

TokenLightDark
Background
#fbfefbwhite
#060e07black
Foreground
#010401black
#f8fbf9mintcream
Card
#fbfefbwhite
#060e07black
Card foreground
#010401black
#f8fbf9mintcream
Popover
#fbfefbwhite
#060e07black
Popover foreground
#010401black
#f8fbf9mintcream
Primary
#547355dimgray
#547355dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#555473dimgray
#555473dimgray
Secondary foreground
#fcfcfdwhite
#fcfcfdwhite
Muted
#d3d2dflightgrey
#20202ddarkslategray
Muted foreground
#525167dimgray
#9998aedarkgray
Accent
#735554dimgray
#735554dimgray
Accent foreground
#fdfcfcsnow
#fdfcfcsnow
Destructive
#a0320dsaddlebrown
#e74813orangered
Destructive foreground
#fde9e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#547355dimgray
#547355dimgray

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button5.28:1AA
Secondary button7.08:1AAA
Muted text5.15:1AA
Accent6.48:1AA
Destructive6.05:1AA
Dark mode
Text on background18.76:1AAA
Text on card18.76:1AAA
Primary button5.28:1AA
Secondary button7.08:1AAA
Muted text5.71:1AA
Accent6.48:1AA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 147.006);
  --foreground: oklch(0.097 0.02 145.447);
  --muted: oklch(0.869 0.018 288.324);
  --muted-foreground: oklch(0.444 0.036 287.129);
  --popover: oklch(0.993 0.003 147.006);
  --popover-foreground: oklch(0.097 0.02 145.447);
  --card: oklch(0.993 0.003 147.006);
  --card-foreground: oklch(0.097 0.02 145.447);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.523 0.06 145.905);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.459 0.051 286.471);
  --secondary-foreground: oklch(0.991 0.001 288.689);
  --accent: oklch(0.481 0.041 22.124);
  --accent-foreground: oklch(0.992 0.001 20.9);
  --destructive: oklch(0.478 0.152 36.699);
  --destructive-foreground: oklch(0.948 0.023 39.372);
  --ring: oklch(0.523 0.06 145.905);
  --chart-1: oklch(0.523 0.06 145.905);
  --chart-2: oklch(0.459 0.051 286.471);
  --chart-3: oklch(0.481 0.041 22.124);
  --chart-4: oklch(0.483 0.055 286.447);
  --chart-5: oklch(0.528 0.07 145.7);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.021 145.924);
  --foreground: oklch(0.986 0.005 146.994);
  --muted: oklch(0.249 0.024 286.767);
  --muted-foreground: oklch(0.688 0.032 287.819);
  --popover: oklch(0.153 0.021 145.924);
  --popover-foreground: oklch(0.986 0.005 146.994);
  --card: oklch(0.153 0.021 145.924);
  --card-foreground: oklch(0.986 0.005 146.994);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.523 0.06 145.905);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.459 0.051 286.471);
  --secondary-foreground: oklch(0.991 0.001 288.689);
  --accent: oklch(0.481 0.041 22.124);
  --accent-foreground: oklch(0.992 0.001 20.9);
  --destructive: oklch(0.623 0.204 36.281);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.523 0.06 145.905);
  --chart-1: oklch(0.523 0.06 145.905);
  --chart-2: oklch(0.459 0.051 286.471);
  --chart-3: oklch(0.481 0.041 22.124);
  --chart-4: oklch(0.483 0.055 286.447);
  --chart-5: oklch(0.528 0.07 145.7);
}