RishtaHai Color Theme is a shadcn/ui theme built around a near-black primary color (#000000) with vivid pink accents (#f34d79). The light mode uses a yellow-tinted background (#f5f2dc). Dark mode switches to a vivid yellow primary (#ffc800) on a yellow-tinted background (#0f0d05).
| Token | Light | Dark |
|---|---|---|
| Background | #f5f2dcbeige | #0f0d05black |
| Foreground | #080702black | #fdfdfcwhite |
| Card | #fdfaf2floralwhite | #131006black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #ffee82khaki | #0f0d05black |
| Popover foreground | #080702black | #fdfdfcwhite |
| Primary | #000000black | #ffc800gold |
| Primary foreground | #ffffffwhite | #332800black |
| Secondary | #4baae7cornflowerblue | #161513black |
| Secondary foreground | #ffffffwhite | #b5b2a6darkgray |
| Muted | #ffffffwhite | #1f1d14black |
| Muted foreground | #5e5c55dimgray | #aaa8a1darkgray |
| Accent | #f34d79palevioletred | #29271edarkslategray |
| Accent foreground | #ffffffwhite | #c7c2b3silver |
| Destructive | #b41111firebrick | #df1111red |
| Destructive foreground | #fef1f1lavenderblush | #ffffffwhite |
| Border | #efeeeblinen | #1f1e19black |
| Input | #efeeeblinen | #1f1e19black |
| Ring | #ff305ftomato | #ffc800gold |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.87:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 21.00:1 | AAA |
| Secondary button | 2.56:1 | Fail |
| Muted text | 6.69:1 | AA |
| Accent | 3.41:1 | AA Large |
| Destructive | 6.26:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 9.34:1 | AAA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 7.10:1 | AAA |
| Accent | 8.42:1 | AAA |
| Destructive | 4.97:1 | AA |
Paste this into your globals.css to use RishtaHai Color Theme in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.958 0.028 99.843);
--foreground: oklch(0.128 0.018 98.935);
--muted: oklch(1 0 180);
--muted-foreground: oklch(0.474 0.011 94.108);
--popover: oklch(0.942 0.131 100.785);
--popover-foreground: oklch(0.128 0.018 98.935);
--card: oklch(0.985 0.011 93.984);
--card-foreground: oklch(0.101 0.014 98.935);
--border: oklch(0.949 0.004 93.909);
--input: oklch(0.949 0.004 93.909);
--primary: oklch(0 0 0);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.706 0.127 240.72);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.662 0.203 8.896);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.491 0.192 28.271);
--destructive-foreground: oklch(0.968 0.014 17.402);
--ring: oklch(0.653 0.237 15.252);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.706 0.127 240.72);
--chart-3: oklch(0.662 0.203 8.896);
--chart-4: oklch(0.726 0.119 239.938);
--chart-5: oklch(0 0 0);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.018 95.999);
--foreground: oklch(0.993 0.001 93.874);
--muted: oklch(0.229 0.017 94.442);
--muted-foreground: oklch(0.732 0.01 94.011);
--popover: oklch(0.159 0.018 95.999);
--popover-foreground: oklch(0.993 0.001 93.874);
--card: oklch(0.175 0.021 95.117);
--card-foreground: oklch(1 0 180);
--border: oklch(0.233 0.008 94.215);
--input: oklch(0.233 0.008 94.215);
--primary: oklch(0.857 0.175 88.369);
--primary-foreground: oklch(0.281 0.058 92.808);
--secondary: oklch(0.197 0.006 94.156);
--secondary-foreground: oklch(0.762 0.016 94.087);
--accent: oklch(0.271 0.015 94.361);
--accent-foreground: oklch(0.814 0.022 94.136);
--destructive: oklch(0.572 0.228 28.645);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.175 88.369);
--chart-1: oklch(0.857 0.175 88.369);
--chart-2: oklch(0.197 0.006 94.156);
--chart-3: oklch(0.271 0.015 94.361);
--chart-4: oklch(0.233 0.008 94.186);
--chart-5: oklch(0.865 0.177 88.019);
}