Right is a shadcn/ui theme built around a yellow primary color (#c2c65d) with green accents (#8ec65d). The light mode uses a neutral background (#fdfdf6). Dark mode keeps the yellow primary (#c2c65d) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdf6snow | #040401black |
| Foreground | #090901black | #fcfcf8snow |
| Card | #fcfdf2ivory | #070703black |
| Card foreground | #040401black | #fdfdfcwhite |
| Popover | #fdfdf6snow | #040401black |
| Popover foreground | #090901black | #fcfcf8snow |
| Primary | #c2c65ddarkkhaki | #c2c65ddarkkhaki |
| Primary foreground | #000000black | #000000black |
| Secondary | #c6955dperu | #c6955dperu |
| Secondary foreground | #000000black | #000000black |
| Muted | #efebe6linen | #191510black |
| Muted foreground | #58524bdarkolivegreen | #b4aea7darkgray |
| Accent | #8ec65dyellowgreen | #8ec65dyellowgreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #9b120ddarkred | #d81913crimson |
| Destructive foreground | #fcdfdemistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c2c65ddarkkhaki | #c2c65ddarkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 11.53:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 6.49:1 | AA |
| Accent | 10.38:1 | AAA |
| Destructive | 6.74:1 | AA |
| Text on background | 19.98:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 11.53:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 8.28:1 | AAA |
| Accent | 10.38:1 | AAA |
| Destructive | 5.16:1 | AA |
Paste this into your globals.css to use Right in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.009 108.11);
--foreground: oklch(0.135 0.023 110.311);
--muted: oklch(0.942 0.008 71.381);
--muted-foreground: oklch(0.442 0.014 71.153);
--popover: oklch(0.993 0.009 108.11);
--popover-foreground: oklch(0.135 0.023 110.311);
--card: oklch(0.99 0.014 108.196);
--card-foreground: oklch(0.107 0.018 110.311);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.802 0.129 110.713);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.704 0.094 69.01);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.765 0.149 132.253);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.441 0.17 28.861);
--destructive-foreground: oklch(0.928 0.032 20.113);
--ring: oklch(0.802 0.129 110.713);
--chart-1: oklch(0.802 0.129 110.713);
--chart-2: oklch(0.704 0.094 69.01);
--chart-3: oklch(0.765 0.149 132.253);
--chart-4: oklch(0.725 0.088 69.443);
--chart-5: oklch(0.812 0.135 110.813);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.012 109.592);
--foreground: oklch(0.989 0.005 108.032);
--muted: oklch(0.197 0.011 70.848);
--muted-foreground: oklch(0.753 0.012 71.307);
--popover: oklch(0.102 0.012 109.592);
--popover-foreground: oklch(0.989 0.005 108.032);
--card: oklch(0.128 0.015 109.592);
--card-foreground: oklch(0.995 0.002 107.985);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.802 0.129 110.713);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.704 0.094 69.01);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.765 0.149 132.253);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.562 0.219 29.029);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.802 0.129 110.713);
--chart-1: oklch(0.802 0.129 110.713);
--chart-2: oklch(0.704 0.094 69.01);
--chart-3: oklch(0.765 0.149 132.253);
--chart-4: oklch(0.725 0.088 69.443);
--chart-5: oklch(0.812 0.135 110.813);
}