Wiry for shadcn/ui

Wiry is a shadcn/ui theme built around a light green primary color (#d5f6d5) with muted light green accents (#bacaba). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#d5f6d5) on a neutral background (#020802).

Color palette

TokenLightDark
Background
#ffffffwhite
#020802black
Foreground
#010401black
#fcfdfcwhite
Card
#ffffffwhite
#020802black
Card foreground
#010401black
#fcfdfcwhite
Popover
#ffffffwhite
#020802black
Popover foreground
#010401black
#fcfdfcwhite
Primary
#d5f6d5gainsboro
#d5f6d5gainsboro
Primary foreground
#092a09black
#092a09black
Secondary
#d7dad7gainsboro
#141a14black
Secondary foreground
#3d423ddarkslategray
#a4bca4darkgray
Muted
#d7e0d7gainsboro
#20281fblack
Muted foreground
#4c5d4cdarkslategray
#a3b3a2darkgray
Accent
#bacabasilver
#223522darkslategray
Accent foreground
#242e23darkslategray
#b8d1b7silver
Destructive
#b80505firebrick
#f91010red
Destructive foreground
#fff0f0lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d5f6d5gainsboro
#d5f6d5gainsboro

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button13.37:1AAA
Secondary button7.30:1AAA
Muted text5.20:1AA
Accent8.20:1AAA
Destructive6.20:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button13.37:1AAA
Secondary button8.66:1AAA
Muted text6.88:1AA
Accent8.03:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.096 0.017 143.591);
  --muted: oklch(0.897 0.015 144.985);
  --muted-foreground: oklch(0.458 0.034 144.566);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.096 0.017 143.591);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.096 0.017 143.591);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.941 0.057 144.669);
  --primary-foreground: oklch(0.253 0.069 142.932);
  --secondary: oklch(0.886 0.005 145.059);
  --secondary-foreground: oklch(0.374 0.011 144.895);
  --accent: oklch(0.822 0.028 144.861);
  --accent-foreground: oklch(0.288 0.024 144.499);
  --destructive: oklch(0.493 0.2 28.992);
  --destructive-foreground: oklch(0.967 0.016 17.429);
  --ring: oklch(0.941 0.057 144.669);
  --chart-1: oklch(0.941 0.057 144.669);
  --chart-2: oklch(0.886 0.005 145.059);
  --chart-3: oklch(0.822 0.028 144.861);
  --chart-4: oklch(0.909 0.004 145.068);
  --chart-5: oklch(0.942 0.059 144.649);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.023 143.467);
  --foreground: oklch(0.993 0.001 145.093);
  --muted: oklch(0.266 0.02 144.563);
  --muted-foreground: oklch(0.75 0.03 144.815);
  --popover: oklch(0.122 0.023 143.467);
  --popover-foreground: oklch(0.993 0.001 145.093);
  --card: oklch(0.122 0.023 143.467);
  --card-foreground: oklch(0.993 0.001 145.093);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.941 0.057 144.669);
  --primary-foreground: oklch(0.253 0.069 142.932);
  --secondary: oklch(0.21 0.017 144.521);
  --secondary-foreground: oklch(0.77 0.042 144.71);
  --accent: oklch(0.306 0.042 144.088);
  --accent-foreground: oklch(0.835 0.045 144.717);
  --destructive: oklch(0.62 0.249 28.787);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.941 0.057 144.669);
  --chart-1: oklch(0.941 0.057 144.669);
  --chart-2: oklch(0.21 0.017 144.521);
  --chart-3: oklch(0.306 0.042 144.088);
  --chart-4: oklch(0.245 0.021 144.461);
  --chart-5: oklch(0.942 0.059 144.649);
}