Sprag for shadcn/ui

Sprag is a shadcn/ui theme built around a muted cyan primary color (#94aab3) with muted orange accents (#b39c94). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted cyan primary (#94aab3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdfewhite
#000000black
Foreground
#010304black
#fcfdfdwhite
Card
#fbfdfewhite
#000000black
Card foreground
#010304black
#fcfdfdwhite
Popover
#fbfdfewhite
#000000black
Popover foreground
#010304black
#fcfdfdwhite
Primary
#94aab3darkgray
#94aab3darkgray
Primary foreground
#080b0cblack
#080b0cblack
Secondary
#b39c94rosybrown
#b39c94rosybrown
Secondary foreground
#0c0908black
#0c0908black
Muted
#f4eae6linen
#190f0bblack
Muted foreground
#4b4644darkslategray
#bbb6b4silver
Accent
#b39c94rosybrown
#b39c94rosybrown
Accent foreground
#0c0908black
#0c0908black
Destructive
#722f08saddlebrown
#e05c10chocolate
Destructive foreground
#facdb3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#94aab3darkgray
#94aab3darkgray

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button8.13:1AAA
Secondary button7.67:1AAA
Muted text7.86:1AAA
Accent7.67:1AAA
Destructive6.77:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button8.13:1AAA
Secondary button7.67:1AAA
Muted text9.40:1AAA
Accent7.67:1AAA
Destructive3.67:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 223.153);
  --foreground: oklch(0.094 0.01 217.405);
  --muted: oklch(0.944 0.012 43.014);
  --muted-foreground: oklch(0.398 0.008 42.964);
  --popover: oklch(0.993 0.002 223.153);
  --popover-foreground: oklch(0.094 0.01 217.405);
  --card: oklch(0.993 0.002 223.153);
  --card-foreground: oklch(0.094 0.01 217.405);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.724 0.028 223.6);
  --primary-foreground: oklch(0.147 0.005 222.842);
  --secondary: oklch(0.711 0.029 42.812);
  --secondary-foreground: oklch(0.145 0.005 44.261);
  --accent: oklch(0.711 0.029 42.812);
  --accent-foreground: oklch(0.145 0.005 44.261);
  --destructive: oklch(0.394 0.106 45.103);
  --destructive-foreground: oklch(0.88 0.062 51.685);
  --ring: oklch(0.724 0.028 223.6);
  --chart-1: oklch(0.724 0.028 223.6);
  --chart-2: oklch(0.711 0.029 42.812);
  --chart-3: oklch(0.711 0.029 42.812);
  --chart-4: oklch(0.736 0.027 42.844);
  --chart-5: oklch(0.725 0.033 223.701);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 223.146);
  --muted: oklch(0.18 0.019 42.479);
  --muted-foreground: oklch(0.78 0.006 43.055);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 223.146);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.002 223.146);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.724 0.028 223.6);
  --primary-foreground: oklch(0.147 0.005 222.842);
  --secondary: oklch(0.711 0.029 42.812);
  --secondary-foreground: oklch(0.145 0.005 44.261);
  --accent: oklch(0.711 0.029 42.812);
  --accent-foreground: oklch(0.145 0.005 44.261);
  --destructive: oklch(0.636 0.181 43.569);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.724 0.028 223.6);
  --chart-1: oklch(0.724 0.028 223.6);
  --chart-2: oklch(0.711 0.029 42.812);
  --chart-3: oklch(0.711 0.029 42.812);
  --chart-4: oklch(0.736 0.027 42.844);
  --chart-5: oklch(0.725 0.033 223.701);
}