Router is a shadcn/ui theme built around a deep blue primary color (#115174) with deep green accents (#517411). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the deep blue primary (#115174) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #020608black |
| Foreground | #010304black | #ffffffwhite |
| Card | #fbfdfewhite | #020608black |
| Card foreground | #010304black | #ffffffwhite |
| Popover | #fbfdfewhite | #020608black |
| Popover foreground | #010304black | #ffffffwhite |
| Primary | #115174darkslategray | #115174darkslategray |
| Primary foreground | #c1e3f6paleturquoise | #c1e3f6paleturquoise |
| Secondary | #741151purple | #741151purple |
| Secondary foreground | #f6c1e3pink | #f6c1e3pink |
| Muted | #f1e4edlinen | #1b0e16black |
| Muted foreground | #594652darkslategray | #b9a6b3darkgray |
| Accent | #517411darkolivegreen | #517411darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7d0c0cmaroon | #ec3c3ccrimson |
| Destructive foreground | #f9c3c3pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #115174darkslategray | #115174darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.33:1 | AA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 7.03:1 | AAA |
| Accent | 5.44:1 | AA |
| Destructive | 7.03:1 | AAA |
| Text on background | 20.34:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 6.33:1 | AA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 8.18:1 | AAA |
| Accent | 5.44:1 | AA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Router in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 230.685);
--foreground: oklch(0.093 0.012 222.672);
--muted: oklch(0.932 0.019 338.396);
--muted-foreground: oklch(0.417 0.032 339.518);
--popover: oklch(0.993 0.002 230.685);
--popover-foreground: oklch(0.093 0.012 222.672);
--card: oklch(0.993 0.002 230.685);
--card-foreground: oklch(0.093 0.012 222.672);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.415 0.084 238.346);
--primary-foreground: oklch(0.898 0.045 231.446);
--secondary: oklch(0.38 0.146 346.886);
--secondary-foreground: oklch(0.867 0.076 339.709);
--accent: oklch(0.514 0.127 128.155);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.378 0.145 27.868);
--destructive-foreground: oklch(0.864 0.062 18.434);
--ring: oklch(0.415 0.084 238.346);
--chart-1: oklch(0.415 0.084 238.346);
--chart-2: oklch(0.38 0.146 346.886);
--chart-3: oklch(0.514 0.127 128.155);
--chart-4: oklch(0.41 0.158 347.049);
--chart-5: oklch(0.417 0.087 238.818);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.012 224.128);
--foreground: oklch(1 0 180);
--muted: oklch(0.185 0.028 340.892);
--muted-foreground: oklch(0.747 0.028 338.741);
--popover: oklch(0.116 0.012 224.128);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.116 0.012 224.128);
--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.415 0.084 238.346);
--primary-foreground: oklch(0.898 0.045 231.446);
--secondary: oklch(0.38 0.146 346.886);
--secondary-foreground: oklch(0.867 0.076 339.709);
--accent: oklch(0.514 0.127 128.155);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.623 0.212 25.894);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.415 0.084 238.346);
--chart-1: oklch(0.415 0.084 238.346);
--chart-2: oklch(0.38 0.146 346.886);
--chart-3: oklch(0.514 0.127 128.155);
--chart-4: oklch(0.41 0.158 347.049);
--chart-5: oklch(0.417 0.087 238.818);
}