Tablecloth for shadcn/ui

Tablecloth is a shadcn/ui theme built around a deep orange primary color (#412f1f) with deep blue accents (#1f3241). The light mode uses a neutral background (#fdfaf6). Dark mode keeps the deep orange primary (#412f1f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfaf6snow
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fdfaf6snow
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfaf6snow
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#412f1fdarkslategray
#412f1fdarkslategray
Primary foreground
#dcc8b7silver
#dcc8b7silver
Secondary
#1f3241darkslategray
#1f3241darkslategray
Secondary foreground
#b7cbdclightsteelblue
#b7cbdclightsteelblue
Muted
#eff3f6whitesmoke
#090d10black
Muted foreground
#4e5256darkslategray
#a9aeb1darkgray
Accent
#1f3241darkslategray
#1f3241darkslategray
Accent foreground
#b7cbdclightsteelblue
#b7cbdclightsteelblue
Destructive
#6e1f02maroon
#f04405orangered
Destructive foreground
#fdbda5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#412f1fdarkslategray
#412f1fdarkslategray

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button7.86:1AAA
Secondary button7.88:1AAA
Muted text7.04:1AAA
Accent7.88:1AAA
Destructive6.99:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.86:1AAA
Secondary button7.88:1AAA
Muted text8.70:1AAA
Accent7.88:1AAA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.006 62.113);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.961 0.006 242.271);
  --muted-foreground: oklch(0.436 0.008 242.448);
  --popover: oklch(0.986 0.006 62.113);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.006 62.113);
  --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.322 0.037 60.217);
  --primary-foreground: oklch(0.844 0.033 61.663);
  --secondary: oklch(0.309 0.037 244.06);
  --secondary-foreground: oklch(0.833 0.033 242.718);
  --accent: oklch(0.309 0.037 244.06);
  --accent-foreground: oklch(0.833 0.033 242.718);
  --destructive: oklch(0.363 0.117 37.699);
  --destructive-foreground: oklch(0.85 0.082 40.859);
  --ring: oklch(0.322 0.037 60.217);
  --chart-1: oklch(0.322 0.037 60.217);
  --chart-2: oklch(0.309 0.037 244.06);
  --chart-3: oklch(0.309 0.037 244.06);
  --chart-4: oklch(0.339 0.042 244.135);
  --chart-5: oklch(0.323 0.04 59.979);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.157 0.009 242.895);
  --muted-foreground: oklch(0.748 0.007 242.323);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.322 0.037 60.217);
  --primary-foreground: oklch(0.844 0.033 61.663);
  --secondary: oklch(0.309 0.037 244.06);
  --secondary-foreground: oklch(0.833 0.033 242.718);
  --accent: oklch(0.309 0.037 244.06);
  --accent-foreground: oklch(0.833 0.033 242.718);
  --destructive: oklch(0.633 0.216 35.747);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.322 0.037 60.217);
  --chart-1: oklch(0.322 0.037 60.217);
  --chart-2: oklch(0.309 0.037 244.06);
  --chart-3: oklch(0.309 0.037 244.06);
  --chart-4: oklch(0.339 0.042 244.135);
  --chart-5: oklch(0.323 0.04 59.979);
}