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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 16.67:1 | AAA |
| Text on card | 16.67:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 4.53:1 | AA |
| Muted text | 14.32:1 | AAA |
| Accent | 13.35:1 | AAA |
| Destructive | 9.00:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 9.04:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 3.81:1 | AA Large |
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);
}