Nasal for shadcn/ui

Nasal is a shadcn/ui theme built around a red primary color (#e04f2e) with muted light red accents (#ebe6e5). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#e04f2e) on a red-tinted background (#0c0503).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0503black
Foreground
#000000black
#fcf9f8snow
Card
#fcfcfcsnow
#100705black
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#0c0503black
Popover foreground
#000000black
#fcf9f8snow
Primary
#e04f2echocolate
#e04f2echocolate
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ebe6e5linen
#2b2726darkslategray
Secondary foreground
#5a4844darkolivegreen
#c5bfbesilver
Muted
#ebe6e6linen
#191514black
Muted foreground
#5f5553dimgray
#aca2a0darkgray
Accent
#ebe6e5linen
#2b2726darkslategray
Accent foreground
#5a4844darkolivegreen
#c5bfbesilver
Destructive
#c52602firebrick
#fd3408orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e04f2echocolate
#e04f2echocolate

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button3.94:1AA Large
Secondary button6.94:1AA
Muted text5.84:1AA
Accent6.94:1AA
Destructive5.75:1AA
Dark mode
Text on background19.30:1AAA
Text on card19.48:1AAA
Primary button3.94:1AA Large
Secondary button8.11:1AAA
Muted text7.24:1AAA
Accent8.11:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.929 0.005 32.661);
  --muted-foreground: oklch(0.46 0.014 32.695);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.621 0.187 34.09);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.929 0.006 32.661);
  --secondary-foreground: oklch(0.419 0.026 32.809);
  --accent: oklch(0.929 0.006 32.661);
  --accent-foreground: oklch(0.419 0.026 32.809);
  --destructive: oklch(0.533 0.198 32.545);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.621 0.187 34.09);
  --chart-1: oklch(0.621 0.187 34.09);
  --chart-2: oklch(0.929 0.006 32.661);
  --chart-3: oklch(0.929 0.006 32.661);
  --chart-4: oklch(0.953 0.004 32.661);
  --chart-5: oklch(0.624 0.193 34.028);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.016 38.77);
  --foreground: oklch(0.984 0.003 32.661);
  --muted: oklch(0.202 0.007 32.706);
  --muted-foreground: oklch(0.72 0.012 32.67);
  --popover: oklch(0.126 0.016 38.77);
  --popover-foreground: oklch(0.984 0.003 32.661);
  --card: oklch(0.14 0.019 37.589);
  --card-foreground: oklch(0.992 0.002 32.661);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.621 0.187 34.09);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.278 0.006 32.678);
  --secondary-foreground: oklch(0.811 0.007 32.662);
  --accent: oklch(0.278 0.006 32.678);
  --accent-foreground: oklch(0.811 0.007 32.662);
  --destructive: oklch(0.643 0.238 32.467);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.621 0.187 34.09);
  --chart-1: oklch(0.621 0.187 34.09);
  --chart-2: oklch(0.278 0.006 32.678);
  --chart-3: oklch(0.278 0.006 32.678);
  --chart-4: oklch(0.308 0.007 32.679);
  --chart-5: oklch(0.624 0.193 34.028);
}