Soft Purple Aardvark for shadcn/ui

Soft Purple Aardvark is a shadcn/ui theme built around a purple primary color (#ad6cc1) with purple accents (#c16caa). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the purple primary (#ad6cc1) on a purple-tinted background (#0a030c).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#0a030cblack
Foreground
#070208black
#f8f6f9whitesmoke
Card
#fbf7fdghostwhite
#0a030cblack
Card foreground
#070208black
#f8f6f9whitesmoke
Popover
#fbf7fdghostwhite
#0a030cblack
Popover foreground
#070208black
#f8f6f9whitesmoke
Primary
#ad6cc1mediumorchid
#ad6cc1mediumorchid
Primary foreground
#000000black
#000000black
Secondary
#826cc1mediumpurple
#826cc1mediumpurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0eef6whitesmoke
#0b0911black
Muted foreground
#464252darkslategray
#b1adbddarkgray
Accent
#c16caapalevioletred
#c16caapalevioletred
Accent foreground
#000000black
#000000black
Destructive
#b73710firebrick
#ee643atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e4e0e5gainsboro
#28232adarkslategray
Input
#e4e0e5gainsboro
#28232adarkslategray
Ring
#ad6cc1mediumorchid
#ad6cc1mediumorchid

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button5.68:1AA
Secondary button4.32:1AA Large
Muted text8.45:1AAA
Accent5.98:1AA
Destructive5.89:1AA
Dark mode
Text on background18.94:1AAA
Text on card18.94:1AAA
Primary button5.68:1AA
Secondary button4.32:1AA Large
Muted text9.04:1AAA
Accent5.98:1AA
Destructive6.51:1AA

CSS variables

Paste this into your globals.css to use Soft Purple Aardvark in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.009 318.321);
  --foreground: oklch(0.104 0.028 320.58);
  --muted: oklch(0.953 0.011 298.357);
  --muted-foreground: oklch(0.389 0.028 297.306);
  --popover: oklch(0.981 0.009 318.321);
  --popover-foreground: oklch(0.104 0.028 320.58);
  --card: oklch(0.981 0.009 318.321);
  --card-foreground: oklch(0.104 0.028 320.58);
  --border: oklch(0.912 0.008 318.321);
  --input: oklch(0.912 0.008 318.321);
  --primary: oklch(0.633 0.142 317.998);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.589 0.129 294.375);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.647 0.134 337.873);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.523 0.171 35.758);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.633 0.142 317.998);
  --chart-1: oklch(0.633 0.142 317.998);
  --chart-2: oklch(0.589 0.129 294.375);
  --chart-3: oklch(0.647 0.134 337.873);
  --chart-4: oklch(0.62 0.119 294.968);
  --chart-5: oklch(0.632 0.152 317.953);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.029 320.015);
  --foreground: oklch(0.975 0.005 318.325);
  --muted: oklch(0.145 0.018 296.537);
  --muted-foreground: oklch(0.756 0.023 298.023);
  --popover: oklch(0.12 0.029 320.015);
  --popover-foreground: oklch(0.975 0.005 318.325);
  --card: oklch(0.12 0.029 320.015);
  --card-foreground: oklch(0.975 0.005 318.325);
  --border: oklch(0.264 0.015 318.274);
  --input: oklch(0.264 0.015 318.274);
  --primary: oklch(0.633 0.142 317.998);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.589 0.129 294.375);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.647 0.134 337.873);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.67 0.18 37.261);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.633 0.142 317.998);
  --chart-1: oklch(0.633 0.142 317.998);
  --chart-2: oklch(0.589 0.129 294.375);
  --chart-3: oklch(0.647 0.134 337.873);
  --chart-4: oklch(0.62 0.119 294.968);
  --chart-5: oklch(0.632 0.152 317.953);
}