Ideal for shadcn/ui

Ideal is a shadcn/ui theme built around a deep red primary color (#100705) with deep yellow accents (#100c05). The light mode uses a neutral background (#fefcfb). Dark mode keeps the deep red primary (#100705) on a red-tinted background (#100705).

Color palette

TokenLightDark
Background
#fefcfbsnow
#100705black
Foreground
#0d0402black
#fdfcfcsnow
Card
#fdf8f7snow
#140806black
Card foreground
#090302black
#ffffffwhite
Popover
#fefcfbsnow
#100705black
Popover foreground
#0d0402black
#fdfcfcsnow
Primary
#100705black
#100705black
Primary foreground
#d58472darksalmon
#d58472darksalmon
Secondary
#100508black
#100508black
Secondary foreground
#d57291palevioletred
#d57291palevioletred
Muted
#eee7e9linen
#181113black
Muted foreground
#49363cdarkslategray
#c9b6bcsilver
Accent
#100c05black
#100c05black
Accent foreground
#d5b572burlywood
#d5b572burlywood
Destructive
#b20b06firebrick
#e40e07red
Destructive foreground
#feeceblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#100705black
#100705black

Contrast

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

Light mode
Text on background19.76:1AAA
Text on card19.45:1AAA
Primary button7.00:1AAA
Secondary button6.35:1AA
Muted text9.18:1AAA
Accent9.91:1AAA
Destructive6.24:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.66:1AAA
Primary button7.00:1AAA
Secondary button6.35:1AA
Muted text9.67:1AAA
Accent9.91:1AAA
Destructive4.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 32.661);
  --foreground: oklch(0.125 0.02 40.808);
  --muted: oklch(0.934 0.009 355.893);
  --muted-foreground: oklch(0.357 0.029 357.849);
  --popover: oklch(0.991 0.003 32.661);
  --popover-foreground: oklch(0.125 0.02 40.808);
  --card: oklch(0.983 0.005 32.661);
  --card-foreground: oklch(0.109 0.018 41.188);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.14 0.018 37.457);
  --primary-foreground: oklch(0.693 0.104 33.405);
  --secondary: oklch(0.135 0.024 356.964);
  --secondary-foreground: oklch(0.672 0.128 0.944);
  --accent: oklch(0.157 0.018 88.483);
  --accent-foreground: oklch(0.787 0.094 85.463);
  --destructive: oklch(0.483 0.193 29.33);
  --destructive-foreground: oklch(0.957 0.02 19.908);
  --ring: oklch(0.14 0.018 37.457);
  --chart-1: oklch(0.14 0.018 37.457);
  --chart-2: oklch(0.135 0.024 356.964);
  --chart-3: oklch(0.157 0.018 88.483);
  --chart-4: oklch(0.17 0.035 1.243);
  --chart-5: oklch(0.14 0.02 37.86);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.019 37.589);
  --foreground: oklch(0.992 0.002 32.661);
  --muted: oklch(0.187 0.014 357.656);
  --muted-foreground: oklch(0.793 0.023 356.448);
  --popover: oklch(0.14 0.019 37.589);
  --popover-foreground: oklch(0.992 0.002 32.661);
  --card: oklch(0.152 0.022 36.148);
  --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.14 0.018 37.457);
  --primary-foreground: oklch(0.693 0.104 33.405);
  --secondary: oklch(0.135 0.024 356.964);
  --secondary-foreground: oklch(0.672 0.128 0.944);
  --accent: oklch(0.157 0.018 88.483);
  --accent-foreground: oklch(0.787 0.094 85.463);
  --destructive: oklch(0.579 0.233 29.323);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.14 0.018 37.457);
  --chart-1: oklch(0.14 0.018 37.457);
  --chart-2: oklch(0.135 0.024 356.964);
  --chart-3: oklch(0.157 0.018 88.483);
  --chart-4: oklch(0.17 0.035 1.243);
  --chart-5: oklch(0.14 0.02 37.86);
}