Blinker for shadcn/ui

Blinker is a shadcn/ui theme built around a green primary color (#3f9744) with red accents (#97443f). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#3f9744) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefbwhite
#000000black
Foreground
#010401black
#f6f9f6whitesmoke
Card
#f7fdf7mintcream
#030303black
Card foreground
#000000black
#f9fbf9mintcream
Popover
#f7fdf7mintcream
#030303black
Popover foreground
#000000black
#f9fbf9mintcream
Primary
#3f9744seagreen
#3f9744seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#443f97darkslateblue
#443f97darkslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ececf4lavender
#0c0b13black
Muted foreground
#454545darkslategray
#bababasilver
Accent
#97443fsienna
#97443fsienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9d1b02darkred
#fd5230tomato
Destructive foreground
#ffd9d2bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3f9744seagreen
#3f9744seagreen

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.31:1AAA
Primary button3.66:1AA Large
Secondary button8.73:1AAA
Muted text8.15:1AAA
Accent6.55:1AA
Destructive6.23:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.88:1AAA
Primary button3.66:1AA Large
Secondary button8.73:1AAA
Muted text10.06:1AAA
Accent6.55:1AA
Destructive6.42:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 146.996);
  --foreground: oklch(0.099 0.025 145.037);
  --muted: oklch(0.945 0.01 288.507);
  --muted-foreground: oklch(0.39 0 165.964);
  --popover: oklch(0.987 0.009 146.952);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.009 146.952);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.603 0.147 144.351);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.424 0.139 280.884);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.493 0.113 25.11);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.449 0.167 32.398);
  --destructive-foreground: oklch(0.915 0.043 31.209);
  --ring: oklch(0.603 0.147 144.351);
  --chart-1: oklch(0.603 0.147 144.351);
  --chart-2: oklch(0.424 0.139 280.884);
  --chart-3: oklch(0.493 0.113 25.11);
  --chart-4: oklch(0.444 0.147 280.795);
  --chart-5: oklch(0.61 0.155 144.199);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.006 146.984);
  --muted: oklch(0.156 0.016 286.655);
  --muted-foreground: oklch(0.789 0 171.254);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.986 0.004 147.002);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.004 147.002);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.603 0.147 144.351);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.424 0.139 280.884);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.493 0.113 25.11);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.672 0.213 33.175);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.603 0.147 144.351);
  --chart-1: oklch(0.603 0.147 144.351);
  --chart-2: oklch(0.424 0.139 280.884);
  --chart-3: oklch(0.493 0.113 25.11);
  --chart-4: oklch(0.444 0.147 280.795);
  --chart-5: oklch(0.61 0.155 144.199);
}