Riven2 is a shadcn/ui theme built around a teal primary color (#68c4c6) with muted light blue accents (#ced5d9). The light mode uses a neutral background (#f7fbfd). Dark mode switches to a deep blue primary (#1d384b) on a blue-tinted background (#0a131c).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fbfdghostwhite | #0a131cblack |
| Foreground | #030c11black | #fcfdfdwhite |
| Card | #f3f8fcaliceblue | #000910black |
| Card foreground | #02090dblack | #ffffffwhite |
| Popover | #f7fbfdghostwhite | #060b0fblack |
| Popover foreground | #030c11black | #fcfdfdwhite |
| Primary | #68c4c6mediumaquamarine | #1d384bdarkslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #eaebeblavender | #182434darkslategray |
| Secondary foreground | #4e5255darkslategray | #c5c7c9silver |
| Muted | #dde4e9gainsboro | #161d22black |
| Muted foreground | #576975dimgray | #8a9ca8lightslategray |
| Accent | #ced5d9lightgrey | #26292bdarkslategray |
| Accent foreground | #333c42darkslategray | #dee1e3gainsboro |
| Destructive | #a11717firebrick | #a11717firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #57b1bacadetblue | #a15206saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.88:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 2.03:1 | Fail |
| Secondary button | 6.59:1 | AA |
| Muted text | 4.44:1 | AA Large |
| Accent | 7.57:1 | AAA |
| Destructive | 7.92:1 | AAA |
| Text on background | 18.35:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 12.21:1 | AAA |
| Secondary button | 9.23:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 11.14:1 | AAA |
| Destructive | 7.92:1 | AAA |
Paste this into your globals.css to use Riven2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.005 236.509);
--foreground: oklch(0.146 0.02 233.205);
--muted: oklch(0.915 0.01 236.592);
--muted-foreground: oklch(0.51 0.029 237.354);
--popover: oklch(0.985 0.005 236.509);
--popover-foreground: oklch(0.146 0.02 233.205);
--card: oklch(0.977 0.008 236.548);
--card-foreground: oklch(0.132 0.017 229.205);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.766 0.088 197.114);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.939 0.001 236.456);
--secondary-foreground: oklch(0.437 0.007 236.656);
--accent: oklch(0.868 0.01 236.596);
--accent-foreground: oklch(0.351 0.016 237.149);
--destructive: oklch(0.456 0.172 27.512);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.709 0.086 204.444);
--chart-1: oklch(0.766 0.088 197.114);
--chart-2: oklch(0.939 0.001 236.456);
--chart-3: oklch(0.868 0.01 236.596);
--chart-4: oklch(0.962 0.001 236.448);
--chart-5: oklch(0.772 0.092 197.075);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.183 0.023 249.19);
--foreground: oklch(0.992 0.001 236.454);
--muted: oklch(0.227 0.014 237.418);
--muted-foreground: oklch(0.683 0.028 237.051);
--popover: oklch(0.145 0.012 234.661);
--popover-foreground: oklch(0.992 0.001 236.454);
--card: oklch(0.133 0.026 227.791);
--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.328 0.047 240.91);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.257 0.035 255.85);
--secondary-foreground: oklch(0.829 0.003 236.486);
--accent: oklch(0.279 0.006 236.752);
--accent-foreground: oklch(0.908 0.005 236.509);
--destructive: oklch(0.456 0.171 27.481);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.525 0.128 54.713);
--chart-1: oklch(0.328 0.047 240.91);
--chart-2: oklch(0.257 0.035 255.85);
--chart-3: oklch(0.279 0.006 236.752);
--chart-4: oklch(0.287 0.041 255.869);
--chart-5: oklch(0.329 0.05 241.196);
}