Cornmeal for shadcn/ui

Cornmeal is a shadcn/ui theme built around a vivid light red primary color (#fa8991) with vivid light orange accents (#faba89). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the vivid light red primary (#fa8991) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fdf7f7snow
#040101black
Foreground
#120203black
#fdfcfcsnow
Card
#fdf7f7snow
#040101black
Card foreground
#120203black
#fdfcfcsnow
Popover
#fdf7f7snow
#040101black
Popover foreground
#120203black
#fdfcfcsnow
Primary
#fa8991lightcoral
#fa8991lightcoral
Primary foreground
#4e0308maroon
#4e0308maroon
Secondary
#fa89c9hotpink
#fa89c9hotpink
Secondary foreground
#4e032emaroon
#4e032emaroon
Muted
#f2eef0whitesmoke
#110d10black
Muted foreground
#64595fdimgray
#a69ba1darkgray
Accent
#faba89burlywood
#faba89burlywood
Accent foreground
#4e2403maroon
#4e2403maroon
Destructive
#801500maroon
#ff512etomato
Destructive foreground
#ffbfb3lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fa8991lightcoral
#fa8991lightcoral

Contrast

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

Light mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button6.77:1AA
Secondary button6.91:1AA
Muted text5.81:1AA
Accent7.91:1AAA
Destructive6.61:1AA
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button6.77:1AA
Secondary button6.91:1AA
Muted text7.17:1AAA
Accent7.91:1AAA
Destructive6.46:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 12.571);
  --foreground: oklch(0.128 0.035 16.745);
  --muted: oklch(0.952 0.005 341.928);
  --muted-foreground: oklch(0.476 0.018 342.675);
  --popover: oklch(0.98 0.007 12.571);
  --popover-foreground: oklch(0.128 0.035 16.745);
  --card: oklch(0.98 0.007 12.571);
  --card-foreground: oklch(0.128 0.035 16.745);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.756 0.137 16.647);
  --primary-foreground: oklch(0.271 0.105 24.975);
  --secondary: oklch(0.773 0.155 346.253);
  --secondary-foreground: oklch(0.282 0.112 353.129);
  --accent: oklch(0.838 0.098 58.336);
  --accent-foreground: oklch(0.313 0.077 52.336);
  --destructive: oklch(0.387 0.143 32.879);
  --destructive-foreground: oklch(0.86 0.076 31.483);
  --ring: oklch(0.756 0.137 16.647);
  --chart-1: oklch(0.756 0.137 16.647);
  --chart-2: oklch(0.773 0.155 346.253);
  --chart-3: oklch(0.838 0.098 58.336);
  --chart-4: oklch(0.798 0.135 345.564);
  --chart-5: oklch(0.755 0.141 16.82);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.015 14.616);
  --foreground: oklch(0.992 0.001 12.443);
  --muted: oklch(0.167 0.007 342.846);
  --muted-foreground: oklch(0.701 0.016 342.346);
  --popover: oklch(0.082 0.015 14.616);
  --popover-foreground: oklch(0.992 0.001 12.443);
  --card: oklch(0.082 0.015 14.616);
  --card-foreground: oklch(0.992 0.001 12.443);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.756 0.137 16.647);
  --primary-foreground: oklch(0.271 0.105 24.975);
  --secondary: oklch(0.773 0.155 346.253);
  --secondary-foreground: oklch(0.282 0.112 353.129);
  --accent: oklch(0.838 0.098 58.336);
  --accent-foreground: oklch(0.313 0.077 52.336);
  --destructive: oklch(0.673 0.216 33.151);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.756 0.137 16.647);
  --chart-1: oklch(0.756 0.137 16.647);
  --chart-2: oklch(0.773 0.155 346.253);
  --chart-3: oklch(0.838 0.098 58.336);
  --chart-4: oklch(0.798 0.135 345.564);
  --chart-5: oklch(0.755 0.141 16.82);
}