Rich is a shadcn/ui theme built around a vivid violet primary color (#ac4efd) with vivid teal accents (#4efdac). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#ac4efd) on a violet-tinted background (#08040b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #08040bblack |
| Foreground | #050208black | #fdfbfdsnow |
| Card | #fcfcfcsnow | #0b050fblack |
| Card foreground | #030104black | #ffffffwhite |
| Popover | #fcfcfcsnow | #0b050fblack |
| Popover foreground | #030104black | #ffffffwhite |
| Primary | #ac4efdmediumorchid | #ac4efdmediumorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #fdac4esandybrown | #fdac4esandybrown |
| Secondary foreground | #190e00black | #190e00black |
| Muted | #ebdfd1gainsboro | #2e2214black |
| Muted foreground | #585451dimgray | #aeaba7darkgray |
| Accent | #4efdacturquoise | #4efdacturquoise |
| Accent foreground | #00190eblack | #00190eblack |
| Destructive | #a11412firebrick | #d81b18crimson |
| Destructive foreground | #fce8e8linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ac4efdmediumorchid | #ac4efdmediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 3.98:1 | AA Large |
| Secondary button | 10.11:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 13.96:1 | AAA |
| Destructive | 6.81:1 | AA |
| Text on background | 19.75:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 3.98:1 | AA Large |
| Secondary button | 10.11:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 13.96:1 | AAA |
| Destructive | 5.14:1 | AA |
Paste this into your globals.css to use Rich in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.101 0.024 311.627);
--muted: oklch(0.909 0.023 71.211);
--muted-foreground: oklch(0.449 0.007 71.309);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.081 0.019 311.627);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.081 0.019 311.627);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.627 0.248 304.521);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.806 0.144 66.608);
--secondary-foreground: oklch(0.174 0.036 75.189);
--accent: oklch(0.887 0.182 158.429);
--accent-foreground: oklch(0.19 0.042 161.325);
--destructive: oklch(0.453 0.174 28.303);
--destructive-foreground: oklch(0.948 0.022 18.723);
--ring: oklch(0.627 0.248 304.521);
--chart-1: oklch(0.627 0.248 304.521);
--chart-2: oklch(0.806 0.144 66.608);
--chart-3: oklch(0.887 0.182 158.429);
--chart-4: oklch(0.821 0.134 67.642);
--chart-5: oklch(0.627 0.253 304.285);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.022 311.076);
--foreground: oklch(0.991 0.003 309.756);
--muted: oklch(0.263 0.031 69.572);
--muted-foreground: oklch(0.743 0.006 71.377);
--popover: oklch(0.132 0.025 309.619);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.132 0.025 309.619);
--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.627 0.248 304.521);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.806 0.144 66.608);
--secondary-foreground: oklch(0.174 0.036 75.189);
--accent: oklch(0.887 0.182 158.429);
--accent-foreground: oklch(0.19 0.042 161.325);
--destructive: oklch(0.562 0.218 28.512);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.627 0.248 304.521);
--chart-1: oklch(0.627 0.248 304.521);
--chart-2: oklch(0.806 0.144 66.608);
--chart-3: oklch(0.887 0.182 158.429);
--chart-4: oklch(0.821 0.134 67.642);
--chart-5: oklch(0.627 0.253 304.285);
}