Casket for shadcn/ui

Casket is a shadcn/ui theme built around a deep yellow primary color (#423a14) with deep blue accents (#141d42). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the deep yellow primary (#423a14) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#fcfbf8snow
#070603black
Foreground
#040401black
#ffffffwhite
Card
#faf9f5whitesmoke
#0b0905black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfbf8snow
#070603black
Popover foreground
#040401black
#ffffffwhite
Primary
#423a14darkolivegreen
#423a14darkolivegreen
Primary foreground
#e3d8a5palegoldenrod
#e3d8a5palegoldenrod
Secondary
#141d42midnightblue
#141d42midnightblue
Secondary foreground
#a5b1e3lightsteelblue
#a5b1e3lightsteelblue
Muted
#d6d9e5gainsboro
#1a1c29black
Muted foreground
#4d505bdarkslategray
#a4a7b2darkgray
Accent
#141d42midnightblue
#141d42midnightblue
Accent foreground
#a5b1e3lightsteelblue
#a5b1e3lightsteelblue
Destructive
#780b07maroon
#e7150dred
Destructive foreground
#fbb9b7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#423a14darkolivegreen
#423a14darkolivegreen

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.92:1AAA
Primary button7.91:1AAA
Secondary button7.78:1AAA
Muted text5.71:1AA
Accent7.78:1AAA
Destructive6.85:1AA
Dark mode
Text on background20.23:1AAA
Text on card19.86:1AAA
Primary button7.91:1AAA
Secondary button7.78:1AAA
Muted text7.03:1AAA
Accent7.78:1AAA
Destructive4.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 96.212);
  --foreground: oklch(0.101 0.013 100.48);
  --muted: oklch(0.887 0.017 275.905);
  --muted-foreground: oklch(0.433 0.018 275.573);
  --popover: oklch(0.988 0.004 96.212);
  --popover-foreground: oklch(0.101 0.013 100.48);
  --card: oklch(0.982 0.006 96.236);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.348 0.056 96.704);
  --primary-foreground: oklch(0.879 0.067 96.927);
  --secondary: oklch(0.246 0.072 270.79);
  --secondary-foreground: oklch(0.768 0.074 274.702);
  --accent: oklch(0.246 0.072 270.79);
  --accent-foreground: oklch(0.768 0.074 274.702);
  --destructive: oklch(0.367 0.142 28.99);
  --destructive-foreground: oklch(0.846 0.077 21.053);
  --ring: oklch(0.348 0.056 96.704);
  --chart-1: oklch(0.348 0.056 96.704);
  --chart-2: oklch(0.246 0.072 270.79);
  --chart-3: oklch(0.246 0.072 270.79);
  --chart-4: oklch(0.27 0.082 270.517);
  --chart-5: oklch(0.351 0.058 96.6);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.011 99.101);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.231 0.025 274.529);
  --muted-foreground: oklch(0.728 0.016 275.869);
  --popover: oklch(0.124 0.011 99.101);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.141 0.012 99.054);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.348 0.056 96.704);
  --primary-foreground: oklch(0.879 0.067 96.927);
  --secondary: oklch(0.246 0.072 270.79);
  --secondary-foreground: oklch(0.768 0.074 274.702);
  --accent: oklch(0.246 0.072 270.79);
  --accent-foreground: oklch(0.768 0.074 274.702);
  --destructive: oklch(0.589 0.234 29.216);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.348 0.056 96.704);
  --chart-1: oklch(0.348 0.056 96.704);
  --chart-2: oklch(0.246 0.072 270.79);
  --chart-3: oklch(0.246 0.072 270.79);
  --chart-4: oklch(0.27 0.082 270.517);
  --chart-5: oklch(0.351 0.058 96.6);
}