Fast for shadcn/ui

Fast is a shadcn/ui theme built around a near-white primary color (#f8fcfc) with near-white accents (#fcf8f8). The light mode uses a neutral background (#f8fcfc). Dark mode keeps the near-white primary (#f8fcfc) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#f8fcfcmintcream
#020303black
Foreground
#031111black
#f8fcfcmintcream
Card
#f8fcfcmintcream
#020303black
Card foreground
#031111black
#f8fcfcmintcream
Popover
#f8fcfcmintcream
#020303black
Popover foreground
#031111black
#f8fcfcmintcream
Primary
#f8fcfcmintcream
#f8fcfcmintcream
Primary foreground
#1c3f3edarkslategray
#1c3f3edarkslategray
Secondary
#fcf8f8snow
#fcf8f8snow
Secondary foreground
#863c3fsienna
#863c3fsienna
Muted
#efe6e6linen
#191010black
Muted foreground
#473939darkslategray
#c6b8b9silver
Accent
#fcf8f8snow
#fcf8f8snow
Accent foreground
#863c3fsienna
#863c3fsienna
Destructive
#b03207firebrick
#e13f09orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8fcfcmintcream
#f8fcfcmintcream

Contrast

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

Light mode
Text on background18.57:1AAA
Text on card18.57:1AAA
Primary button11.09:1AAA
Secondary button7.28:1AAA
Muted text8.96:1AAA
Accent7.28:1AAA
Destructive6.35:1AA
Dark mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button11.09:1AAA
Secondary button7.28:1AAA
Muted text9.76:1AAA
Accent7.28:1AAA
Destructive4.25: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.987 0.004 194.716);
  --foreground: oklch(0.164 0.022 192.687);
  --muted: oklch(0.932 0.01 14.987);
  --muted-foreground: oklch(0.359 0.02 15.863);
  --popover: oklch(0.987 0.004 194.716);
  --popover-foreground: oklch(0.164 0.022 192.687);
  --card: oklch(0.987 0.004 194.716);
  --card-foreground: oklch(0.164 0.022 192.687);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.988 0.004 194.712);
  --primary-foreground: oklch(0.343 0.041 192.565);
  --secondary: oklch(0.982 0.004 14.869);
  --secondary-foreground: oklch(0.454 0.101 19.926);
  --accent: oklch(0.982 0.004 14.869);
  --accent-foreground: oklch(0.454 0.101 19.926);
  --destructive: oklch(0.506 0.169 35.847);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.988 0.004 194.712);
  --chart-1: oklch(0.988 0.004 194.712);
  --chart-2: oklch(0.982 0.004 14.869);
  --chart-3: oklch(0.982 0.004 14.869);
  --chart-4: oklch(1.009 0.002 194.752);
  --chart-5: oklch(0.988 0.004 194.706);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.007 193.851);
  --foreground: oklch(0.988 0.004 194.708);
  --muted: oklch(0.185 0.015 16.418);
  --muted-foreground: oklch(0.795 0.016 15.17);
  --popover: oklch(0.097 0.007 193.851);
  --popover-foreground: oklch(0.988 0.004 194.708);
  --card: oklch(0.097 0.007 193.851);
  --card-foreground: oklch(0.988 0.004 194.708);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.988 0.004 194.712);
  --primary-foreground: oklch(0.343 0.041 192.565);
  --secondary: oklch(0.982 0.004 14.869);
  --secondary-foreground: oklch(0.454 0.101 19.926);
  --accent: oklch(0.982 0.004 14.869);
  --accent-foreground: oklch(0.454 0.101 19.926);
  --destructive: oklch(0.605 0.206 35.49);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.988 0.004 194.712);
  --chart-1: oklch(0.988 0.004 194.712);
  --chart-2: oklch(0.982 0.004 14.869);
  --chart-3: oklch(0.982 0.004 14.869);
  --chart-4: oklch(1.009 0.002 194.752);
  --chart-5: oklch(0.988 0.004 194.706);
}