Caddy for shadcn/ui

Caddy is a shadcn/ui theme built around a red primary color (#db6f6b) with teal accents (#6bd7db). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#db6f6b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfbsnow
#000000black
Foreground
#120302black
#f9f6f6whitesmoke
Card
#fdf7f7snow
#030303black
Card foreground
#0d0202black
#fbf9f9snow
Popover
#fefbfbsnow
#000000black
Popover foreground
#120302black
#f9f6f6whitesmoke
Primary
#db6f6bindianred
#db6f6bindianred
Primary foreground
#100404black
#100404black
Secondary
#6bd7dbskyblue
#6bd7dbskyblue
Secondary foreground
#041010black
#041010black
Muted
#f0f5f5whitesmoke
#0a0f0fblack
Muted foreground
#5b6b6bdimgray
#94a3a4darkgray
Accent
#6bd7dbskyblue
#6bd7dbskyblue
Accent foreground
#041010black
#041010black
Destructive
#c12915firebrick
#dc2f18crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#db6f6bindianred
#db6f6bindianred

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.33:1AAA
Primary button6.24:1AA
Secondary button11.42:1AAA
Muted text5.05:1AA
Accent11.42:1AAA
Destructive5.84:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.71:1AAA
Primary button6.24:1AA
Secondary button11.42:1AAA
Muted text7.37:1AAA
Accent11.42:1AAA
Destructive4.68:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 19.646);
  --foreground: oklch(0.129 0.033 26.333);
  --muted: oklch(0.965 0.005 199.535);
  --muted-foreground: oklch(0.515 0.019 199.14);
  --popover: oklch(0.991 0.003 19.646);
  --popover-foreground: oklch(0.129 0.033 26.333);
  --card: oklch(0.981 0.006 19.688);
  --card-foreground: oklch(0.116 0.029 26.326);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.666 0.136 23.452);
  --primary-foreground: oklch(0.133 0.025 24.136);
  --secondary: oklch(0.818 0.1 198.395);
  --secondary-foreground: oklch(0.161 0.019 198.05);
  --accent: oklch(0.818 0.1 198.395);
  --accent-foreground: oklch(0.161 0.019 198.05);
  --destructive: oklch(0.529 0.19 31.039);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.666 0.136 23.452);
  --chart-1: oklch(0.666 0.136 23.452);
  --chart-2: oklch(0.818 0.1 198.395);
  --chart-3: oklch(0.818 0.1 198.395);
  --chart-4: oklch(0.832 0.094 198.437);
  --chart-5: oklch(0.666 0.143 23.702);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.003 19.651);
  --muted: oklch(0.163 0.007 199.029);
  --muted-foreground: oklch(0.703 0.017 199.279);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.003 19.651);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.002 19.635);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.666 0.136 23.452);
  --primary-foreground: oklch(0.133 0.025 24.136);
  --secondary: oklch(0.818 0.1 198.395);
  --secondary-foreground: oklch(0.161 0.019 198.05);
  --accent: oklch(0.818 0.1 198.395);
  --accent-foreground: oklch(0.161 0.019 198.05);
  --destructive: oklch(0.583 0.211 31.033);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.666 0.136 23.452);
  --chart-1: oklch(0.666 0.136 23.452);
  --chart-2: oklch(0.818 0.1 198.395);
  --chart-3: oklch(0.818 0.1 198.395);
  --chart-4: oklch(0.832 0.094 198.437);
  --chart-5: oklch(0.666 0.143 23.702);
}