River is a shadcn/ui theme built around a blue primary color (#283cb8) with muted light blue accents (#c1c4d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#283cb8) on a blue-tinted background (#05070f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05070fblack |
| Foreground | #020308black | #fcfcfdwhite |
| Card | #ffffffwhite | #05070fblack |
| Card foreground | #020308black | #fcfcfdwhite |
| Popover | #ffffffwhite | #05070fblack |
| Popover foreground | #020308black | #fcfcfdwhite |
| Primary | #283cb8darkslateblue | #283cb8darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d5d6dcgainsboro | #2a2b2cdarkslategray |
| Secondary foreground | #3a3c45darkslategray | #c3c3c6silver |
| Muted | #e6e7f0lavender | #0f111ablack |
| Muted foreground | #53576edimgray | #9194acdarkgray |
| Accent | #c1c4d1silver | #383a42darkslategray |
| Accent foreground | #292b38darkslategray | #d3d4d9lightgrey |
| Destructive | #c1300bfirebrick | #de370dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #283cb8darkslateblue | #283cb8darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 8.67:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 5.75:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 5.70:1 | AA |
| Text on background | 19.64:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 8.67:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 7.68:1 | AAA |
| Destructive | 4.52:1 | AA |
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.1 0.017 273.175);
--muted: oklch(0.929 0.012 279.144);
--muted-foreground: oklch(0.463 0.038 277.948);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.017 273.175);
--card: oklch(1 0 180);
--card-foreground: oklch(0.1 0.017 273.175);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.429 0.195 269.046);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.878 0.008 279.199);
--secondary-foreground: oklch(0.357 0.017 278.565);
--accent: oklch(0.822 0.02 278.973);
--accent-foreground: oklch(0.293 0.023 278.029);
--destructive: oklch(0.533 0.187 33.732);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.429 0.195 269.046);
--chart-1: oklch(0.429 0.195 269.046);
--chart-2: oklch(0.878 0.008 279.199);
--chart-3: oklch(0.822 0.02 278.973);
--chart-4: oklch(0.903 0.007 279.232);
--chart-5: oklch(0.427 0.203 268.471);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.02 274.644);
--foreground: oklch(0.991 0.002 279.312);
--muted: oklch(0.179 0.018 277.585);
--muted-foreground: oklch(0.672 0.035 278.505);
--popover: oklch(0.129 0.02 274.644);
--popover-foreground: oklch(0.991 0.002 279.312);
--card: oklch(0.129 0.02 274.644);
--card-foreground: oklch(0.991 0.002 279.312);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.429 0.195 269.046);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.288 0.003 279.197);
--secondary-foreground: oklch(0.819 0.003 279.289);
--accent: oklch(0.349 0.015 278.666);
--accent-foreground: oklch(0.87 0.008 279.205);
--destructive: oklch(0.591 0.208 33.609);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.429 0.195 269.046);
--chart-1: oklch(0.429 0.195 269.046);
--chart-2: oklch(0.288 0.003 279.197);
--chart-3: oklch(0.349 0.015 278.666);
--chart-4: oklch(0.319 0.003 279.192);
--chart-5: oklch(0.427 0.203 268.471);
}