Rhyme is a shadcn/ui theme built around a red primary color (#904c4c) with orange accents (#906e4c). The light mode uses a neutral background (#fdfbfb). Dark mode keeps the red primary (#904c4c) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfbsnow | #070303black |
| Foreground | #000000black | #f9f6f6whitesmoke |
| Card | #fcf8f8snow | #0a0505black |
| Card foreground | #000000black | #fbf9f9snow |
| Popover | #fdfbfbsnow | #070303black |
| Popover foreground | #000000black | #f9f6f6whitesmoke |
| Primary | #904c4csienna | #904c4csienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #904c6edimgray | #904c6edimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7d4degainsboro | #2b1821black |
| Muted foreground | #5a4952dimgray | #b6a5addarkgray |
| Accent | #906e4csienna | #906e4csienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #612705maroon | #e0590bchocolate |
| Destructive foreground | #fac09enavajowhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #904c4csienna | #904c4csienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 6.34:1 | AA |
| Secondary button | 6.12:1 | AA |
| Muted text | 5.94:1 | AA |
| Accent | 4.66:1 | AA |
| Destructive | 7.27:1 | AAA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 6.34:1 | AA |
| Secondary button | 6.12:1 | AA |
| Muted text | 7.17:1 | AAA |
| Accent | 4.66:1 | AA |
| Destructive | 3.75:1 | AA Large |
Paste this into your globals.css to use Rhyme in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 17.193);
--foreground: oklch(0 0 0);
--muted: oklch(0.889 0.025 345.856);
--muted-foreground: oklch(0.427 0.025 346.633);
--popover: oklch(0.991 0.002 17.193);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.004 17.229);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.498 0.092 20.888);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.508 0.101 349.962);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.563 0.065 65.867);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.351 0.095 45.288);
--destructive-foreground: oklch(0.852 0.082 51.343);
--ring: oklch(0.498 0.092 20.888);
--chart-1: oklch(0.498 0.092 20.888);
--chart-2: oklch(0.508 0.101 349.962);
--chart-3: oklch(0.563 0.065 65.867);
--chart-4: oklch(0.533 0.106 349.998);
--chart-5: oklch(0.496 0.101 21.366);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.01 18.852);
--foreground: oklch(0.975 0.004 17.219);
--muted: oklch(0.237 0.035 348.704);
--muted-foreground: oklch(0.739 0.022 345.904);
--popover: oklch(0.109 0.01 18.852);
--popover-foreground: oklch(0.975 0.004 17.219);
--card: oklch(0.125 0.012 18.852);
--card-foreground: oklch(0.983 0.002 17.198);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.498 0.092 20.888);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.508 0.101 349.962);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.563 0.065 65.867);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.631 0.184 42.824);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.498 0.092 20.888);
--chart-1: oklch(0.498 0.092 20.888);
--chart-2: oklch(0.508 0.101 349.962);
--chart-3: oklch(0.563 0.065 65.867);
--chart-4: oklch(0.533 0.106 349.998);
--chart-5: oklch(0.496 0.101 21.366);
}