Extra-small for shadcn/ui

Extra-small is a shadcn/ui theme built around a vivid red primary color (#ef3e4f) with vivid orange accents (#ef853e). The light mode uses a neutral background (#fdf6f7). Dark mode keeps the vivid red primary (#ef3e4f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf6f7snow
#000000black
Foreground
#100405black
#fdfcfcsnow
Card
#fdf6f7snow
#000000black
Card foreground
#100405black
#fdfcfcsnow
Popover
#fdf6f7snow
#000000black
Popover foreground
#100405black
#fdfcfcsnow
Primary
#ef3e4ftomato
#ef3e4ftomato
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ef3ea8hotpink
#ef3ea8hotpink
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3cfdbgainsboro
#301c28darkslategray
Muted foreground
#666666dimgray
#999999darkgray
Accent
#ef853ecoral
#ef853ecoral
Accent foreground
#000000black
#000000black
Destructive
#9e3d05saddlebrown
#f87325tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ef3e4ftomato
#ef3e4ftomato

Contrast

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

Light mode
Text on background18.98:1AAA
Text on card18.98:1AAA
Primary button3.83:1AA Large
Secondary button3.54:1AA Large
Muted text3.87:1AA Large
Accent8.08:1AAA
Destructive6.70:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button3.83:1AA Large
Secondary button3.54:1AA Large
Muted text5.55:1AA
Accent8.08:1AAA
Destructive7.46:1AAA

CSS variables

Paste this into your globals.css to use Extra-small in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 10.249);
  --foreground: oklch(0.132 0.025 12.515);
  --muted: oklch(0.874 0.027 340.926);
  --muted-foreground: oklch(0.51 0 171.87);
  --popover: oklch(0.98 0.007 10.249);
  --popover-foreground: oklch(0.132 0.025 12.515);
  --card: oklch(0.98 0.007 10.249);
  --card-foreground: oklch(0.132 0.025 12.515);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.633 0.213 20.663);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.658 0.233 348.733);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.721 0.155 51.247);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.489 0.142 43.171);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.633 0.213 20.663);
  --chart-1: oklch(0.633 0.213 20.663);
  --chart-2: oklch(0.658 0.233 348.733);
  --chart-3: oklch(0.721 0.155 51.247);
  --chart-4: oklch(0.674 0.221 347.744);
  --chart-5: oklch(0.636 0.218 21.115);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 10.124);
  --muted: oklch(0.258 0.037 343.251);
  --muted-foreground: oklch(0.683 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.002 10.124);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.002 10.124);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.633 0.213 20.663);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.658 0.233 348.733);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.721 0.155 51.247);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.704 0.183 45.769);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.633 0.213 20.663);
  --chart-1: oklch(0.633 0.213 20.663);
  --chart-2: oklch(0.658 0.233 348.733);
  --chart-3: oklch(0.721 0.155 51.247);
  --chart-4: oklch(0.674 0.221 347.744);
  --chart-5: oklch(0.636 0.218 21.115);
}