Shy for shadcn/ui

Shy is a shadcn/ui theme built around a vivid orange primary color (#ef7c01) with vivid violet accents (#7c01ef). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the vivid orange primary (#ef7c01) on an orange-tinted background (#0b0804).

Color palette

TokenLightDark
Background
#fcfaf8snow
#0b0804black
Foreground
#040301black
#fdfcfcsnow
Card
#faf7f5whitesmoke
#0f0a06black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfaf8snow
#0b0804black
Popover foreground
#040301black
#fdfcfcsnow
Primary
#ef7c01darkorange
#ef7c01darkorange
Primary foreground
#241200black
#241200black
Secondary
#01ef7cspringgreen
#01ef7cspringgreen
Secondary foreground
#002412black
#002412black
Muted
#d4ddd9gainsboro
#222b26darkslategray
Muted foreground
#616b66dimgray
#949e99darkgray
Accent
#7c01efdarkviolet
#7c01efdarkviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7f2901saddlebrown
#fe702ftomato
Destructive foreground
#ffcbb3peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ef7c01darkorange
#ef7c01darkorange

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.74:1AAA
Primary button6.47:1AA
Secondary button10.76:1AAA
Muted text3.99:1AA Large
Accent6.77:1AA
Destructive6.52:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.67:1AAA
Primary button6.47:1AA
Secondary button10.76:1AAA
Muted text5.28:1AA
Accent6.77:1AA
Destructive7.59:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 69.618);
  --foreground: oklch(0.095 0.009 76.613);
  --muted: oklch(0.89 0.012 165.667);
  --muted-foreground: oklch(0.518 0.015 165.242);
  --popover: oklch(0.986 0.003 69.618);
  --popover-foreground: oklch(0.095 0.009 76.613);
  --card: oklch(0.979 0.005 69.601);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.703 0.174 54.981);
  --primary-foreground: oklch(0.204 0.044 68.89);
  --secondary: oklch(0.833 0.219 151.975);
  --secondary-foreground: oklch(0.228 0.053 158.025);
  --accent: oklch(0.51 0.279 295.481);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.406 0.127 39.98);
  --destructive-foreground: oklch(0.881 0.067 46.137);
  --ring: oklch(0.703 0.174 54.981);
  --chart-1: oklch(0.703 0.174 54.981);
  --chart-2: oklch(0.833 0.219 151.975);
  --chart-3: oklch(0.51 0.279 295.481);
  --chart-4: oklch(0.872 0.23 151.906);
  --chart-5: oklch(0.708 0.177 54.33);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.012 75.584);
  --foreground: oklch(0.993 0.001 69.643);
  --muted: oklch(0.278 0.015 164.467);
  --muted-foreground: oklch(0.69 0.014 165.479);
  --popover: oklch(0.136 0.012 75.584);
  --popover-foreground: oklch(0.993 0.001 69.643);
  --card: oklch(0.15 0.013 72.38);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.703 0.174 54.981);
  --primary-foreground: oklch(0.204 0.044 68.89);
  --secondary: oklch(0.833 0.219 151.975);
  --secondary-foreground: oklch(0.228 0.053 158.025);
  --accent: oklch(0.51 0.279 295.481);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.71 0.188 42.486);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.703 0.174 54.981);
  --chart-1: oklch(0.703 0.174 54.981);
  --chart-2: oklch(0.833 0.219 151.975);
  --chart-3: oklch(0.51 0.279 295.481);
  --chart-4: oklch(0.872 0.23 151.906);
  --chart-5: oklch(0.708 0.177 54.33);
}