Eyeliner for shadcn/ui

Eyeliner is a shadcn/ui theme built around a light pink primary color (#f5d6e8) with light green accents (#d6f5e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the light pink primary (#f5d6e8) on a pink-tinted background (#0a0508).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0508black
Foreground
#0d0308black
#faf5f8whitesmoke
Card
#ffffffwhite
#0a0508black
Card foreground
#0d0308black
#faf5f8whitesmoke
Popover
#ffffffwhite
#0a0508black
Popover foreground
#0d0308black
#faf5f8whitesmoke
Primary
#f5d6e8mistyrose
#f5d6e8mistyrose
Primary foreground
#7c1d53purple
#7c1d53purple
Secondary
#d6f5e3gainsboro
#d6f5e3gainsboro
Secondary foreground
#0a2917black
#0a2917black
Muted
#d4eddfgainsboro
#122b1dblack
Muted foreground
#4b6255darkslategray
#9db4a7darkgray
Accent
#d6f5e3gainsboro
#d6f5e3gainsboro
Accent foreground
#0a2917black
#0a2917black
Destructive
#6b210amaroon
#ec5d32tomato
Destructive foreground
#f8c0b0lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f5d6e8mistyrose
#f5d6e8mistyrose

Contrast

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

Light mode
Text on background20.31:1AAA
Text on card20.31:1AAA
Primary button7.24:1AAA
Secondary button13.45:1AAA
Muted text5.33:1AA
Accent13.45:1AAA
Destructive7.12:1AAA
Dark mode
Text on background18.76:1AAA
Text on card18.76:1AAA
Primary button7.24:1AAA
Secondary button13.45:1AAA
Muted text6.86:1AA
Accent13.45:1AAA
Destructive6.17:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.121 0.028 342.303);
  --muted: oklch(0.923 0.032 160.951);
  --muted-foreground: oklch(0.474 0.034 159.936);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.121 0.028 342.303);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.121 0.028 342.303);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.907 0.042 342.884);
  --primary-foreground: oklch(0.405 0.139 350.483);
  --secondary: oklch(0.943 0.041 160.723);
  --secondary-foreground: oklch(0.253 0.05 155.203);
  --accent: oklch(0.943 0.041 160.723);
  --accent-foreground: oklch(0.253 0.05 155.203);
  --destructive: oklch(0.361 0.111 36.435);
  --destructive-foreground: oklch(0.854 0.068 37.597);
  --ring: oklch(0.907 0.042 342.884);
  --chart-1: oklch(0.907 0.042 342.884);
  --chart-2: oklch(0.943 0.041 160.723);
  --chart-3: oklch(0.943 0.041 160.723);
  --chart-4: oklch(0.96 0.029 161.073);
  --chart-5: oklch(0.906 0.044 342.936);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.015 341.839);
  --foreground: oklch(0.975 0.006 341.949);
  --muted: oklch(0.264 0.041 157.228);
  --muted-foreground: oklch(0.748 0.031 160.775);
  --popover: oklch(0.126 0.015 341.839);
  --popover-foreground: oklch(0.975 0.006 341.949);
  --card: oklch(0.126 0.015 341.839);
  --card-foreground: oklch(0.975 0.006 341.949);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.907 0.042 342.884);
  --primary-foreground: oklch(0.405 0.139 350.483);
  --secondary: oklch(0.943 0.041 160.723);
  --secondary-foreground: oklch(0.253 0.05 155.203);
  --accent: oklch(0.943 0.041 160.723);
  --accent-foreground: oklch(0.253 0.05 155.203);
  --destructive: oklch(0.658 0.186 37.036);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.907 0.042 342.884);
  --chart-1: oklch(0.907 0.042 342.884);
  --chart-2: oklch(0.943 0.041 160.723);
  --chart-3: oklch(0.943 0.041 160.723);
  --chart-4: oklch(0.96 0.029 161.073);
  --chart-5: oklch(0.906 0.044 342.936);
}