Rod is a shadcn/ui theme built around a blue primary color (#284e9a) with indigo accents (#3b289a). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#284e9a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #000000black |
| Foreground | #020408black | #f6f7f8whitesmoke |
| Card | #f6f9fdghostwhite | #030303black |
| Card foreground | #010204black | #f9fafbghostwhite |
| Popover | #fbfcfewhite | #000000black |
| Popover foreground | #020408black | #f6f7f8whitesmoke |
| Primary | #284e9adarkslateblue | #284e9adarkslateblue |
| Primary foreground | #f7f9fdghostwhite | #f7f9fdghostwhite |
| Secondary | #28879asteelblue | #28879asteelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d5e0e2gainsboro | #1d282adarkslategray |
| Muted foreground | #505758darkslategray | #a7aeafdarkgray |
| Accent | #3b289adarkslateblue | #3b289adarkslateblue |
| Accent foreground | #f8f7fdghostwhite | #f8f7fdghostwhite |
| Destructive | #bb0e02firebrick | #ed1202red |
| Destructive foreground | #fff1f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #284e9adarkslateblue | #284e9adarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.96:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 4.18:1 | AA Large |
| Muted text | 5.46:1 | AA |
| Accent | 10.10:1 | AAA |
| Destructive | 6.01:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 4.18:1 | AA Large |
| Muted text | 6.70:1 | AA |
| Accent | 10.10:1 | AAA |
| Destructive | 4.46:1 | AA Large |
Paste this into your globals.css to use Rod in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 264.541);
--foreground: oklch(0.108 0.013 257.243);
--muted: oklch(0.898 0.012 211.038);
--muted-foreground: oklch(0.451 0.009 211.043);
--popover: oklch(0.99 0.003 264.541);
--popover-foreground: oklch(0.108 0.013 257.243);
--card: oklch(0.981 0.007 264.529);
--card-foreground: oklch(0.085 0.01 257.243);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.439 0.132 262.369);
--primary-foreground: oklch(0.981 0.006 264.533);
--secondary: oklch(0.578 0.09 214.141);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.38 0.174 281.82);
--accent-foreground: oklch(0.978 0.008 293.913);
--destructive: oklch(0.501 0.2 29.932);
--destructive-foreground: oklch(0.968 0.015 22.395);
--ring: oklch(0.439 0.132 262.369);
--chart-1: oklch(0.439 0.132 262.369);
--chart-2: oklch(0.578 0.09 214.141);
--chart-3: oklch(0.38 0.174 281.82);
--chart-4: oklch(0.61 0.095 214.197);
--chart-5: oklch(0.438 0.138 262.29);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.002 264.545);
--muted: oklch(0.268 0.015 211.194);
--muted-foreground: oklch(0.745 0.008 211.038);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.002 264.545);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.001 264.547);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.439 0.132 262.369);
--primary-foreground: oklch(0.981 0.006 264.533);
--secondary: oklch(0.578 0.09 214.141);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.38 0.174 281.82);
--accent-foreground: oklch(0.978 0.008 293.913);
--destructive: oklch(0.599 0.24 29.797);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.439 0.132 262.369);
--chart-1: oklch(0.439 0.132 262.369);
--chart-2: oklch(0.578 0.09 214.141);
--chart-3: oklch(0.38 0.174 281.82);
--chart-4: oklch(0.61 0.095 214.197);
--chart-5: oklch(0.438 0.138 262.29);
}