Srinivas is a shadcn/ui theme built around a muted indigo primary color (#a4a6b6) with muted violet accents (#aca4b6). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted indigo primary (#a4a6b6) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #020203black |
| Foreground | #040510black | #f6f6f8whitesmoke |
| Card | #f7f8fcghostwhite | #040407black |
| Card foreground | #03040cblack | #f9f9fbghostwhite |
| Popover | #fbfbfeghostwhite | #020203black |
| Popover foreground | #040510black | #f6f6f8whitesmoke |
| Primary | #a4a6b6darkgray | #a4a6b6darkgray |
| Primary foreground | #121217black | #121217black |
| Secondary | #a4afb6darkgray | #a4afb6darkgray |
| Secondary foreground | #121517black | #121517black |
| Muted | #dde4e9gainsboro | #161d22black |
| Muted foreground | #4b555ddarkslategray | #a2acb4darkgray |
| Accent | #aca4b6darkgray | #aca4b6darkgray |
| Accent foreground | #141217black | #141217black |
| Destructive | #9c0c07darkred | #f63e37tomato |
| Destructive foreground | #fdd9d8mistyrose | #ffffffwhite |
| Border | #e7e7e9lavender | #222226black |
| Input | #e7e7e9lavender | #222226black |
| Ring | #a4a6b6darkgray | #a4a6b6darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 6.52:1 | AA |
| Text on background | 19.22:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 7.38:1 | AAA |
| Accent | 7.77:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Srinivas in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 283.055);
--foreground: oklch(0.121 0.028 276.828);
--muted: oklch(0.914 0.01 240.442);
--muted-foreground: oklch(0.445 0.019 240.883);
--popover: oklch(0.99 0.003 283.055);
--popover-foreground: oklch(0.121 0.028 276.828);
--card: oklch(0.98 0.006 283.001);
--card-foreground: oklch(0.11 0.024 276.839);
--border: oklch(0.928 0.003 283.043);
--input: oklch(0.928 0.003 283.043);
--primary: oklch(0.728 0.024 282.528);
--primary-foreground: oklch(0.186 0.008 282.296);
--secondary: oklch(0.747 0.016 240.581);
--secondary-foreground: oklch(0.192 0.006 240.692);
--accent: oklch(0.732 0.027 305.25);
--accent-foreground: oklch(0.187 0.009 305.067);
--destructive: oklch(0.44 0.174 29.176);
--destructive-foreground: oklch(0.916 0.04 20.256);
--ring: oklch(0.728 0.024 282.528);
--chart-1: oklch(0.728 0.024 282.528);
--chart-2: oklch(0.747 0.016 240.581);
--chart-3: oklch(0.732 0.027 305.25);
--chart-4: oklch(0.772 0.014 240.542);
--chart-5: oklch(0.723 0.031 282.354);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.008 280.708);
--foreground: oklch(0.975 0.003 283.06);
--muted: oklch(0.226 0.015 241.248);
--muted-foreground: oklch(0.739 0.017 240.595);
--popover: oklch(0.085 0.008 280.708);
--popover-foreground: oklch(0.975 0.003 283.06);
--card: oklch(0.107 0.01 280.708);
--card-foreground: oklch(0.983 0.002 283.076);
--border: oklch(0.253 0.007 282.59);
--input: oklch(0.253 0.007 282.59);
--primary: oklch(0.728 0.024 282.528);
--primary-foreground: oklch(0.186 0.008 282.296);
--secondary: oklch(0.747 0.016 240.581);
--secondary-foreground: oklch(0.192 0.006 240.692);
--accent: oklch(0.732 0.027 305.25);
--accent-foreground: oklch(0.187 0.009 305.067);
--destructive: oklch(0.641 0.221 27.521);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.728 0.024 282.528);
--chart-1: oklch(0.728 0.024 282.528);
--chart-2: oklch(0.747 0.016 240.581);
--chart-3: oklch(0.732 0.027 305.25);
--chart-4: oklch(0.772 0.014 240.542);
--chart-5: oklch(0.723 0.031 282.354);
}