Exotic for shadcn/ui

Exotic is a shadcn/ui theme built around a light purple primary color (#f3ddee) with light green accents (#ddf3e2). The light mode uses a neutral background (#fbf8fb). Dark mode keeps the light purple primary (#f3ddee) on a purple-tinted background (#0b0509).

Color palette

TokenLightDark
Background
#fbf8fbsnow
#0b0509black
Foreground
#0d020bblack
#fdfbfdsnow
Card
#faf5f9whitesmoke
#0e060cblack
Card foreground
#090107black
#ffffffwhite
Popover
#faf5f9whitesmoke
#0e060cblack
Popover foreground
#090107black
#ffffffwhite
Primary
#f3ddeemistyrose
#f3ddeemistyrose
Primary foreground
#742a63purple
#742a63purple
Secondary
#ddf3e2gainsboro
#ddf3e2gainsboro
Secondary foreground
#0f2915black
#0f2915black
Muted
#d4e7d9gainsboro
#182b1cblack
Muted foreground
#48614ddarkslategray
#9eb7a4darkgray
Accent
#ddf3e2gainsboro
#ddf3e2gainsboro
Accent foreground
#0f2915black
#0f2915black
Destructive
#ac3d02saddlebrown
#fd6412orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3ddeemistyrose
#f3ddeemistyrose

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.11:1AAA
Primary button7.27:1AAA
Secondary button13.33:1AAA
Muted text5.26:1AA
Accent13.33:1AAA
Destructive6.14:1AA
Dark mode
Text on background19.65:1AAA
Text on card19.98:1AAA
Primary button7.27:1AAA
Secondary button13.33:1AAA
Muted text6.99:1AA
Accent13.33:1AAA
Destructive6.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 333.314);
  --foreground: oklch(0.12 0.036 334.942);
  --muted: oklch(0.911 0.028 152.721);
  --muted-foreground: oklch(0.465 0.043 151.596);
  --popover: oklch(0.975 0.007 333.352);
  --popover-foreground: oklch(0.105 0.031 334.284);
  --card: oklch(0.975 0.007 333.352);
  --card-foreground: oklch(0.105 0.031 334.284);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.921 0.032 333.794);
  --primary-foreground: oklch(0.414 0.126 337.864);
  --secondary: oklch(0.943 0.032 152.681);
  --secondary-foreground: oklch(0.255 0.05 149.304);
  --accent: oklch(0.943 0.032 152.681);
  --accent-foreground: oklch(0.255 0.05 149.304);
  --destructive: oklch(0.511 0.156 41.189);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.921 0.032 333.794);
  --chart-1: oklch(0.921 0.032 333.794);
  --chart-2: oklch(0.943 0.032 152.681);
  --chart-3: oklch(0.943 0.032 152.681);
  --chart-4: oklch(0.962 0.021 152.879);
  --chart-5: oklch(0.92 0.034 333.829);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.019 333.873);
  --foreground: oklch(0.991 0.003 333.289);
  --muted: oklch(0.266 0.037 150.643);
  --muted-foreground: oklch(0.756 0.039 152.368);
  --popover: oklch(0.139 0.021 334.884);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.021 334.884);
  --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.921 0.032 333.794);
  --primary-foreground: oklch(0.414 0.126 337.864);
  --secondary: oklch(0.943 0.032 152.681);
  --secondary-foreground: oklch(0.255 0.05 149.304);
  --accent: oklch(0.943 0.032 152.681);
  --accent-foreground: oklch(0.255 0.05 149.304);
  --destructive: oklch(0.69 0.202 42.133);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.921 0.032 333.794);
  --chart-1: oklch(0.921 0.032 333.794);
  --chart-2: oklch(0.943 0.032 152.681);
  --chart-3: oklch(0.943 0.032 152.681);
  --chart-4: oklch(0.962 0.021 152.879);
  --chart-5: oklch(0.92 0.034 333.829);
}