Cottage for shadcn/ui

Cottage is a shadcn/ui theme built around a deep red primary color (#350e09) with deep indigo accents (#0e0935). The light mode uses a neutral background (#fefcfb). Dark mode keeps the deep red primary (#350e09) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#fefcfbsnow
#040201black
Foreground
#160603black
#fbf9f9snow
Card
#fcf8f8snow
#080302black
Card foreground
#120503black
#fdfcfcsnow
Popover
#fcf8f8snow
#080302black
Popover foreground
#120503black
#fdfcfcsnow
Primary
#350e09black
#350e09black
Primary foreground
#eb9284darksalmon
#eb9284darksalmon
Secondary
#09350edarkgreen
#09350edarkgreen
Secondary foreground
#2cdd44limegreen
#2cdd44limegreen
Muted
#f1f4f1whitesmoke
#0b0e0cblack
Muted foreground
#505851darkslategray
#a7afa8darkgray
Accent
#0e0935black
#0e0935black
Accent foreground
#9284ebmediumpurple
#9284ebmediumpurple
Destructive
#a14612saddlebrown
#ea8043coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#350e09black
#350e09black

Contrast

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

Light mode
Text on background19.28:1AAA
Text on card19.02:1AAA
Primary button7.36:1AAA
Secondary button7.58:1AAA
Muted text6.62:1AA
Accent6.07:1AA
Destructive6.17:1AA
Dark mode
Text on background19.77:1AAA
Text on card20.01:1AAA
Primary button7.36:1AAA
Secondary button7.58:1AAA
Muted text8.61:1AAA
Accent6.07:1AA
Destructive7.67:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 27.944);
  --foreground: oklch(0.149 0.033 34.669);
  --muted: oklch(0.964 0.005 149.617);
  --muted-foreground: oklch(0.452 0.016 149.243);
  --popover: oklch(0.983 0.004 27.956);
  --popover-foreground: oklch(0.135 0.028 35.605);
  --card: oklch(0.983 0.004 27.956);
  --card-foreground: oklch(0.135 0.028 35.605);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.229 0.063 31.226);
  --primary-foreground: oklch(0.748 0.111 29.366);
  --secondary: oklch(0.288 0.08 145.129);
  --secondary-foreground: oklch(0.783 0.236 144.411);
  --accent: oklch(0.183 0.082 280.757);
  --accent-foreground: oklch(0.671 0.149 287.804);
  --destructive: oklch(0.506 0.134 45.398);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.229 0.063 31.226);
  --chart-1: oklch(0.229 0.063 31.226);
  --chart-2: oklch(0.288 0.08 145.129);
  --chart-3: oklch(0.183 0.082 280.757);
  --chart-4: oklch(0.332 0.095 144.883);
  --chart-5: oklch(0.23 0.065 31.468);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.012 33.569);
  --foreground: oklch(0.984 0.001 27.939);
  --muted: oklch(0.161 0.008 149.046);
  --muted-foreground: oklch(0.745 0.014 149.45);
  --popover: oklch(0.108 0.015 33.569);
  --popover-foreground: oklch(0.992 0.001 27.936);
  --card: oklch(0.108 0.015 33.569);
  --card-foreground: oklch(0.992 0.001 27.936);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.229 0.063 31.226);
  --primary-foreground: oklch(0.748 0.111 29.366);
  --secondary: oklch(0.288 0.08 145.129);
  --secondary-foreground: oklch(0.783 0.236 144.411);
  --accent: oklch(0.183 0.082 280.757);
  --accent-foreground: oklch(0.671 0.149 287.804);
  --destructive: oklch(0.707 0.15 48.524);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.229 0.063 31.226);
  --chart-1: oklch(0.229 0.063 31.226);
  --chart-2: oklch(0.288 0.08 145.129);
  --chart-3: oklch(0.183 0.082 280.757);
  --chart-4: oklch(0.332 0.095 144.883);
  --chart-5: oklch(0.23 0.065 31.468);
}