irvex is a shadcn/ui theme built around a blue primary color (#1e3fa9) with blue accents (#1e3fa9). The light mode uses a neutral background (#ffffff). Dark mode switches to a teal primary (#3fd59e) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030706black |
| Foreground | #171717black | #fcfdfdwhite |
| Card | #ffffffwhite | #030706black |
| Card foreground | #171717black | #fcfdfdwhite |
| Popover | #ffffffwhite | #030706black |
| Popover foreground | #171717black | #fcfdfdwhite |
| Primary | #1e3fa9darkslateblue | #3fd59emediumaquamarine |
| Primary foreground | #ffffffwhite | #0d3b2adarkslategray |
| Secondary | #f1f5f9whitesmoke | #3fd553limegreen |
| Secondary foreground | #0d3b13darkgreen | #0d3b13darkgreen |
| Muted | #adadaddarkgray | #212c22darkslategray |
| Muted foreground | #3a453cdarkslategray | #bac5bbsilver |
| Accent | #1e3fa9darkslateblue | #3fc1d5mediumturquoise |
| Accent foreground | #252525darkslategray | #0d343bdarkslategray |
| Destructive | #e01c06red | #fa3e29orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #adadaddarkgray | #1d201fblack |
| Input | #adadaddarkgray | #1d201fblack |
| Ring | #393939darkslategray | #3fd59emediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.92:1 | AAA |
| Text on card | 17.92:1 | AAA |
| Primary button | 8.97:1 | AAA |
| Secondary button | 11.60:1 | AAA |
| Muted text | 4.46:1 | AA Large |
| Accent | 1.70:1 | Fail |
| Destructive | 4.85:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 6.67:1 | AA |
| Secondary button | 6.55:1 | AA |
| Muted text | 8.15:1 | AAA |
| Accent | 6.21:1 | AA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use irvex in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.205 0 169.695);
--muted: oklch(0.748 0 180);
--muted-foreground: oklch(0.379 0.022 148.923);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.205 0 169.695);
--card: oklch(1 0 180);
--card-foreground: oklch(0.205 0 169.695);
--border: oklch(0.748 0 180);
--input: oklch(0.748 0 180);
--primary: oklch(0.417 0.174 265.658);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.968 0.007 247.896);
--secondary-foreground: oklch(0.31 0.083 145.362);
--accent: oklch(0.417 0.174 265.658);
--accent-foreground: oklch(0.266 0 180);
--destructive: oklch(0.577 0.226 30.347);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.344 0 180);
--chart-1: oklch(0.781 0.148 163.949);
--chart-2: oklch(0.768 0.213 145.104);
--chart-3: oklch(0.749 0.113 209.844);
--chart-4: oklch(0.779 0.203 145.507);
--chart-5: oklch(0.789 0.153 163.566);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.011 172.766);
--foreground: oklch(0.993 0.001 172.556);
--muted: oklch(0.279 0.024 148.553);
--muted-foreground: oklch(0.812 0.019 149.396);
--popover: oklch(0.122 0.011 172.766);
--popover-foreground: oklch(0.993 0.001 172.556);
--card: oklch(0.122 0.011 172.766);
--card-foreground: oklch(0.993 0.001 172.556);
--border: oklch(0.24 0.005 171.96);
--input: oklch(0.24 0.005 171.96);
--primary: oklch(0.781 0.148 163.949);
--primary-foreground: oklch(0.315 0.058 164.537);
--secondary: oklch(0.768 0.213 145.104);
--secondary-foreground: oklch(0.31 0.083 145.362);
--accent: oklch(0.749 0.113 209.844);
--accent-foreground: oklch(0.303 0.044 209.543);
--destructive: oklch(0.647 0.226 30.392);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.781 0.148 163.949);
--chart-1: oklch(0.781 0.148 163.949);
--chart-2: oklch(0.768 0.213 145.104);
--chart-3: oklch(0.749 0.113 209.844);
--chart-4: oklch(0.779 0.203 145.507);
--chart-5: oklch(0.789 0.153 163.566);
}