Exclamation for shadcn/ui

Exclamation is a shadcn/ui theme built around a vivid violet primary color (#381494) with vivid purple accents (#781494). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid violet primary (#381494) on a violet-tinted background (#080510).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#080510black
Foreground
#05030dblack
#faf9fbghostwhite
Card
#fcfcfdwhite
#080510black
Card foreground
#05030dblack
#faf9fbghostwhite
Popover
#fcfcfdwhite
#080510black
Popover foreground
#05030dblack
#faf9fbghostwhite
Primary
#381494indigo
#381494indigo
Primary foreground
#e7e0fblavender
#e7e0fblavender
Secondary
#143094midnightblue
#143094midnightblue
Secondary foreground
#e0e5fblavender
#e0e5fblavender
Muted
#e0e3f1lavender
#0e121fblack
Muted foreground
#52596fdimgray
#9096addarkgray
Accent
#781494darkmagenta
#781494darkmagenta
Accent foreground
#f5e0fblavender
#f5e0fblavender
Destructive
#a51603darkred
#f02005red
Destructive foreground
#fee0dcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#381494indigo
#381494indigo

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button9.67:1AAA
Secondary button8.92:1AAA
Muted text5.44:1AA
Accent7.25:1AAA
Destructive6.22:1AA
Dark mode
Text on background19.28:1AAA
Text on card19.28:1AAA
Primary button9.67:1AAA
Secondary button8.92:1AAA
Muted text6.34:1AA
Accent7.25:1AAA
Destructive4.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 299.266);
  --foreground: oklch(0.109 0.03 299.025);
  --muted: oklch(0.918 0.018 273.629);
  --muted-foreground: oklch(0.466 0.038 272.783);
  --popover: oklch(0.991 0.002 299.266);
  --popover-foreground: oklch(0.109 0.03 299.025);
  --card: oklch(0.991 0.002 299.266);
  --card-foreground: oklch(0.109 0.03 299.025);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.35 0.185 284.329);
  --primary-foreground: oklch(0.92 0.037 298.604);
  --secondary: oklch(0.365 0.167 265.784);
  --secondary-foreground: oklch(0.925 0.03 273.48);
  --accent: oklch(0.432 0.195 317.088);
  --accent-foreground: oklch(0.931 0.043 318.874);
  --destructive: oklch(0.462 0.178 30.939);
  --destructive-foreground: oklch(0.931 0.034 26.725);
  --ring: oklch(0.35 0.185 284.329);
  --chart-1: oklch(0.35 0.185 284.329);
  --chart-2: oklch(0.365 0.167 265.784);
  --chart-3: oklch(0.432 0.195 317.088);
  --chart-4: oklch(0.387 0.179 265.697);
  --chart-5: oklch(0.349 0.19 283.45);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.028 298.047);
  --foreground: oklch(0.983 0.002 299.273);
  --muted: oklch(0.186 0.028 271.658);
  --muted-foreground: oklch(0.675 0.034 273.225);
  --popover: oklch(0.126 0.028 298.047);
  --popover-foreground: oklch(0.983 0.002 299.273);
  --card: oklch(0.126 0.028 298.047);
  --card-foreground: oklch(0.983 0.002 299.273);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.35 0.185 284.329);
  --primary-foreground: oklch(0.92 0.037 298.604);
  --secondary: oklch(0.365 0.167 265.784);
  --secondary-foreground: oklch(0.925 0.03 273.48);
  --accent: oklch(0.432 0.195 317.088);
  --accent-foreground: oklch(0.931 0.043 318.874);
  --destructive: oklch(0.609 0.237 30.63);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.35 0.185 284.329);
  --chart-1: oklch(0.35 0.185 284.329);
  --chart-2: oklch(0.365 0.167 265.784);
  --chart-3: oklch(0.432 0.195 317.088);
  --chart-4: oklch(0.387 0.179 265.697);
  --chart-5: oklch(0.349 0.19 283.45);
}