Wordy for shadcn/ui

Wordy is a shadcn/ui theme built around a muted indigo primary color (#44425c) with muted yellow accents (#5a5c42). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#44425c) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#ffffffwhite
#040307black
Foreground
#010104black
#f9f9fbghostwhite
Card
#ffffffwhite
#040307black
Card foreground
#010104black
#f9f9fbghostwhite
Popover
#ffffffwhite
#040307black
Popover foreground
#010104black
#f9f9fbghostwhite
Primary
#44425cdarkslategray
#44425cdarkslategray
Primary foreground
#e5e4eclavender
#e5e4eclavender
Secondary
#5a5c42darkolivegreen
#5a5c42darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0f0ealinen
#15150fblack
Muted foreground
#6d6e5edimgray
#a0a191darkgray
Accent
#5a5c42darkolivegreen
#5a5c42darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#882f02saddlebrown
#ec5104orangered
Destructive foreground
#fed3bepeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#44425cdarkslategray
#44425cdarkslategray

Contrast

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

Light mode
Text on background20.84:1AAA
Text on card20.84:1AAA
Primary button7.61:1AAA
Secondary button6.90:1AA
Muted text4.55:1AA
Accent6.90:1AA
Destructive6.25:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button7.61:1AAA
Secondary button6.90:1AA
Muted text6.98:1AA
Accent6.90:1AA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.074 0.019 284.412);
  --muted: oklch(0.954 0.009 108.874);
  --muted-foreground: oklch(0.533 0.025 109.551);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.074 0.019 284.412);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.074 0.019 284.412);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.392 0.043 286.553);
  --primary-foreground: oklch(0.922 0.01 288.509);
  --secondary: oklch(0.465 0.039 110.202);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.465 0.039 110.202);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.43 0.131 40.956);
  --destructive-foreground: oklch(0.898 0.056 48.071);
  --ring: oklch(0.392 0.043 286.553);
  --chart-1: oklch(0.392 0.043 286.553);
  --chart-2: oklch(0.465 0.039 110.202);
  --chart-3: oklch(0.465 0.039 110.202);
  --chart-4: oklch(0.496 0.042 110.218);
  --chart-5: oklch(0.386 0.051 286.056);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.012 286.888);
  --foreground: oklch(0.982 0.004 288.64);
  --muted: oklch(0.193 0.012 109.868);
  --muted-foreground: oklch(0.704 0.023 109.311);
  --popover: oklch(0.104 0.012 286.888);
  --popover-foreground: oklch(0.982 0.004 288.64);
  --card: oklch(0.104 0.012 286.888);
  --card-foreground: oklch(0.982 0.004 288.64);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.392 0.043 286.553);
  --primary-foreground: oklch(0.922 0.01 288.509);
  --secondary: oklch(0.465 0.039 110.202);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.465 0.039 110.202);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.641 0.202 39.39);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.392 0.043 286.553);
  --chart-1: oklch(0.392 0.043 286.553);
  --chart-2: oklch(0.465 0.039 110.202);
  --chart-3: oklch(0.465 0.039 110.202);
  --chart-4: oklch(0.496 0.042 110.218);
  --chart-5: oklch(0.386 0.051 286.056);
}