Eyeliner for shadcn/ui

Eyeliner is a shadcn/ui theme built around a green primary color (#a2d28e) with neutral gray accents (#d3d5d3). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the green primary (#a2d28e) on a neutral background (#020402).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#020402black
Foreground
#0a1306black
#fcfdfbsnow
Card
#f6fcf3whitesmoke
#040703black
Card foreground
#081005black
#ffffffwhite
Popover
#f9fdf7mintcream
#020402black
Popover foreground
#0a1306black
#fcfdfbsnow
Primary
#a2d28edarkseagreen
#a2d28edarkseagreen
Primary foreground
#13210dblack
#13210dblack
Secondary
#d3d5d3lightgrey
#1c2419black
Secondary foreground
#3a3c39darkslategray
#b2c4absilver
Muted
#ebf1e9linen
#10160eblack
Muted foreground
#4c5648darkslategray
#adb7a9darkgray
Accent
#d3d5d3lightgrey
#1c2419black
Accent foreground
#3a3c39darkslategray
#b2c4absilver
Destructive
#942700saddlebrown
#f04000orangered
Destructive foreground
#ffd6c7bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a2d28edarkseagreen
#a2d28edarkseagreen

Contrast

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

Light mode
Text on background18.38:1AAA
Text on card18.48:1AAA
Primary button9.70:1AAA
Secondary button7.52:1AAA
Muted text6.71:1AA
Accent7.52:1AAA
Destructive6.14:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.23:1AAA
Primary button9.70:1AAA
Secondary button8.63:1AAA
Muted text8.84:1AAA
Accent8.63:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 136.054);
  --foreground: oklch(0.175 0.03 136.066);
  --muted: oklch(0.953 0.013 136.072);
  --muted-foreground: oklch(0.44 0.026 136.248);
  --popover: oklch(0.989 0.009 136.054);
  --popover-foreground: oklch(0.175 0.03 136.066);
  --card: oklch(0.983 0.013 136.07);
  --card-foreground: oklch(0.159 0.026 135.236);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.813 0.105 136.579);
  --primary-foreground: oklch(0.228 0.041 136.91);
  --secondary: oklch(0.87 0.003 136.033);
  --secondary-foreground: oklch(0.353 0.005 136.069);
  --accent: oklch(0.87 0.003 136.033);
  --accent-foreground: oklch(0.353 0.005 136.069);
  --destructive: oklch(0.443 0.15 36.529);
  --destructive-foreground: oklch(0.907 0.051 40.983);
  --ring: oklch(0.813 0.105 136.579);
  --chart-1: oklch(0.813 0.105 136.579);
  --chart-2: oklch(0.87 0.003 136.033);
  --chart-3: oklch(0.87 0.003 136.033);
  --chart-4: oklch(0.893 0.002 136.031);
  --chart-5: oklch(0.817 0.112 136.623);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.012 134.834);
  --foreground: oklch(0.994 0.003 136.032);
  --muted: oklch(0.191 0.019 136.429);
  --muted-foreground: oklch(0.768 0.023 136.131);
  --popover: oklch(0.097 0.012 134.834);
  --popover-foreground: oklch(0.994 0.003 136.032);
  --card: oklch(0.122 0.015 134.834);
  --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.813 0.105 136.579);
  --primary-foreground: oklch(0.228 0.041 136.91);
  --secondary: oklch(0.249 0.023 136.394);
  --secondary-foreground: oklch(0.801 0.041 136.213);
  --accent: oklch(0.249 0.023 136.394);
  --accent-foreground: oklch(0.801 0.041 136.213);
  --destructive: oklch(0.63 0.219 35.333);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.813 0.105 136.579);
  --chart-1: oklch(0.813 0.105 136.579);
  --chart-2: oklch(0.249 0.023 136.394);
  --chart-3: oklch(0.249 0.023 136.394);
  --chart-4: oklch(0.284 0.028 136.421);
  --chart-5: oklch(0.817 0.112 136.623);
}