Shallow for shadcn/ui

Shallow is a shadcn/ui theme built around a red primary color (#c45236) with cyan accents (#36a8c4). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#c45236) on a red-tinted background (#0f0706).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0706black
Foreground
#110604black
#fcf9f8snow
Card
#ffffffwhite
#0f0706black
Card foreground
#110604black
#fcf9f8snow
Popover
#ffffffwhite
#0f0706black
Popover foreground
#110604black
#fcf9f8snow
Primary
#c45236chocolate
#c45236chocolate
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#36a8c4lightseagreen
#36a8c4lightseagreen
Secondary foreground
#0a1f24black
#0a1f24black
Muted
#cbe1e7gainsboro
#182f34darkslategray
Muted foreground
#596e73dimgray
#8ca1a6darkgray
Accent
#36a8c4lightseagreen
#36a8c4lightseagreen
Accent foreground
#0a1f24black
#0a1f24black
Destructive
#bf4503firebrick
#fc752ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c45236chocolate
#c45236chocolate

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button4.54:1AA
Secondary button6.10:1AA
Muted text3.96:1AA Large
Accent6.10:1AA
Destructive5.17:1AA
Dark mode
Text on background19.00:1AAA
Text on card19.00:1AAA
Primary button4.54:1AA
Secondary button6.10:1AA
Muted text5.21:1AA
Accent6.10:1AA
Destructive7.69:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.14 0.022 40.615);
  --muted: oklch(0.895 0.025 214.425);
  --muted-foreground: oklch(0.523 0.027 214.607);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.14 0.022 40.615);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.14 0.022 40.615);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.582 0.153 35.201);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.68 0.107 218.273);
  --secondary-foreground: oklch(0.224 0.029 216.363);
  --accent: oklch(0.68 0.107 218.273);
  --accent-foreground: oklch(0.224 0.029 216.363);
  --destructive: oklch(0.552 0.169 41.008);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.582 0.153 35.201);
  --chart-1: oklch(0.582 0.153 35.201);
  --chart-2: oklch(0.68 0.107 218.273);
  --chart-3: oklch(0.68 0.107 218.273);
  --chart-4: oklch(0.701 0.106 217.788);
  --chart-5: oklch(0.585 0.16 35.167);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.015 38.075);
  --foreground: oklch(0.984 0.003 34.311);
  --muted: oklch(0.287 0.03 215.523);
  --muted-foreground: oklch(0.694 0.025 214.481);
  --popover: oklch(0.141 0.015 38.075);
  --popover-foreground: oklch(0.984 0.003 34.311);
  --card: oklch(0.141 0.015 38.075);
  --card-foreground: oklch(0.984 0.003 34.311);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.582 0.153 35.201);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.68 0.107 218.273);
  --secondary-foreground: oklch(0.224 0.029 216.363);
  --accent: oklch(0.68 0.107 218.273);
  --accent-foreground: oklch(0.224 0.029 216.363);
  --destructive: oklch(0.712 0.184 44.948);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.582 0.153 35.201);
  --chart-1: oklch(0.582 0.153 35.201);
  --chart-2: oklch(0.68 0.107 218.273);
  --chart-3: oklch(0.68 0.107 218.273);
  --chart-4: oklch(0.701 0.106 217.788);
  --chart-5: oklch(0.585 0.16 35.167);
}