Short for shadcn/ui

Short is a shadcn/ui theme built around a muted blue primary color (#566f81) with muted green accents (#6f8156). The light mode uses a neutral background (#f7fafc). Dark mode keeps the muted blue primary (#566f81) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#f7fafcghostwhite
#030607black
Foreground
#020608black
#f4f8fawhitesmoke
Card
#f7fafcghostwhite
#030607black
Card foreground
#020608black
#f4f8fawhitesmoke
Popover
#f7fafcghostwhite
#030607black
Popover foreground
#020608black
#f4f8fawhitesmoke
Primary
#566f81dimgray
#566f81dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#81566fdimgray
#81566fdimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2edf0whitesmoke
#120d10black
Muted foreground
#5f4e58dimgray
#b1a0aadarkgray
Accent
#6f8156dimgray
#6f8156dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8a1d0adarkred
#e53010orangered
Destructive foreground
#fbd2cbpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#566f81dimgray
#566f81dimgray

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button5.25:1AA
Secondary button6.03:1AA
Muted text6.69:1AA
Accent4.26:1AA Large
Destructive6.70:1AA
Dark mode
Text on background19.06:1AAA
Text on card19.06:1AAA
Primary button5.25:1AA
Secondary button6.03:1AA
Muted text7.77:1AAA
Accent4.26:1AA Large
Destructive4.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.004 236.495);
  --foreground: oklch(0.115 0.013 228.635);
  --muted: oklch(0.952 0.006 340.379);
  --muted-foreground: oklch(0.445 0.028 341.611);
  --popover: oklch(0.985 0.004 236.495);
  --popover-foreground: oklch(0.115 0.013 228.635);
  --card: oklch(0.985 0.004 236.495);
  --card-foreground: oklch(0.115 0.013 228.635);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.529 0.041 237.723);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.507 0.067 343.041);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.576 0.066 126.09);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.416 0.147 32.148);
  --destructive-foreground: oklch(0.897 0.048 29.752);
  --ring: oklch(0.529 0.041 237.723);
  --chart-1: oklch(0.529 0.041 237.723);
  --chart-2: oklch(0.507 0.067 343.041);
  --chart-3: oklch(0.576 0.066 126.09);
  --chart-4: oklch(0.532 0.071 343.063);
  --chart-5: oklch(0.53 0.046 237.959);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.009 230.965);
  --foreground: oklch(0.977 0.005 236.51);
  --muted: oklch(0.166 0.01 341.487);
  --muted-foreground: oklch(0.723 0.025 340.997);
  --popover: oklch(0.115 0.009 230.965);
  --popover-foreground: oklch(0.977 0.005 236.51);
  --card: oklch(0.115 0.009 230.965);
  --card-foreground: oklch(0.977 0.005 236.51);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.529 0.041 237.723);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.507 0.067 343.041);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.576 0.066 126.09);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.598 0.219 31.905);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.529 0.041 237.723);
  --chart-1: oklch(0.529 0.041 237.723);
  --chart-2: oklch(0.507 0.067 343.041);
  --chart-3: oklch(0.576 0.066 126.09);
  --chart-4: oklch(0.532 0.071 343.063);
  --chart-5: oklch(0.53 0.046 237.959);
}