Right is a shadcn/ui theme built around a pink primary color (#bd6184) with red accents (#bd6c61). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#bd6184) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040102black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #bd6184palevioletred | #bd6184palevioletred |
| Primary foreground | #000000black | #000000black |
| Secondary | #bd61b2mediumorchid | #bd61b2mediumorchid |
| Secondary foreground | #000000black | #000000black |
| Muted | #dfd3ddgainsboro | #2c202bdarkslategray |
| Muted foreground | #675f66dimgray | #a0989fdarkgray |
| Accent | #bd6c61indianred | #bd6c61indianred |
| Accent foreground | #000000black | #000000black |
| Destructive | #802000maroon | #ff6633tomato |
| Destructive foreground | #ffc6b3peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bd6184palevioletred | #bd6184palevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.78:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 5.19:1 | AA |
| Secondary button | 5.50:1 | AA |
| Muted text | 4.24:1 | AA Large |
| Accent | 5.45:1 | AA |
| Destructive | 6.60:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.19:1 | AA |
| Secondary button | 5.50:1 | AA |
| Muted text | 5.53:1 | AA |
| Accent | 5.45:1 | AA |
| Destructive | 7.20:1 | AAA |
Paste this into your globals.css to use Right in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.015 351.216);
--muted: oklch(0.879 0.02 329.393);
--muted-foreground: oklch(0.497 0.015 329.476);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.61 0.124 357.131);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.628 0.155 331.758);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.618 0.106 28.442);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.397 0.135 36.211);
--destructive-foreground: oklch(0.872 0.071 39.231);
--ring: oklch(0.61 0.124 357.131);
--chart-1: oklch(0.61 0.124 357.131);
--chart-2: oklch(0.628 0.155 331.758);
--chart-3: oklch(0.618 0.106 28.442);
--chart-4: oklch(0.652 0.145 331.501);
--chart-5: oklch(0.61 0.133 357.57);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 351.643);
--muted: oklch(0.263 0.027 330.256);
--muted-foreground: oklch(0.687 0.014 329.363);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.61 0.124 357.131);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.628 0.155 331.758);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.618 0.106 28.442);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.698 0.197 37.979);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.61 0.124 357.131);
--chart-1: oklch(0.61 0.124 357.131);
--chart-2: oklch(0.628 0.155 331.758);
--chart-3: oklch(0.618 0.106 28.442);
--chart-4: oklch(0.652 0.145 331.501);
--chart-5: oklch(0.61 0.133 357.57);
}