Lag for shadcn/ui

Lag is a shadcn/ui theme built around a green primary color (#6ae272) with teal accents (#6ae2ae). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#6ae272) on a neutral background (#030803).

Color palette

TokenLightDark
Background
#fbfefbwhite
#030803black
Foreground
#020802black
#ffffffwhite
Card
#fbfefbwhite
#030803black
Card foreground
#020802black
#ffffffwhite
Popover
#fbfefbwhite
#030803black
Popover foreground
#020802black
#ffffffwhite
Primary
#6ae272lightgreen
#6ae272lightgreen
Primary foreground
#041505black
#041505black
Secondary
#9ee26alightgreen
#9ee26alightgreen
Secondary foreground
#0c1504black
#0c1504black
Muted
#e4efdcbeige
#182310black
Muted foreground
#5a694fdimgray
#a1b096darkgray
Accent
#6ae2aemediumaquamarine
#6ae2aemediumaquamarine
Accent foreground
#04150eblack
#04150eblack
Destructive
#d43511firebrick
#ef5e3etomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6ae272lightgreen
#6ae272lightgreen

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card19.91:1AAA
Primary button11.37:1AAA
Secondary button11.99:1AAA
Muted text4.94:1AA
Accent11.66:1AAA
Destructive4.85:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button11.37:1AAA
Secondary button11.99:1AAA
Muted text7.13:1AAA
Accent11.66:1AAA
Destructive6.35:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 147.493);
  --foreground: oklch(0.123 0.026 145.923);
  --muted: oklch(0.938 0.027 131.337);
  --muted-foreground: oklch(0.5 0.043 131.892);
  --popover: oklch(0.994 0.005 147.493);
  --popover-foreground: oklch(0.123 0.026 145.923);
  --card: oklch(0.994 0.005 147.493);
  --card-foreground: oklch(0.123 0.026 145.923);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.817 0.186 144.881);
  --primary-foreground: oklch(0.176 0.041 145.315);
  --secondary: oklch(0.841 0.167 133.344);
  --secondary-foreground: oklch(0.182 0.037 132.07);
  --accent: oklch(0.828 0.132 162.811);
  --accent-foreground: oklch(0.179 0.029 164.357);
  --destructive: oklch(0.573 0.201 33.271);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.817 0.186 144.881);
  --chart-1: oklch(0.817 0.186 144.881);
  --chart-2: oklch(0.841 0.167 133.344);
  --chart-3: oklch(0.828 0.132 162.811);
  --chart-4: oklch(0.853 0.154 133.051);
  --chart-5: oklch(0.822 0.193 144.781);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.019 146.357);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.239 0.036 132.636);
  --muted-foreground: oklch(0.739 0.04 131.568);
  --popover: oklch(0.121 0.019 146.357);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.019 146.357);
  --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.817 0.186 144.881);
  --primary-foreground: oklch(0.176 0.041 145.315);
  --secondary: oklch(0.841 0.167 133.344);
  --secondary-foreground: oklch(0.182 0.037 132.07);
  --accent: oklch(0.828 0.132 162.811);
  --accent-foreground: oklch(0.179 0.029 164.357);
  --destructive: oklch(0.665 0.186 34.152);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.817 0.186 144.881);
  --chart-1: oklch(0.817 0.186 144.881);
  --chart-2: oklch(0.841 0.167 133.344);
  --chart-3: oklch(0.828 0.132 162.811);
  --chart-4: oklch(0.853 0.154 133.051);
  --chart-5: oklch(0.822 0.193 144.781);
}