Wide-eyed for shadcn/ui

Wide-eyed is a shadcn/ui theme built around a muted green primary color (#47643a) with neutral gray accents (#d3d4d3). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted green primary (#47643a) on a neutral background (#040802).

Color palette

TokenLightDark
Background
#fcfefbwhite
#040802black
Foreground
#020401black
#fcfdfcwhite
Card
#f9fcf8mintcream
#060c04black
Card foreground
#000000black
#ffffffwhite
Popover
#f9fcf8mintcream
#060c04black
Popover foreground
#000000black
#ffffffwhite
Primary
#47643adarkolivegreen
#47643adarkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d3d4d3lightgrey
#2d3928darkslategray
Secondary foreground
#3a3b3adarkslategray
#c6d3c0silver
Muted
#f1f7eewhitesmoke
#0b1108black
Muted foreground
#585e55dimgray
#a4aaa1darkgray
Accent
#d3d4d3lightgrey
#2d3928darkslategray
Accent foreground
#3a3b3adarkslategray
#c6d3c0silver
Destructive
#c0330cfirebrick
#f3663ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#47643adarkolivegreen
#47643adarkolivegreen

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.33:1AAA
Primary button6.62:1AA
Secondary button7.58:1AAA
Muted text6.10:1AA
Accent7.58:1AAA
Destructive5.65:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button6.62:1AA
Secondary button7.82:1AAA
Muted text8.04:1AAA
Accent7.82:1AAA
Destructive6.78:1AA

CSS variables

Paste this into your globals.css to use Wide-eyed in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 135.443);
  --foreground: oklch(0.1 0.018 133.709);
  --muted: oklch(0.968 0.013 135.486);
  --muted-foreground: oklch(0.473 0.016 135.576);
  --popover: oklch(0.988 0.007 135.458);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.007 135.458);
  --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.47 0.074 136.276);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.869 0.001 135.434);
  --secondary-foreground: oklch(0.352 0.002 135.455);
  --accent: oklch(0.869 0.001 135.434);
  --accent-foreground: oklch(0.352 0.002 135.455);
  --destructive: oklch(0.535 0.183 34.542);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.47 0.074 136.276);
  --chart-1: oklch(0.47 0.074 136.276);
  --chart-2: oklch(0.869 0.001 135.434);
  --chart-3: oklch(0.869 0.001 135.434);
  --chart-4: oklch(0.893 0.001 135.433);
  --chart-5: oklch(0.475 0.082 136.386);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.019 133.925);
  --foreground: oklch(0.993 0.001 135.432);
  --muted: oklch(0.168 0.02 135.817);
  --muted-foreground: oklch(0.731 0.014 135.513);
  --popover: oklch(0.143 0.022 134.019);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.022 134.019);
  --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.47 0.074 136.276);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.328 0.032 135.891);
  --secondary-foreground: oklch(0.851 0.028 135.573);
  --accent: oklch(0.328 0.032 135.891);
  --accent-foreground: oklch(0.851 0.028 135.573);
  --destructive: oklch(0.681 0.182 36.236);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.47 0.074 136.276);
  --chart-1: oklch(0.47 0.074 136.276);
  --chart-2: oklch(0.328 0.032 135.891);
  --chart-3: oklch(0.328 0.032 135.891);
  --chart-4: oklch(0.36 0.036 135.907);
  --chart-5: oklch(0.475 0.082 136.386);
}