Speedy for shadcn/ui

Speedy is a shadcn/ui theme built around a neutral gray primary color (#999999) with neutral gray accents (#999999). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#999999) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfbsnow
#000000black
Foreground
#120202black
#fbf9f9snow
Card
#fdf6f6snow
#030303black
Card foreground
#0e0202black
#fdfcfcsnow
Popover
#fefbfbsnow
#000000black
Popover foreground
#120202black
#fbf9f9snow
Primary
#999999darkgray
#999999darkgray
Primary foreground
#000000black
#000000black
Secondary
#999999darkgray
#999999darkgray
Secondary foreground
#000000black
#000000black
Muted
#e1d0d0lightgrey
#2f1e1eblack
Muted foreground
#453a3adarkslategray
#c5babasilver
Accent
#999999darkgray
#999999darkgray
Accent foreground
#000000black
#000000black
Destructive
#b2400afirebrick
#e7520dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#999999darkgray
#999999darkgray

Contrast

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

Light mode
Text on background19.67:1AAA
Text on card19.21:1AAA
Primary button7.37:1AAA
Secondary button7.37:1AAA
Muted text7.38:1AAA
Accent7.37:1AAA
Destructive5.78:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.19:1AAA
Primary button7.37:1AAA
Secondary button7.37:1AAA
Muted text8.40:1AAA
Accent7.37:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 17.22);
  --foreground: oklch(0.126 0.037 24.138);
  --muted: oklch(0.872 0.019 17.518);
  --muted-foreground: oklch(0.361 0.016 17.927);
  --popover: oklch(0.99 0.004 17.22);
  --popover-foreground: oklch(0.126 0.037 24.138);
  --card: oklch(0.98 0.007 17.283);
  --card-foreground: oklch(0.112 0.032 23.882);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.683 0 180);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.683 0 180);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.683 0 180);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.525 0.159 40.059);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.683 0 180);
  --chart-1: oklch(0.683 0 180);
  --chart-2: oklch(0.683 0 180);
  --chart-3: oklch(0.683 0 180);
  --chart-4: oklch(0.708 0 158.199);
  --chart-5: oklch(0.678 0.007 17.334);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.001 17.182);
  --muted: oklch(0.256 0.027 19.056);
  --muted-foreground: oklch(0.797 0.013 17.43);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.001 17.182);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 17.17);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.683 0 180);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.683 0 180);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.683 0 180);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.635 0.196 39.62);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.683 0 180);
  --chart-1: oklch(0.683 0 180);
  --chart-2: oklch(0.683 0 180);
  --chart-3: oklch(0.683 0 180);
  --chart-4: oklch(0.708 0 158.199);
  --chart-5: oklch(0.678 0.007 17.334);
}