Rite is a shadcn/ui theme built around a muted violet primary color (#6f5aa0) with muted green accents (#8ba05a). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the muted violet primary (#6f5aa0) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f7fdghostwhite | #020104black |
| Foreground | #070312black | #fcfcfdwhite |
| Card | #f6f3fbwhitesmoke | #040208black |
| Card foreground | #05020dblack | #ffffffwhite |
| Popover | #f9f7fdghostwhite | #020104black |
| Popover foreground | #070312black | #fcfcfdwhite |
| Primary | #6f5aa0rebeccapurple | #6f5aa0rebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8ba05agray | #8ba05agray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e6ebdbgainsboro | #1f2414black |
| Muted foreground | #62635fdimgray | #9fa09cdarkgray |
| Accent | #8ba05agray | #8ba05agray |
| Accent foreground | #000000black | #000000black |
| Destructive | #98230bbrown | #ef4625orangered |
| Destructive foreground | #fcdfd9mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f5aa0rebeccapurple | #6f5aa0rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.16:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 5.76:1 | AA |
| Secondary button | 7.26:1 | AAA |
| Muted text | 4.99:1 | AA |
| Accent | 7.26:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 5.76:1 | AA |
| Secondary button | 7.26:1 | AAA |
| Muted text | 6.01:1 | AA |
| Accent | 7.26:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Rite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.007 299.91);
--foreground: oklch(0.118 0.039 298.416);
--muted: oklch(0.933 0.023 120.454);
--muted-foreground: oklch(0.497 0.006 120.249);
--popover: oklch(0.979 0.007 299.91);
--popover-foreground: oklch(0.118 0.039 298.416);
--card: oklch(0.969 0.011 299.843);
--card-foreground: oklch(0.106 0.034 299.886);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.519 0.109 296.206);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.673 0.098 122.706);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.673 0.098 122.706);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.447 0.156 32.767);
--destructive-foreground: oklch(0.926 0.033 31.153);
--ring: oklch(0.519 0.109 296.206);
--chart-1: oklch(0.519 0.109 296.206);
--chart-2: oklch(0.673 0.098 122.706);
--chart-3: oklch(0.673 0.098 122.706);
--chart-4: oklch(0.696 0.096 122.534);
--chart-5: oklch(0.513 0.121 295.679);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.08 0.016 300.237);
--foreground: oklch(0.991 0.001 300.016);
--muted: oklch(0.252 0.031 122.206);
--muted-foreground: oklch(0.704 0.006 120.174);
--popover: oklch(0.08 0.016 300.237);
--popover-foreground: oklch(0.991 0.001 300.016);
--card: oklch(0.101 0.02 300.237);
--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.519 0.109 296.206);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.673 0.098 122.706);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.673 0.098 122.706);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.635 0.21 33.073);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.519 0.109 296.206);
--chart-1: oklch(0.519 0.109 296.206);
--chart-2: oklch(0.673 0.098 122.706);
--chart-3: oklch(0.673 0.098 122.706);
--chart-4: oklch(0.696 0.096 122.534);
--chart-5: oklch(0.513 0.121 295.679);
}