Ground for shadcn/ui

Ground is a shadcn/ui theme built around a pink primary color (#982564) with green accents (#259859). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the pink primary (#982564) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fasnow
#000000black
Foreground
#090106black
#fbf8fasnow
Card
#fdf7fasnow
#000000black
Card foreground
#090106black
#fbf8fasnow
Popover
#fdf7fasnow
#000000black
Popover foreground
#090106black
#fbf8fasnow
Primary
#982564purple
#982564purple
Primary foreground
#fcf3f8lavenderblush
#fcf3f8lavenderblush
Secondary
#259859seagreen
#259859seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dde4e0gainsboro
#1b221eblack
Muted foreground
#567162dimgray
#8ea99adarkseagreen
Accent
#259859seagreen
#259859seagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d32203firebrick
#fb3a18orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#982564purple
#982564purple

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button6.94:1AA
Secondary button3.68:1AA Large
Muted text4.12:1AA Large
Accent3.68:1AA Large
Destructive5.24:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button6.94:1AA
Secondary button3.68:1AA Large
Muted text6.40:1AA
Accent3.68:1AA Large
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.009 342.833);
  --foreground: oklch(0.102 0.032 342.567);
  --muted: oklch(0.912 0.009 162.38);
  --muted-foreground: oklch(0.523 0.04 160.537);
  --popover: oklch(0.981 0.009 342.833);
  --popover-foreground: oklch(0.102 0.032 342.567);
  --card: oklch(0.981 0.009 342.833);
  --card-foreground: oklch(0.102 0.032 342.567);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.468 0.162 351.635);
  --primary-foreground: oklch(0.972 0.012 342.919);
  --secondary: oklch(0.602 0.139 153.895);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.602 0.139 153.895);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.557 0.212 31.507);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.468 0.162 351.635);
  --chart-1: oklch(0.468 0.162 351.635);
  --chart-2: oklch(0.602 0.139 153.895);
  --chart-3: oklch(0.602 0.139 153.895);
  --chart-4: oklch(0.637 0.147 153.818);
  --chart-5: oklch(0.47 0.167 352.109);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.004 342.716);
  --muted: oklch(0.244 0.012 161.341);
  --muted-foreground: oklch(0.711 0.038 161.227);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.004 342.716);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.004 342.716);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.468 0.162 351.635);
  --primary-foreground: oklch(0.972 0.012 342.919);
  --secondary: oklch(0.602 0.139 153.895);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.602 0.139 153.895);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.646 0.232 32.065);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.468 0.162 351.635);
  --chart-1: oklch(0.468 0.162 351.635);
  --chart-2: oklch(0.602 0.139 153.895);
  --chart-3: oklch(0.602 0.139 153.895);
  --chart-4: oklch(0.637 0.147 153.818);
  --chart-5: oklch(0.47 0.167 352.109);
}