Mallyana 2 for shadcn/ui

Mallyana 2 is a shadcn/ui theme built around a red primary color (#94424f) with light red accents (#f4e2e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#94424f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#1e1e1eblack
#ffffffwhite
Card
#ffffffwhite
#030303black
Card foreground
#1e1e1eblack
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#1e1e1eblack
#ffffffwhite
Primary
#94424fsienna
#94424fsienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a26666indianred
#1d1b1cblack
Secondary foreground
#ffffffwhite
#b7b4b4silver
Muted
#f2ede7linen
#2d1519black
Muted foreground
#1e1e1eblack
#c3bbbdsilver
Accent
#f4e2e2mistyrose
#1d1b1cblack
Accent foreground
#1e1e1eblack
#b7b4b4silver
Destructive
#7f100amaroon
#ef4239tomato
Destructive foreground
#f3ebeblinen
#ffffffwhite
Border
#e9e2e3gainsboro
#201819black
Input
#e9e2e3gainsboro
#201819black
Ring
#94424fsienna
#94424fsienna

Contrast

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

Light mode
Text on background16.67:1AAA
Text on card16.67:1AAA
Primary button6.65:1AA
Secondary button4.53:1AA
Muted text14.32:1AAA
Accent13.35:1AAA
Destructive9.00:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.65:1AA
Secondary button8.30:1AAA
Muted text9.04:1AAA
Accent8.30:1AAA
Destructive3.81:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.235 0 180);
  --muted: oklch(0.948 0.01 72.665);
  --muted-foreground: oklch(0.235 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.235 0 180);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.235 0 180);
  --border: oklch(0.918 0.008 6.827);
  --input: oklch(0.918 0.008 6.827);
  --primary: oklch(0.49 0.11 12.744);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.575 0.078 19.726);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.927 0.02 17.514);
  --accent-foreground: oklch(0.235 0 180);
  --destructive: oklch(0.384 0.145 29.147);
  --destructive-foreground: oklch(0.947 0.009 21.008);
  --ring: oklch(0.49 0.11 12.744);
  --chart-1: oklch(0.49 0.11 12.744);
  --chart-2: oklch(0.575 0.078 19.726);
  --chart-3: oklch(0.927 0.02 17.514);
  --chart-4: oklch(0.602 0.072 19.382);
  --chart-5: oklch(0.489 0.118 13.35);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.232 0.039 10.965);
  --muted-foreground: oklch(0.8 0.009 6.871);
  --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.219 0.014 8.151);
  --input: oklch(0.219 0.014 8.151);
  --primary: oklch(0.49 0.11 12.744);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.226 0.002 6.792);
  --secondary-foreground: oklch(0.771 0.003 6.706);
  --accent: oklch(0.226 0.002 6.792);
  --accent-foreground: oklch(0.771 0.003 6.706);
  --destructive: oklch(0.633 0.211 27.908);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.49 0.11 12.744);
  --chart-1: oklch(0.49 0.11 12.744);
  --chart-2: oklch(0.226 0.002 6.792);
  --chart-3: oklch(0.226 0.002 6.792);
  --chart-4: oklch(0.258 0.002 6.807);
  --chart-5: oklch(0.489 0.118 13.35);
}