Ingrate for shadcn/ui

Ingrate is a shadcn/ui theme built around a muted deep red primary color (#342928) with muted light red accents (#d6cdcc). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep red primary (#342928) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#080302black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#040101black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#080302black
#ffffffwhite
Primary
#342928darkslategray
#342928darkslategray
Primary foreground
#cec1c0silver
#cec1c0silver
Secondary
#d6cdcclightgrey
#181616black
Secondary foreground
#3e3332darkslategray
#b3aeaddarkgray
Muted
#f5f0efwhitesmoke
#100b0ablack
Muted foreground
#755a57dimgray
#a88d8arosybrown
Accent
#d6cdcclightgrey
#181616black
Accent foreground
#3e3332darkslategray
#b3aeaddarkgray
Destructive
#9d1307darkred
#f5220fred
Destructive foreground
#fddbd8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#342928darkslategray
#342928darkslategray

Contrast

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

Light mode
Text on background20.50:1AAA
Text on card20.34:1AAA
Primary button8.02:1AAA
Secondary button7.82:1AAA
Muted text5.54:1AA
Accent7.82:1AAA
Destructive6.46:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.02:1AAA
Secondary button8.20:1AAA
Muted text6.38:1AA
Accent8.20:1AAA
Destructive4.10:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.107 0.017 32.67);
  --muted: oklch(0.959 0.005 26.478);
  --muted-foreground: oklch(0.495 0.036 27.102);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.107 0.017 32.67);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.085 0.014 32.67);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.294 0.016 26.897);
  --primary-foreground: oklch(0.822 0.015 26.567);
  --secondary: oklch(0.856 0.01 26.521);
  --secondary-foreground: oklch(0.334 0.016 26.831);
  --accent: oklch(0.856 0.01 26.521);
  --accent-foreground: oklch(0.334 0.016 26.831);
  --destructive: oklch(0.444 0.171 30.145);
  --destructive-foreground: oklch(0.919 0.039 24.039);
  --ring: oklch(0.294 0.016 26.897);
  --chart-1: oklch(0.294 0.016 26.897);
  --chart-2: oklch(0.856 0.01 26.521);
  --chart-3: oklch(0.856 0.01 26.521);
  --chart-4: oklch(0.88 0.008 26.504);
  --chart-5: oklch(0.292 0.02 27.04);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.154 0.009 26.898);
  --muted-foreground: oklch(0.668 0.033 26.851);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.294 0.016 26.897);
  --primary-foreground: oklch(0.822 0.015 26.567);
  --secondary: oklch(0.203 0.003 26.529);
  --secondary-foreground: oklch(0.754 0.006 26.498);
  --accent: oklch(0.203 0.003 26.529);
  --accent-foreground: oklch(0.754 0.006 26.498);
  --destructive: oklch(0.619 0.24 30.081);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.294 0.016 26.897);
  --chart-1: oklch(0.294 0.016 26.897);
  --chart-2: oklch(0.203 0.003 26.529);
  --chart-3: oklch(0.203 0.003 26.529);
  --chart-4: oklch(0.236 0.003 26.539);
  --chart-5: oklch(0.292 0.02 27.04);
}