Shady for shadcn/ui

Shady is a shadcn/ui theme built around a teal primary color (#357964) with pink accents (#793549). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the teal primary (#357964) on a neutral background (#020403).

Color palette

TokenLightDark
Background
#f7fdfbmintcream
#020403black
Foreground
#030c0ablack
#fbfdfdwhite
Card
#f7fdfbmintcream
#020403black
Card foreground
#030c0ablack
#fbfdfdwhite
Popover
#f7fdfbmintcream
#020403black
Popover foreground
#030c0ablack
#fbfdfdwhite
Primary
#357964seagreen
#357964seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#793549brown
#793549brown
Secondary foreground
#f6eaedlinen
#f6eaedlinen
Muted
#e4d2d8gainsboro
#2d1b20black
Muted foreground
#61484fdimgray
#b79ea6darkgray
Accent
#793549brown
#793549brown
Accent foreground
#f6eaedlinen
#f6eaedlinen
Destructive
#a72d0cfirebrick
#f1633btomato
Destructive foreground
#fdece7linen
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#357964seagreen
#357964seagreen

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card19.24:1AAA
Primary button5.18:1AA
Secondary button7.43:1AAA
Muted text5.71:1AA
Accent7.43:1AAA
Destructive6.05:1AA
Dark mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button5.18:1AA
Secondary button7.43:1AAA
Muted text6.57:1AA
Accent7.43:1AAA
Destructive6.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.008 176.434);
  --foreground: oklch(0.144 0.019 176.106);
  --muted: oklch(0.881 0.021 357.335);
  --muted-foreground: oklch(0.43 0.036 358.985);
  --popover: oklch(0.989 0.008 176.434);
  --popover-foreground: oklch(0.144 0.019 176.106);
  --card: oklch(0.989 0.008 176.434);
  --card-foreground: oklch(0.144 0.019 176.106);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.524 0.076 170.985);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.426 0.097 3.196);
  --secondary-foreground: oklch(0.947 0.014 357.073);
  --accent: oklch(0.426 0.097 3.196);
  --accent-foreground: oklch(0.947 0.014 357.073);
  --destructive: oklch(0.485 0.163 34.772);
  --destructive-foreground: oklch(0.955 0.02 35.957);
  --ring: oklch(0.524 0.076 170.985);
  --chart-1: oklch(0.524 0.076 170.985);
  --chart-2: oklch(0.426 0.097 3.196);
  --chart-3: oklch(0.426 0.097 3.196);
  --chart-4: oklch(0.451 0.104 3.281);
  --chart-5: oklch(0.531 0.081 170.561);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.009 176.797);
  --foreground: oklch(0.994 0.002 176.594);
  --muted: oklch(0.246 0.03 359.956);
  --muted-foreground: oklch(0.725 0.031 357.875);
  --popover: oklch(0.097 0.009 176.797);
  --popover-foreground: oklch(0.994 0.002 176.594);
  --card: oklch(0.097 0.009 176.797);
  --card-foreground: oklch(0.994 0.002 176.594);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.524 0.076 170.985);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.426 0.097 3.196);
  --secondary-foreground: oklch(0.947 0.014 357.073);
  --accent: oklch(0.426 0.097 3.196);
  --accent-foreground: oklch(0.947 0.014 357.073);
  --destructive: oklch(0.674 0.184 36.183);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.524 0.076 170.985);
  --chart-1: oklch(0.524 0.076 170.985);
  --chart-2: oklch(0.426 0.097 3.196);
  --chart-3: oklch(0.426 0.097 3.196);
  --chart-4: oklch(0.451 0.104 3.281);
  --chart-5: oklch(0.531 0.081 170.561);
}