Sitar is a shadcn/ui theme built around a yellow primary color (#dad595) with indigo accents (#959ada). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#dad595) on a yellow-tinted background (#100f04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100f04black |
| Foreground | #080802black | #ffffffwhite |
| Card | #ffffffwhite | #100f04black |
| Card foreground | #080802black | #ffffffwhite |
| Popover | #ffffffwhite | #100f04black |
| Popover foreground | #080802black | #ffffffwhite |
| Primary | #dad595khaki | #dad595khaki |
| Primary foreground | #2d2b10black | #2d2b10black |
| Secondary | #959adamediumpurple | #959adamediumpurple |
| Secondary foreground | #10122dblack | #10122dblack |
| Muted | #ebecf4lavender | #0b0c14black |
| Muted foreground | #53545adimgray | #a5a5acdarkgray |
| Accent | #959adamediumpurple | #959adamediumpurple |
| Accent foreground | #10122dblack | #10122dblack |
| Destructive | #80330asaddlebrown | #ef6f2achocolate |
| Destructive foreground | #fad5c1peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dad595khaki | #dad595khaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.07:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 9.53:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 6.41:1 | AA |
| Accent | 6.90:1 | AA |
| Destructive | 6.40:1 | AA |
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 9.53:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 7.98:1 | AAA |
| Accent | 6.90:1 | AA |
| Destructive | 6.95:1 | AA |
Paste this into your globals.css to use Sitar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.132 0.02 106.278);
--muted: oklch(0.945 0.011 282.912);
--muted-foreground: oklch(0.447 0.01 282.699);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.132 0.02 106.278);
--card: oklch(1 0 180);
--card-foreground: oklch(0.132 0.02 106.278);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.863 0.083 104.538);
--primary-foreground: oklch(0.285 0.044 105.117);
--secondary: oklch(0.707 0.093 280.563);
--secondary-foreground: oklch(0.197 0.054 277.146);
--accent: oklch(0.707 0.093 280.563);
--accent-foreground: oklch(0.197 0.054 277.146);
--destructive: oklch(0.424 0.117 43.603);
--destructive-foreground: oklch(0.9 0.05 50.002);
--ring: oklch(0.863 0.083 104.538);
--chart-1: oklch(0.863 0.083 104.538);
--chart-2: oklch(0.707 0.093 280.563);
--chart-3: oklch(0.707 0.093 280.563);
--chart-4: oklch(0.739 0.082 280.998);
--chart-5: oklch(0.868 0.088 104.597);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.166 0.022 105.369);
--foreground: oklch(1 0 180);
--muted: oklch(0.156 0.017 281.049);
--muted-foreground: oklch(0.725 0.009 282.887);
--popover: oklch(0.166 0.022 105.369);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.166 0.022 105.369);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.863 0.083 104.538);
--primary-foreground: oklch(0.285 0.044 105.117);
--secondary: oklch(0.707 0.093 280.563);
--secondary-foreground: oklch(0.197 0.054 277.146);
--accent: oklch(0.707 0.093 280.563);
--accent-foreground: oklch(0.197 0.054 277.146);
--destructive: oklch(0.685 0.176 44.981);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.863 0.083 104.538);
--chart-1: oklch(0.863 0.083 104.538);
--chart-2: oklch(0.707 0.093 280.563);
--chart-3: oklch(0.707 0.093 280.563);
--chart-4: oklch(0.739 0.082 280.998);
--chart-5: oklch(0.868 0.088 104.597);
}