Wide-eyed for shadcn/ui

Wide-eyed is a shadcn/ui theme built around a muted violet primary color (#8d679e) with muted purple accents (#9e6793). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted violet primary (#8d679e) on a violet-tinted background (#0d0410).

Color palette

TokenLightDark
Background
#fdfbfewhite
#0d0410black
Foreground
#030105black
#f9f4fawhitesmoke
Card
#fbf7fdghostwhite
#100514black
Card foreground
#000000black
#fbf8fcghostwhite
Popover
#fbf7fdghostwhite
#100514black
Popover foreground
#000000black
#fbf8fcghostwhite
Primary
#8d679elightslategray
#8d679elightslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#72679eslategray
#72679eslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d3cde9gainsboro
#1b1632black
Muted foreground
#54525bdimgray
#a6a4addarkgray
Accent
#9e6793gray
#9e6793gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b71c01firebrick
#fe4120orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8d679elightslategray
#8d679elightslategray

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card19.78:1AAA
Primary button4.61:1AA
Secondary button5.09:1AA
Muted text5.01:1AA
Accent4.38:1AA Large
Destructive6.61:1AA
Dark mode
Text on background18.56:1AAA
Text on card18.90:1AAA
Primary button4.61:1AA
Secondary button5.09:1AA
Muted text7.07:1AAA
Accent4.38:1AA Large
Destructive3.50:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 316.004);
  --foreground: oklch(0.079 0.027 318.893);
  --muted: oklch(0.863 0.039 294.748);
  --muted-foreground: oklch(0.445 0.014 294.989);
  --popover: oklch(0.98 0.01 315.985);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.01 315.985);
  --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.572 0.093 315.409);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.545 0.085 292.525);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.586 0.093 334.189);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.5 0.191 31.655);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.572 0.093 315.409);
  --chart-1: oklch(0.572 0.093 315.409);
  --chart-2: oklch(0.545 0.085 292.525);
  --chart-3: oklch(0.586 0.093 334.189);
  --chart-4: oklch(0.575 0.079 292.919);
  --chart-5: oklch(0.569 0.105 315.307);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.033 316.47);
  --foreground: oklch(0.973 0.009 315.989);
  --muted: oklch(0.222 0.053 290.621);
  --muted-foreground: oklch(0.723 0.013 295.259);
  --popover: oklch(0.144 0.037 315.695);
  --popover-foreground: oklch(0.982 0.006 316);
  --card: oklch(0.144 0.037 315.695);
  --card-foreground: oklch(0.982 0.006 316);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.572 0.093 315.409);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.545 0.085 292.525);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.586 0.093 334.189);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.656 0.229 32.233);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.572 0.093 315.409);
  --chart-1: oklch(0.572 0.093 315.409);
  --chart-2: oklch(0.545 0.085 292.525);
  --chart-3: oklch(0.586 0.093 334.189);
  --chart-4: oklch(0.575 0.079 292.919);
  --chart-5: oklch(0.569 0.105 315.307);
}