Green for shadcn/ui

Green is a shadcn/ui theme built around a vivid light blue primary color (#e2e8fe) with vivid light violet accents (#e9e2fe). The light mode uses a neutral background (#f6f8fd). Dark mode keeps the vivid light blue primary (#e2e8fe) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#f6f8fdghostwhite
#030407black
Foreground
#03050cblack
#fcfcfdwhite
Card
#f6f8fdghostwhite
#030407black
Card foreground
#03050cblack
#fcfcfdwhite
Popover
#f6f8fdghostwhite
#030407black
Popover foreground
#03050cblack
#fcfcfdwhite
Primary
#e2e8felavender
#e2e8felavender
Primary foreground
#082da6darkblue
#082da6darkblue
Secondary
#e2f6felightcyan
#e2f6felightcyan
Secondary foreground
#033344darkslategray
#033344darkslategray
Muted
#d4dbddgainsboro
#22282bdarkslategray
Muted foreground
#3a464bdarkslategray
#b4c1c5silver
Accent
#e9e2felavender
#e9e2felavender
Accent foreground
#3208a6indigo
#3208a6indigo
Destructive
#c62715firebrick
#ea4634tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2e8felavender
#e2e8felavender

Contrast

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

Light mode
Text on background19.20:1AAA
Text on card19.20:1AAA
Primary button8.89:1AAA
Secondary button12.08:1AAA
Muted text6.93:1AA
Accent9.73:1AAA
Destructive5.66:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button8.89:1AAA
Secondary button12.08:1AAA
Muted text8.06:1AAA
Accent9.73:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 272.581);
  --foreground: oklch(0.118 0.019 265.219);
  --muted: oklch(0.887 0.008 221.385);
  --muted-foreground: oklch(0.386 0.018 221.847);
  --popover: oklch(0.98 0.007 272.581);
  --popover-foreground: oklch(0.118 0.019 265.219);
  --card: oklch(0.98 0.007 272.581);
  --card-foreground: oklch(0.118 0.019 265.219);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.933 0.03 272.302);
  --primary-foreground: oklch(0.375 0.195 264.398);
  --secondary: oklch(0.961 0.024 221.548);
  --secondary-foreground: oklch(0.3 0.057 228.626);
  --accent: oklch(0.926 0.038 297.843);
  --accent-foreground: oklch(0.356 0.212 278.641);
  --destructive: oklch(0.537 0.197 30.515);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.933 0.03 272.302);
  --chart-1: oklch(0.933 0.03 272.302);
  --chart-2: oklch(0.961 0.024 221.548);
  --chart-3: oklch(0.926 0.038 297.843);
  --chart-4: oklch(0.98 0.012 221.414);
  --chart-5: oklch(0.933 0.031 272.289);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.012 267.136);
  --foreground: oklch(0.992 0.001 272.646);
  --muted: oklch(0.273 0.011 221.727);
  --muted-foreground: oklch(0.802 0.015 221.487);
  --popover: oklch(0.106 0.012 267.136);
  --popover-foreground: oklch(0.992 0.001 272.646);
  --card: oklch(0.106 0.012 267.136);
  --card-foreground: oklch(0.992 0.001 272.646);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.933 0.03 272.302);
  --primary-foreground: oklch(0.375 0.195 264.398);
  --secondary: oklch(0.961 0.024 221.548);
  --secondary-foreground: oklch(0.3 0.057 228.626);
  --accent: oklch(0.926 0.038 297.843);
  --accent-foreground: oklch(0.356 0.212 278.641);
  --destructive: oklch(0.628 0.203 30.042);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.933 0.03 272.302);
  --chart-1: oklch(0.933 0.03 272.302);
  --chart-2: oklch(0.961 0.024 221.548);
  --chart-3: oklch(0.926 0.038 297.843);
  --chart-4: oklch(0.98 0.012 221.414);
  --chart-5: oklch(0.933 0.031 272.289);
}