Wordy for shadcn/ui

Wordy is a shadcn/ui theme built around an indigo primary color (#2e2b8c) with muted light indigo accents (#e1e0eb). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#2e2b8c) on an indigo-tinted background (#06050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#06050ablack
Foreground
#030208black
#f9f9fbghostwhite
Card
#fcfcfcsnow
#07070dblack
Card foreground
#010104black
#fcfcfdwhite
Popover
#fcfcfcsnow
#07070dblack
Popover foreground
#010104black
#fcfcfdwhite
Primary
#2e2b8cdarkslateblue
#2e2b8cdarkslateblue
Primary foreground
#f0effawhitesmoke
#f0effawhitesmoke
Secondary
#e1e0ebgainsboro
#19191ablack
Secondary foreground
#3e3d5cdarkslategray
#b0b0b5darkgray
Muted
#cccbe7thistle
#191834midnightblue
Muted foreground
#54545fdimgray
#a1a0abdarkgray
Accent
#e1e0ebgainsboro
#19191ablack
Accent foreground
#3e3d5cdarkslategray
#b0b0b5darkgray
Destructive
#873a0dsaddlebrown
#d55c15chocolate
Destructive foreground
#faddccbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2e2b8cdarkslateblue
#2e2b8cdarkslateblue

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.39:1AAA
Primary button9.97:1AAA
Secondary button7.94:1AAA
Muted text4.71:1AA
Accent7.94:1AAA
Destructive6.18:1AA
Dark mode
Text on background19.30:1AAA
Text on card19.57:1AAA
Primary button9.97:1AAA
Secondary button8.15:1AAA
Muted text6.62:1AA
Accent8.15:1AAA
Destructive3.90: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.097 0.019 284.419);
  --muted: oklch(0.851 0.038 287.092);
  --muted-foreground: oklch(0.45 0.017 287.211);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.077 0.015 284.419);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.077 0.015 284.419);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.362 0.155 276.776);
  --primary-foreground: oklch(0.957 0.014 287.659);
  --secondary: oklch(0.911 0.014 287.658);
  --secondary-foreground: oklch(0.375 0.052 285.13);
  --accent: oklch(0.911 0.014 287.658);
  --accent-foreground: oklch(0.375 0.052 285.13);
  --destructive: oklch(0.445 0.118 45.44);
  --destructive-foreground: oklch(0.917 0.04 52.024);
  --ring: oklch(0.362 0.155 276.776);
  --chart-1: oklch(0.362 0.155 276.776);
  --chart-2: oklch(0.911 0.014 287.658);
  --chart-3: oklch(0.911 0.014 287.658);
  --chart-4: oklch(0.938 0.01 287.75);
  --chart-5: oklch(0.359 0.163 275.833);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.012 286.241);
  --foreground: oklch(0.982 0.003 287.889);
  --muted: oklch(0.228 0.052 282.936);
  --muted-foreground: oklch(0.711 0.015 287.534);
  --popover: oklch(0.133 0.014 286.079);
  --popover-foreground: oklch(0.991 0.001 287.914);
  --card: oklch(0.133 0.014 286.079);
  --card-foreground: oklch(0.991 0.001 287.914);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.362 0.155 276.776);
  --primary-foreground: oklch(0.957 0.014 287.659);
  --secondary: oklch(0.213 0.003 287.68);
  --secondary-foreground: oklch(0.759 0.006 287.781);
  --accent: oklch(0.213 0.003 287.68);
  --accent-foreground: oklch(0.759 0.006 287.781);
  --destructive: oklch(0.619 0.17 44.56);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.362 0.155 276.776);
  --chart-1: oklch(0.362 0.155 276.776);
  --chart-2: oklch(0.213 0.003 287.68);
  --chart-3: oklch(0.213 0.003 287.68);
  --chart-4: oklch(0.245 0.004 287.656);
  --chart-5: oklch(0.359 0.163 275.833);
}