Outfit for shadcn/ui

Outfit is a shadcn/ui theme built around a vivid violet primary color (#9630fd) with vivid purple accents (#fd30fd). The light mode uses a neutral background (#faf8fc). Dark mode keeps the vivid violet primary (#9630fd) on a violet-tinted background (#0a0410).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#0a0410black
Foreground
#050208black
#f7f6f9whitesmoke
Card
#faf8fcghostwhite
#0a0410black
Card foreground
#050208black
#f7f6f9whitesmoke
Popover
#faf8fcghostwhite
#0a0410black
Popover foreground
#050208black
#f7f6f9whitesmoke
Primary
#9630fdblueviolet
#9630fdblueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#3030fdroyalblue
#3030fdroyalblue
Secondary foreground
#fafaffghostwhite
#fafaffghostwhite
Muted
#dcdce9gainsboro
#161623black
Muted foreground
#565671dimgray
#8e8ea9lightslategray
Accent
#fd30fdmagenta
#fd30fdmagenta
Accent foreground
#000000black
#000000black
Destructive
#b32614firebrick
#e6351eorangered
Destructive foreground
#fefbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9630fdblueviolet
#9630fdblueviolet

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button5.06:1AA
Secondary button6.80:1AA
Muted text5.23:1AA
Accent7.01:1AAA
Destructive6.35:1AA
Dark mode
Text on background18.78:1AAA
Text on card18.78:1AAA
Primary button5.06:1AA
Secondary button6.80:1AA
Muted text5.64:1AA
Accent7.01:1AAA
Destructive4.28:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 308.388);
  --foreground: oklch(0.101 0.024 310.146);
  --muted: oklch(0.9 0.017 286.043);
  --muted-foreground: oklch(0.463 0.045 284.505);
  --popover: oklch(0.981 0.006 308.388);
  --popover-foreground: oklch(0.101 0.024 310.146);
  --card: oklch(0.981 0.006 308.388);
  --card-foreground: oklch(0.101 0.024 310.146);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.575 0.273 299.976);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.49 0.284 269.446);
  --secondary-foreground: oklch(0.986 0.007 286.278);
  --accent: oklch(0.71 0.303 328.199);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.501 0.179 31.041);
  --destructive-foreground: oklch(0.99 0.004 26.466);
  --ring: oklch(0.575 0.273 299.976);
  --chart-1: oklch(0.575 0.273 299.976);
  --chart-2: oklch(0.49 0.284 269.446);
  --chart-3: oklch(0.71 0.303 328.199);
  --chart-4: oklch(0.515 0.268 271.882);
  --chart-5: oklch(0.575 0.278 299.578);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.032 308.247);
  --foreground: oklch(0.974 0.005 308.401);
  --muted: oklch(0.205 0.026 283.92);
  --muted-foreground: oklch(0.655 0.041 285.208);
  --popover: oklch(0.128 0.032 308.247);
  --popover-foreground: oklch(0.974 0.005 308.401);
  --card: oklch(0.128 0.032 308.247);
  --card-foreground: oklch(0.974 0.005 308.401);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.575 0.273 299.976);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.49 0.284 269.446);
  --secondary-foreground: oklch(0.986 0.007 286.278);
  --accent: oklch(0.71 0.303 328.199);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.605 0.215 31.041);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.575 0.273 299.976);
  --chart-1: oklch(0.575 0.273 299.976);
  --chart-2: oklch(0.49 0.284 269.446);
  --chart-3: oklch(0.71 0.303 328.199);
  --chart-4: oklch(0.515 0.268 271.882);
  --chart-5: oklch(0.575 0.278 299.578);
}