Generation for shadcn/ui

Generation is a shadcn/ui theme built around a green primary color (#82ce9c) with pink accents (#ce82b5). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#82ce9c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#031709black
#f8fcf9mintcream
Card
#fcfcfcsnow
#030303black
Card foreground
#021208black
#fcfdfcwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#021208black
#fcfdfcwhite
Primary
#82ce9cdarkseagreen
#82ce9cdarkseagreen
Primary foreground
#09160dblack
#09160dblack
Secondary
#ce82b5orchid
#ce82b5orchid
Secondary foreground
#160912black
#160912black
Muted
#efdce9mistyrose
#23101dblack
Muted foreground
#6b5764dimgray
#a894a1darkgray
Accent
#ce82b5orchid
#ce82b5orchid
Accent foreground
#160912black
#160912black
Destructive
#6f0d02maroon
#fb2a13orangered
Destructive foreground
#feada5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#82ce9cdarkseagreen
#82ce9cdarkseagreen

Contrast

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

Light mode
Text on background18.57:1AAA
Text on card18.80:1AAA
Primary button9.98:1AAA
Secondary button6.93:1AA
Muted text5.06:1AA
Accent6.93:1AA
Destructive6.79:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button9.98:1AAA
Secondary button6.93:1AA
Muted text6.37:1AA
Accent6.93:1AA
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.181 0.039 153.669);
  --muted: oklch(0.913 0.027 337.855);
  --muted-foreground: oklch(0.481 0.032 338.553);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.163 0.034 155.027);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.163 0.034 155.027);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.789 0.105 154.13);
  --primary-foreground: oklch(0.184 0.027 153.929);
  --secondary: oklch(0.702 0.114 340.296);
  --secondary-foreground: oklch(0.162 0.029 340.524);
  --accent: oklch(0.702 0.114 340.296);
  --accent-foreground: oklch(0.162 0.029 340.524);
  --destructive: oklch(0.347 0.132 31.147);
  --destructive-foreground: oklch(0.824 0.096 26.349);
  --ring: oklch(0.789 0.105 154.13);
  --chart-1: oklch(0.789 0.105 154.13);
  --chart-2: oklch(0.702 0.114 340.296);
  --chart-3: oklch(0.702 0.114 340.296);
  --chart-4: oklch(0.728 0.103 339.927);
  --chart-5: oklch(0.794 0.112 153.918);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.005 157.167);
  --muted: oklch(0.206 0.039 340.797);
  --muted-foreground: oklch(0.689 0.029 338.098);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.993 0.002 157.217);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.002 157.217);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.789 0.105 154.13);
  --primary-foreground: oklch(0.184 0.027 153.929);
  --secondary: oklch(0.702 0.114 340.296);
  --secondary-foreground: oklch(0.162 0.029 340.524);
  --accent: oklch(0.702 0.114 340.296);
  --accent-foreground: oklch(0.162 0.029 340.524);
  --destructive: oklch(0.635 0.242 30.483);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.789 0.105 154.13);
  --chart-1: oklch(0.789 0.105 154.13);
  --chart-2: oklch(0.702 0.114 340.296);
  --chart-3: oklch(0.702 0.114 340.296);
  --chart-4: oklch(0.728 0.103 339.927);
  --chart-5: oklch(0.794 0.112 153.918);
}