SHANTI is a shadcn/ui theme built around a light red primary color (#f9efec) with red accents (#d47a7a). The light mode uses a red-tinted background (#ffdcd3). Dark mode switches to a pink primary (#762346) on a neutral background (#040102).
| Token | Light | Dark |
|---|---|---|
| Background | #ffdcd3mistyrose | #040102black |
| Foreground | #14060cblack | #faf4f7whitesmoke |
| Card | #fdf6f9snow | #040102black |
| Card foreground | #14060cblack | #faf4f7whitesmoke |
| Popover | #fdf6f9snow | #040102black |
| Popover foreground | #14060cblack | #faf4f7whitesmoke |
| Primary | #f9efeclinen | #762346brown |
| Primary foreground | #501c1amaroon | #f3d8e3mistyrose |
| Secondary | #e8c0b3lightpink | #467623darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eff5eahoneydew | #0e150ablack |
| Muted foreground | #4d5945darkolivegreen | #aebaa6darkgray |
| Accent | #d47a7apalevioletred | #234676darkslategray |
| Accent foreground | #e9eef5lavender | #d8e3f3lavender |
| Destructive | #942205darkred | #dd3308orangered |
| Destructive foreground | #fdd7cebisque | #ffffffwhite |
| Border | #eeecedwhitesmoke | #292426darkslategray |
| Input | #eeecedwhitesmoke | #292426darkslategray |
| Ring | #762346brown | #762346brown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 15.48:1 | AAA |
| Text on card | 18.65:1 | AAA |
| Primary button | 12.18:1 | AAA |
| Secondary button | 1.66:1 | Fail |
| Muted text | 6.69:1 | AA |
| Accent | 2.63:1 | Fail |
| Destructive | 6.36:1 | AA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 5.43:1 | AA |
| Muted text | 9.18:1 | AAA |
| Accent | 7.36:1 | AAA |
| Destructive | 4.60:1 | AA |
Paste this into your globals.css to use SHANTI in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.921 0.041 34.756);
--foreground: oklch(0.148 0.028 353.175);
--muted: oklch(0.963 0.016 131.861);
--muted-foreground: oklch(0.448 0.036 132.412);
--popover: oklch(0.981 0.008 349.907);
--popover-foreground: oklch(0.148 0.028 353.175);
--card: oklch(0.981 0.008 349.907);
--card-foreground: oklch(0.148 0.028 353.175);
--border: oklch(0.945 0.003 349.747);
--input: oklch(0.945 0.003 349.747);
--primary: oklch(0.959 0.012 34.748);
--primary-foreground: oklch(0.306 0.079 25.056);
--secondary: oklch(0.839 0.049 38.793);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.677 0.113 20.444);
--accent-foreground: oklch(0.948 0.011 256.695);
--destructive: oklch(0.438 0.154 33.81);
--destructive-foreground: oklch(0.909 0.045 34.332);
--ring: oklch(0.396 0.12 358.509);
--chart-1: oklch(0.959 0.012 34.748);
--chart-2: oklch(0.839 0.049 38.793);
--chart-3: oklch(0.677 0.113 20.444);
--chart-4: oklch(0.864 0.041 38.814);
--chart-5: oklch(0.958 0.013 34.748);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.017 349.288);
--foreground: oklch(0.974 0.007 349.871);
--muted: oklch(0.184 0.024 132.901);
--muted-foreground: oklch(0.774 0.032 132.063);
--popover: oklch(0.084 0.017 349.288);
--popover-foreground: oklch(0.974 0.007 349.871);
--card: oklch(0.084 0.017 349.288);
--card-foreground: oklch(0.974 0.007 349.871);
--border: oklch(0.266 0.008 350.463);
--input: oklch(0.266 0.008 350.463);
--primary: oklch(0.396 0.12 358.509);
--primary-foreground: oklch(0.907 0.034 350.692);
--secondary: oklch(0.513 0.125 134.756);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.393 0.091 257.192);
--accent-foreground: oklch(0.913 0.025 256.744);
--destructive: oklch(0.587 0.211 33.27);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.396 0.12 358.509);
--chart-1: oklch(0.396 0.12 358.509);
--chart-2: oklch(0.513 0.125 134.756);
--chart-3: oklch(0.393 0.091 257.192);
--chart-4: oklch(0.549 0.135 134.805);
--chart-5: oklch(0.397 0.125 359.068);
}