Exaggeration for shadcn/ui

Exaggeration is a shadcn/ui theme built around an indigo primary color (#3e3b81) with muted light indigo accents (#cdcddb). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#3e3b81) on an indigo-tinted background (#06060e).

Color palette

TokenLightDark
Background
#ffffffwhite
#06060eblack
Foreground
#020208black
#ffffffwhite
Card
#ffffffwhite
#06060eblack
Card foreground
#020208black
#ffffffwhite
Popover
#ffffffwhite
#06060eblack
Popover foreground
#020208black
#ffffffwhite
Primary
#3e3b81darkslateblue
#3e3b81darkslateblue
Primary foreground
#f5f5fawhitesmoke
#f5f5fawhitesmoke
Secondary
#e6e6ealavender
#1e1e1fblack
Secondary foreground
#484757darkslategray
#b7b7b8silver
Muted
#cdcce5lightgrey
#1a1a33midnightblue
Muted foreground
#525161dimgray
#9e9eaedarkgray
Accent
#cdcddblightgrey
#2a2a32darkslategray
Accent foreground
#323144darkslategray
#c2c2ccsilver
Destructive
#852d05saddlebrown
#f65b13orangered
Destructive foreground
#fdd3bfpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3e3b81darkslateblue
#3e3b81darkslateblue

Contrast

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

Light mode
Text on background20.69:1AAA
Text on card20.69:1AAA
Primary button8.96:1AAA
Secondary button7.27:1AAA
Muted text4.94:1AA
Accent8.03:1AAA
Destructive6.41:1AA
Dark mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button8.96:1AAA
Secondary button8.28:1AAA
Muted text6.43:1AA
Accent8.06:1AAA
Destructive6.43:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.095 0.021 283.971);
  --muted: oklch(0.854 0.035 287.168);
  --muted-foreground: oklch(0.442 0.026 286.806);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.095 0.021 283.971);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.095 0.021 283.971);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.395 0.114 281.312);
  --primary-foreground: oklch(0.97 0.008 287.796);
  --secondary: oklch(0.926 0.006 287.816);
  --secondary-foreground: oklch(0.405 0.026 286.689);
  --accent: oklch(0.852 0.019 287.521);
  --accent-foreground: oklch(0.323 0.033 285.913);
  --destructive: oklch(0.424 0.128 40.269);
  --destructive-foreground: oklch(0.896 0.054 46.268);
  --ring: oklch(0.395 0.114 281.312);
  --chart-1: oklch(0.395 0.114 281.312);
  --chart-2: oklch(0.926 0.006 287.816);
  --chart-3: oklch(0.852 0.019 287.521);
  --chart-4: oklch(0.951 0.004 287.86);
  --chart-5: oklch(0.39 0.123 280.525);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.02 285.016);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.231 0.048 283.491);
  --muted-foreground: oklch(0.704 0.023 287.318);
  --popover: oklch(0.128 0.02 285.016);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.128 0.02 285.016);
  --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.395 0.114 281.312);
  --primary-foreground: oklch(0.97 0.008 287.796);
  --secondary: oklch(0.237 0.001 287.849);
  --secondary-foreground: oklch(0.78 0.002 287.892);
  --accent: oklch(0.288 0.015 286.947);
  --accent-foreground: oklch(0.817 0.014 287.62);
  --destructive: oklch(0.669 0.203 40.031);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.395 0.114 281.312);
  --chart-1: oklch(0.395 0.114 281.312);
  --chart-2: oklch(0.237 0.001 287.849);
  --chart-3: oklch(0.288 0.015 286.947);
  --chart-4: oklch(0.268 0.001 287.843);
  --chart-5: oklch(0.39 0.123 280.525);
}