Fast for shadcn/ui

Fast is a shadcn/ui theme built around a vivid light violet primary color (#c197f2) with neutral gray accents (#e0dfe1). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid light violet primary (#c197f2) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#fcfbfewhite
#020104black
Foreground
#0c0416black
#f7f6f9whitesmoke
Card
#faf8fcghostwhite
#050308black
Card foreground
#0a0312black
#faf9fbghostwhite
Popover
#faf8fcghostwhite
#050308black
Popover foreground
#0a0312black
#faf9fbghostwhite
Primary
#c197f2plum
#c197f2plum
Primary foreground
#290a4dmidnightblue
#290a4dmidnightblue
Secondary
#e0dfe1gainsboro
#282230darkslategray
Secondary foreground
#47454adarkslategray
#c1b7ccsilver
Muted
#e3e0e5gainsboro
#1c1a1fblack
Muted foreground
#636264dimgray
#9b9b9ddarkgray
Accent
#e0dfe1gainsboro
#282230darkslategray
Accent foreground
#47454adarkslategray
#c1b7ccsilver
Destructive
#7e0602maroon
#fb1109red
Destructive foreground
#feb6b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c197f2plum
#c197f2plum

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.18:1AAA
Primary button7.22:1AAA
Secondary button7.15:1AAA
Muted text4.65:1AA
Accent7.15:1AAA
Destructive6.58:1AA
Dark mode
Text on background19.30:1AAA
Text on card19.59:1AAA
Primary button7.22:1AAA
Secondary button8.01:1AAA
Muted text6.24:1AA
Accent8.01:1AAA
Destructive4.04:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 307.073);
  --foreground: oklch(0.134 0.044 305.052);
  --muted: oklch(0.911 0.007 307.014);
  --muted-foreground: oklch(0.499 0.003 307.03);
  --popover: oklch(0.981 0.006 307.033);
  --popover-foreground: oklch(0.123 0.039 306.828);
  --card: oklch(0.981 0.006 307.033);
  --card-foreground: oklch(0.123 0.039 306.828);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.75 0.133 304.853);
  --primary-foreground: oklch(0.244 0.112 298.663);
  --secondary: oklch(0.906 0.003 307.076);
  --secondary-foreground: oklch(0.395 0.008 306.877);
  --accent: oklch(0.906 0.003 307.076);
  --accent-foreground: oklch(0.395 0.008 306.877);
  --destructive: oklch(0.375 0.149 29.616);
  --destructive-foreground: oklch(0.843 0.084 21.215);
  --ring: oklch(0.75 0.133 304.853);
  --chart-1: oklch(0.75 0.133 304.853);
  --chart-2: oklch(0.906 0.003 307.076);
  --chart-3: oklch(0.906 0.003 307.076);
  --chart-4: oklch(0.93 0.002 307.086);
  --chart-5: oklch(0.747 0.138 304.749);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.015 308.331);
  --foreground: oklch(0.974 0.005 307.055);
  --muted: oklch(0.221 0.01 306.541);
  --muted-foreground: oklch(0.689 0.003 307.057);
  --popover: oklch(0.104 0.019 308.331);
  --popover-foreground: oklch(0.983 0.003 307.074);
  --card: oklch(0.104 0.019 308.331);
  --card-foreground: oklch(0.983 0.003 307.074);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.75 0.133 304.853);
  --primary-foreground: oklch(0.244 0.112 298.663);
  --secondary: oklch(0.265 0.027 305.86);
  --secondary-foreground: oklch(0.795 0.031 306.638);
  --accent: oklch(0.265 0.027 305.86);
  --accent-foreground: oklch(0.795 0.031 306.638);
  --destructive: oklch(0.624 0.251 29.31);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.75 0.133 304.853);
  --chart-1: oklch(0.75 0.133 304.853);
  --chart-2: oklch(0.265 0.027 305.86);
  --chart-3: oklch(0.265 0.027 305.86);
  --chart-4: oklch(0.293 0.031 305.803);
  --chart-5: oklch(0.747 0.138 304.749);
}