Second for shadcn/ui

Second is a shadcn/ui theme built around a vivid green primary color (#54fc5f) with vivid teal accents (#54fcb4). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#54fc5f) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#ffffffwhite
#010401black
Foreground
#010902black
#fcfdfcwhite
Card
#fcfcfcsnow
#020803black
Card foreground
#010401black
#ffffffwhite
Popover
#ffffffwhite
#010401black
Popover foreground
#010902black
#fcfdfcwhite
Primary
#54fc5flimegreen
#54fc5flimegreen
Primary foreground
#001e02black
#001e02black
Secondary
#9dfc54greenyellow
#9dfc54greenyellow
Secondary foreground
#0d1e00black
#0d1e00black
Muted
#d8ddd5gainsboro
#262a22darkslategray
Muted foreground
#46503fdarkslategray
#b6c0afsilver
Accent
#54fcb4turquoise
#54fcb4turquoise
Accent foreground
#001e11black
#001e11black
Destructive
#c1450bchocolate
#f1560eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#54fc5flimegreen
#54fc5flimegreen

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button13.07:1AAA
Secondary button13.74:1AAA
Muted text6.12:1AA
Accent13.40:1AAA
Destructive5.10:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.21:1AAA
Primary button13.07:1AAA
Secondary button13.74:1AAA
Muted text7.75:1AAA
Accent13.40:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.029 145.716);
  --muted: oklch(0.891 0.011 131.196);
  --muted-foreground: oklch(0.417 0.03 131.752);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.124 0.029 145.716);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.098 0.023 145.716);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.875 0.242 144.104);
  --primary-foreground: oklch(0.205 0.065 144.282);
  --secondary: oklch(0.901 0.219 134.308);
  --secondary-foreground: oklch(0.213 0.059 132.958);
  --accent: oklch(0.888 0.172 160.605);
  --accent-foreground: oklch(0.209 0.045 161.69);
  --destructive: oklch(0.556 0.17 39.919);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.875 0.242 144.104);
  --chart-1: oklch(0.875 0.242 144.104);
  --chart-2: oklch(0.901 0.219 134.308);
  --chart-3: oklch(0.888 0.172 160.605);
  --chart-4: oklch(0.907 0.204 133.869);
  --chart-5: oklch(0.88 0.248 144.029);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.018 146.128);
  --foreground: oklch(0.993 0.002 147.528);
  --muted: oklch(0.278 0.015 131.573);
  --muted-foreground: oklch(0.796 0.026 131.375);
  --popover: oklch(0.097 0.018 146.128);
  --popover-foreground: oklch(0.993 0.002 147.528);
  --card: oklch(0.122 0.023 146.128);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.875 0.242 144.104);
  --primary-foreground: oklch(0.205 0.065 144.282);
  --secondary: oklch(0.901 0.219 134.308);
  --secondary-foreground: oklch(0.213 0.059 132.958);
  --accent: oklch(0.888 0.172 160.605);
  --accent-foreground: oklch(0.209 0.045 161.69);
  --destructive: oklch(0.655 0.203 39.558);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.875 0.242 144.104);
  --chart-1: oklch(0.875 0.242 144.104);
  --chart-2: oklch(0.901 0.219 134.308);
  --chart-3: oklch(0.888 0.172 160.605);
  --chart-4: oklch(0.907 0.204 133.869);
  --chart-5: oklch(0.88 0.248 144.029);
}