Wording for shadcn/ui

Wording is a shadcn/ui theme built around a muted deep violet primary color (#383541) with neutral gray accents (#c5c3cb). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the muted deep violet primary (#383541) on a violet-tinted background (#06040c).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#06040cblack
Foreground
#020104black
#fcfcfdwhite
Card
#f9f8fcghostwhite
#06040cblack
Card foreground
#020104black
#fcfcfdwhite
Popover
#f9f8fcghostwhite
#06040cblack
Popover foreground
#020104black
#fcfcfdwhite
Primary
#383541darkslategray
#383541darkslategray
Primary foreground
#d2cfd8lightgrey
#d2cfd8lightgrey
Secondary
#d6d6d7lightgrey
#1f1d25black
Secondary foreground
#3d3d3edarkslategray
#b6b1c3silver
Muted
#d7d5ddgainsboro
#25222adarkslategray
Muted foreground
#424144darkslategray
#bcbbbesilver
Accent
#c5c3cbsilver
#2a2636darkslategray
Accent foreground
#2d2b31darkslategray
#c3bdd1silver
Destructive
#a62e03firebrick
#e23f03orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#383541darkslategray
#383541darkslategray

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.64:1AAA
Primary button7.80:1AAA
Secondary button7.45:1AAA
Muted text6.97:1AA
Accent8.02:1AAA
Destructive6.97:1AA
Dark mode
Text on background19.91:1AAA
Text on card19.91:1AAA
Primary button7.80:1AAA
Secondary button7.98:1AAA
Muted text8.17:1AAA
Accent8.07:1AAA
Destructive4.24:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 299.198);
  --foreground: oklch(0.074 0.022 299.366);
  --muted: oklch(0.877 0.011 299.096);
  --muted-foreground: oklch(0.377 0.005 299.097);
  --popover: oklch(0.98 0.006 299.198);
  --popover-foreground: oklch(0.074 0.022 299.366);
  --card: oklch(0.98 0.006 299.198);
  --card-foreground: oklch(0.074 0.022 299.366);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.336 0.021 298.235);
  --primary-foreground: oklch(0.86 0.012 299.062);
  --secondary: oklch(0.876 0.001 299.282);
  --secondary-foreground: oklch(0.359 0.002 299.203);
  --accent: oklch(0.821 0.011 299.072);
  --accent-foreground: oklch(0.292 0.012 298.61);
  --destructive: oklch(0.483 0.162 36.391);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.336 0.021 298.235);
  --chart-1: oklch(0.336 0.021 298.235);
  --chart-2: oklch(0.876 0.001 299.282);
  --chart-3: oklch(0.821 0.011 299.072);
  --chart-4: oklch(0.899 0.001 299.287);
  --chart-5: oklch(0.332 0.027 297.884);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.023 299.194);
  --foreground: oklch(0.992 0.001 299.288);
  --muted: oklch(0.259 0.014 298.341);
  --muted-foreground: oklch(0.795 0.004 299.223);
  --popover: oklch(0.115 0.023 299.194);
  --popover-foreground: oklch(0.992 0.001 299.288);
  --card: oklch(0.115 0.023 299.194);
  --card-foreground: oklch(0.992 0.001 299.288);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.336 0.021 298.235);
  --primary-foreground: oklch(0.86 0.012 299.062);
  --secondary: oklch(0.237 0.017 298.082);
  --secondary-foreground: oklch(0.771 0.026 298.729);
  --accent: oklch(0.28 0.031 297.381);
  --accent-foreground: oklch(0.809 0.029 298.693);
  --destructive: oklch(0.605 0.207 35.738);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.336 0.021 298.235);
  --chart-1: oklch(0.336 0.021 298.235);
  --chart-2: oklch(0.237 0.017 298.082);
  --chart-3: oklch(0.28 0.031 297.381);
  --chart-4: oklch(0.266 0.02 298.004);
  --chart-5: oklch(0.332 0.027 297.884);
}