Shy for shadcn/ui

Shy is a shadcn/ui theme built around a light red primary color (#fae0e4) with light teal accents (#e0faf6). The light mode uses a neutral background (#fefbfb). Dark mode keeps the light red primary (#fae0e4) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040102black
Foreground
#000000black
#fcf8f9snow
Card
#fefbfbsnow
#040102black
Card foreground
#000000black
#fcf8f9snow
Popover
#fefbfbsnow
#040102black
Popover foreground
#000000black
#fcf8f9snow
Primary
#fae0e4mistyrose
#fae0e4mistyrose
Primary foreground
#91182abrown
#91182abrown
Secondary
#e0faf6lightcyan
#e0faf6lightcyan
Secondary foreground
#093932darkslategray
#093932darkslategray
Muted
#cee9e5gainsboro
#16312ddarkslategray
Muted foreground
#585a5adimgray
#a5a7a6darkgray
Accent
#e0faf6lightcyan
#e0faf6lightcyan
Accent foreground
#093932darkslategray
#093932darkslategray
Destructive
#d31b03firebrick
#fc4027orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fae0e4mistyrose
#fae0e4mistyrose

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button7.12:1AAA
Secondary button11.67:1AAA
Muted text5.41:1AA
Accent11.67:1AAA
Destructive5.34:1AA
Dark mode
Text on background19.70:1AAA
Text on card19.70:1AAA
Primary button7.12:1AAA
Secondary button11.67:1AAA
Muted text5.72:1AA
Accent11.67:1AAA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 6.681);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.913 0.029 185.77);
  --muted-foreground: oklch(0.466 0.002 186.469);
  --popover: oklch(0.99 0.003 6.681);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.003 6.681);
  --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.93 0.029 7.367);
  --primary-foreground: oklch(0.427 0.154 19.699);
  --secondary: oklch(0.965 0.027 185.866);
  --secondary-foreground: oklch(0.312 0.051 180.436);
  --accent: oklch(0.965 0.027 185.866);
  --accent-foreground: oklch(0.312 0.051 180.436);
  --destructive: oklch(0.553 0.215 30.711);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.93 0.029 7.367);
  --chart-1: oklch(0.93 0.029 7.367);
  --chart-2: oklch(0.965 0.027 185.866);
  --chart-3: oklch(0.965 0.027 185.866);
  --chart-4: oklch(0.98 0.016 186.186);
  --chart-5: oklch(0.929 0.03 7.4);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.011 7.132);
  --foreground: oklch(0.982 0.004 6.697);
  --muted: oklch(0.291 0.034 183.057);
  --muted-foreground: oklch(0.726 0.002 186.522);
  --popover: oklch(0.085 0.011 7.132);
  --popover-foreground: oklch(0.982 0.004 6.697);
  --card: oklch(0.085 0.011 7.132);
  --card-foreground: oklch(0.982 0.004 6.697);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.93 0.029 7.367);
  --primary-foreground: oklch(0.427 0.154 19.699);
  --secondary: oklch(0.965 0.027 185.866);
  --secondary-foreground: oklch(0.312 0.051 180.436);
  --accent: oklch(0.965 0.027 185.866);
  --accent-foreground: oklch(0.312 0.051 180.436);
  --destructive: oklch(0.652 0.227 31.024);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.93 0.029 7.367);
  --chart-1: oklch(0.93 0.029 7.367);
  --chart-2: oklch(0.965 0.027 185.866);
  --chart-3: oklch(0.965 0.027 185.866);
  --chart-4: oklch(0.98 0.016 186.186);
  --chart-5: oklch(0.929 0.03 7.4);
}