Madras Haddock for shadcn/ui

Madras Haddock is a shadcn/ui theme built around a deep yellow primary color (#473d1a) with deep purple accents (#3d1a47). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the deep yellow primary (#473d1a) on a yellow-tinted background (#0f0d05).

Color palette

TokenLightDark
Background
#fcfbf8snow
#0f0d05black
Foreground
#050401black
#fdfdfcwhite
Card
#fcfbf8snow
#0f0d05black
Card foreground
#050401black
#fdfdfcwhite
Popover
#fcfbf8snow
#0f0d05black
Popover foreground
#050401black
#fdfdfcwhite
Primary
#473d1adarkolivegreen
#473d1adarkolivegreen
Primary foreground
#e2d7b1wheat
#e2d7b1wheat
Secondary
#1a473ddarkslategray
#1a473ddarkslategray
Secondary foreground
#b1e2d7powderblue
#b1e2d7powderblue
Muted
#dee3e2gainsboro
#1c2120black
Muted foreground
#3d4845darkslategray
#b7c2c0silver
Accent
#3d1a47midnightblue
#3d1a47midnightblue
Accent foreground
#d7b1e2thistle
#d7b1e2thistle
Destructive
#9d1b02darkred
#fd3912orangered
Destructive foreground
#ffd9d2bisque
#ffffffwhite
Border
#ecebe9linen
#262521black
Input
#ecebe9linen
#262521black
Ring
#473d1adarkolivegreen
#473d1adarkolivegreen

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button7.48:1AAA
Secondary button7.34:1AAA
Muted text7.32:1AAA
Accent7.83:1AAA
Destructive6.23:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.09:1AAA
Primary button7.48:1AAA
Secondary button7.34:1AAA
Muted text8.89:1AAA
Accent7.83:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 93.912);
  --foreground: oklch(0.103 0.017 99.804);
  --muted: oklch(0.912 0.006 181.88);
  --muted-foreground: oklch(0.39 0.014 181.015);
  --popover: oklch(0.988 0.004 93.912);
  --popover-foreground: oklch(0.103 0.017 99.804);
  --card: oklch(0.988 0.004 93.912);
  --card-foreground: oklch(0.103 0.017 99.804);
  --border: oklch(0.941 0.003 93.9);
  --input: oklch(0.941 0.003 93.9);
  --primary: oklch(0.362 0.053 94.12);
  --primary-foreground: oklch(0.879 0.052 94.38);
  --secondary: oklch(0.363 0.052 176.732);
  --secondary-foreground: oklch(0.876 0.053 180.272);
  --accent: oklch(0.291 0.087 318.485);
  --accent-foreground: oklch(0.81 0.08 318.849);
  --destructive: oklch(0.449 0.167 32.398);
  --destructive-foreground: oklch(0.915 0.043 31.209);
  --ring: oklch(0.362 0.053 94.12);
  --chart-1: oklch(0.362 0.053 94.12);
  --chart-2: oklch(0.363 0.052 176.732);
  --chart-3: oklch(0.291 0.087 318.485);
  --chart-4: oklch(0.4 0.058 176.573);
  --chart-5: oklch(0.365 0.056 94.003);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.017 95.883);
  --foreground: oklch(0.994 0.002 93.884);
  --muted: oklch(0.243 0.008 181.083);
  --muted-foreground: oklch(0.805 0.012 181.645);
  --popover: oklch(0.159 0.017 95.883);
  --popover-foreground: oklch(0.994 0.002 93.884);
  --card: oklch(0.159 0.017 95.883);
  --card-foreground: oklch(0.994 0.002 93.884);
  --border: oklch(0.265 0.007 94.142);
  --input: oklch(0.265 0.007 94.142);
  --primary: oklch(0.362 0.053 94.12);
  --primary-foreground: oklch(0.879 0.052 94.38);
  --secondary: oklch(0.363 0.052 176.732);
  --secondary-foreground: oklch(0.876 0.053 180.272);
  --accent: oklch(0.291 0.087 318.485);
  --accent-foreground: oklch(0.81 0.08 318.849);
  --destructive: oklch(0.647 0.234 32.423);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.362 0.053 94.12);
  --chart-1: oklch(0.362 0.053 94.12);
  --chart-2: oklch(0.363 0.052 176.732);
  --chart-3: oklch(0.291 0.087 318.485);
  --chart-4: oklch(0.4 0.058 176.573);
  --chart-5: oklch(0.365 0.056 94.003);
}