River is a shadcn/ui theme built around a muted light red primary color (#f5efef) with muted light red accents (#e0d1d2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light red primary (#f5efef) on a red-tinted background (#0b0404).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0404black |
| Foreground | #000000black | #fbf8f9snow |
| Card | #ffffffwhite | #0b0404black |
| Card foreground | #000000black | #fbf8f9snow |
| Popover | #ffffffwhite | #0b0404black |
| Popover foreground | #000000black | #fbf8f9snow |
| Primary | #f5efefwhitesmoke | #f5efefwhitesmoke |
| Primary foreground | #704345dimgray | #704345dimgray |
| Secondary | #e0d1d2lightgrey | #342d2ddarkslategray |
| Secondary foreground | #4c3435darkslategray | #cec5c6silver |
| Muted | #ede8e8linen | #171212black |
| Muted foreground | #5f5d5edimgray | #a2a0a0darkgray |
| Accent | #e0d1d2lightgrey | #342d2ddarkslategray |
| Accent foreground | #4c3435darkslategray | #cec5c6silver |
| Destructive | #a61611firebrick | #eb433dtomato |
| Destructive foreground | #fdededlinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5efefwhitesmoke | #f5efefwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 5.38:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.72:1 | AA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 7.14:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use River in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.935 0.006 13.739);
--muted-foreground: oklch(0.482 0.002 13.707);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.957 0.007 13.75);
--primary-foreground: oklch(0.436 0.062 16.696);
--secondary: oklch(0.874 0.016 13.976);
--secondary-foreground: oklch(0.352 0.035 15.696);
--accent: oklch(0.874 0.016 13.976);
--accent-foreground: oklch(0.352 0.035 15.696);
--destructive: oklch(0.465 0.177 28.746);
--destructive-foreground: oklch(0.959 0.017 19.864);
--ring: oklch(0.957 0.007 13.75);
--chart-1: oklch(0.957 0.007 13.75);
--chart-2: oklch(0.874 0.016 13.976);
--chart-3: oklch(0.874 0.016 13.976);
--chart-4: oklch(0.9 0.013 13.89);
--chart-5: oklch(0.957 0.008 13.767);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.016 15.39);
--foreground: oklch(0.983 0.003 13.669);
--muted: oklch(0.187 0.01 14.635);
--muted-foreground: oklch(0.706 0.002 13.669);
--popover: oklch(0.122 0.016 15.39);
--popover-foreground: oklch(0.983 0.003 13.669);
--card: oklch(0.122 0.016 15.39);
--card-foreground: oklch(0.983 0.003 13.669);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.957 0.007 13.75);
--primary-foreground: oklch(0.436 0.062 16.696);
--secondary: oklch(0.304 0.011 14.358);
--secondary-foreground: oklch(0.831 0.01 13.837);
--accent: oklch(0.304 0.011 14.358);
--accent-foreground: oklch(0.831 0.01 13.837);
--destructive: oklch(0.628 0.205 26.95);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.957 0.007 13.75);
--chart-1: oklch(0.957 0.007 13.75);
--chart-2: oklch(0.304 0.011 14.358);
--chart-3: oklch(0.304 0.011 14.358);
--chart-4: oklch(0.333 0.013 14.383);
--chart-5: oklch(0.957 0.008 13.767);
}