Delirious for shadcn/ui

Delirious is a shadcn/ui theme built around a light red primary color (#f8ebe8) with light cyan accents (#e8f4f8). The light mode uses a neutral background (#fefcfb). Dark mode keeps the light red primary (#f8ebe8) on a neutral background (#070403).

Color palette

TokenLightDark
Background
#fefcfbsnow
#070403black
Foreground
#150804black
#fbfaf9snow
Card
#fdf8f7snow
#0b0604black
Card foreground
#110603black
#fdfcfcsnow
Popover
#fdf8f7snow
#0b0604black
Popover foreground
#110603black
#fdfcfcsnow
Primary
#f8ebe8linen
#f8ebe8linen
Primary foreground
#833e2asaddlebrown
#833e2asaddlebrown
Secondary
#e8f4f8aliceblue
#e8f4f8aliceblue
Secondary foreground
#112e36darkslategray
#112e36darkslategray
Muted
#d9e4e7gainsboro
#182326black
Muted foreground
#464849darkslategray
#b6b8b9silver
Accent
#e8f4f8aliceblue
#e8f4f8aliceblue
Accent foreground
#112e36darkslategray
#112e36darkslategray
Destructive
#aa1a03firebrick
#fb4d32tomato
Destructive foreground
#fee5e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8ebe8linen
#f8ebe8linen

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card18.99:1AAA
Primary button6.71:1AA
Secondary button12.76:1AAA
Muted text7.12:1AAA
Accent12.76:1AAA
Destructive6.13:1AA
Dark mode
Text on background19.60:1AAA
Text on card19.69:1AAA
Primary button6.71:1AA
Secondary button12.76:1AAA
Muted text8.10:1AAA
Accent12.76:1AAA
Destructive3.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 36.002);
  --foreground: oklch(0.154 0.026 40.863);
  --muted: oklch(0.913 0.013 216.076);
  --muted-foreground: oklch(0.401 0.003 216.045);
  --popover: oklch(0.983 0.005 35.993);
  --popover-foreground: oklch(0.14 0.022 42.689);
  --card: oklch(0.983 0.005 35.993);
  --card-foreground: oklch(0.14 0.022 42.689);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.95 0.014 35.969);
  --primary-foreground: oklch(0.449 0.101 36.394);
  --secondary: oklch(0.959 0.014 216.079);
  --secondary-foreground: oklch(0.283 0.037 218.455);
  --accent: oklch(0.959 0.014 216.079);
  --accent-foreground: oklch(0.283 0.037 218.455);
  --destructive: oklch(0.474 0.18 31.323);
  --destructive-foreground: oklch(0.941 0.029 28.115);
  --ring: oklch(0.95 0.014 35.969);
  --chart-1: oklch(0.95 0.014 35.969);
  --chart-2: oklch(0.959 0.014 216.079);
  --chart-3: oklch(0.959 0.014 216.079);
  --chart-4: oklch(0.98 0.007 216.041);
  --chart-5: oklch(0.949 0.015 35.967);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.011 41.272);
  --foreground: oklch(0.984 0.001 36.008);
  --muted: oklch(0.245 0.017 216.619);
  --muted-foreground: oklch(0.782 0.003 216.026);
  --popover: oklch(0.128 0.012 41.176);
  --popover-foreground: oklch(0.992 0.001 36.01);
  --card: oklch(0.128 0.012 41.176);
  --card-foreground: oklch(0.992 0.001 36.01);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.95 0.014 35.969);
  --primary-foreground: oklch(0.449 0.101 36.394);
  --secondary: oklch(0.959 0.014 216.079);
  --secondary-foreground: oklch(0.283 0.037 218.455);
  --accent: oklch(0.959 0.014 216.079);
  --accent-foreground: oklch(0.283 0.037 218.455);
  --destructive: oklch(0.663 0.215 31.615);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.95 0.014 35.969);
  --chart-1: oklch(0.95 0.014 35.969);
  --chart-2: oklch(0.959 0.014 216.079);
  --chart-3: oklch(0.959 0.014 216.079);
  --chart-4: oklch(0.98 0.007 216.041);
  --chart-5: oklch(0.949 0.015 35.967);
}