hex-rays is a shadcn/ui theme built around a near-black primary color (#181818) with near-white accents (#f7f7f8). The light mode uses a neutral background (#ffffff). Dark mode switches to a muted light blue primary (#f7f7f8) on a blue-tinted background (#1d2025).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #1d2025black |
| Foreground | #262e35darkslategray | #f7f7f8whitesmoke |
| Card | #f7f7f8whitesmoke | #21252bdarkslategray |
| Card foreground | #262e35darkslategray | #f7f7f8whitesmoke |
| Popover | #ffffffwhite | #23272edarkslategray |
| Popover foreground | #262e35darkslategray | #f7f7f8whitesmoke |
| Primary | #181818black | #f7f7f8whitesmoke |
| Primary foreground | #ffffffwhite | #1d2025black |
| Secondary | #f3f3f3whitesmoke | #2c313adarkslategray |
| Secondary foreground | #181818black | #f7f7f8whitesmoke |
| Muted | #f7f7f8whitesmoke | #21252bdarkslategray |
| Muted foreground | #5b617adimgray | #abb0badarkgray |
| Accent | #f7f7f8whitesmoke | #282c34darkslategray |
| Accent foreground | #181818black | #f7f7f8whitesmoke |
| Destructive | #b11717firebrick | #b11717firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #dcdcdcgainsboro | #2c313adarkslategray |
| Input | #dcdcdcgainsboro | #2c313adarkslategray |
| Ring | #181818black | #f7f7f8whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 13.77:1 | AAA |
| Text on card | 12.86:1 | AAA |
| Primary button | 17.75:1 | AAA |
| Secondary button | 16.00:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 16.58:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 15.29:1 | AAA |
| Text on card | 14.41:1 | AAA |
| Primary button | 15.25:1 | AAA |
| Secondary button | 12.22:1 | AAA |
| Muted text | 7.09:1 | AAA |
| Accent | 13.09:1 | AAA |
| Destructive | 6.98:1 | AA |
Paste this into your globals.css to use hex-rays in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.296 0.017 244.81);
--muted: oklch(0.976 0.001 286.375);
--muted-foreground: oklch(0.497 0.041 274.298);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.296 0.017 244.81);
--card: oklch(0.976 0.001 286.375);
--card-foreground: oklch(0.296 0.017 244.81);
--border: oklch(0.894 0 180);
--input: oklch(0.894 0 180);
--primary: oklch(0.209 0 180);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.964 0 164.055);
--secondary-foreground: oklch(0.209 0 180);
--accent: oklch(0.976 0.001 286.375);
--accent-foreground: oklch(0.209 0 180);
--destructive: oklch(0.487 0.186 27.802);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.209 0 180);
--chart-1: oklch(0.209 0 180);
--chart-2: oklch(0.964 0 164.055);
--chart-3: oklch(0.976 0.001 286.375);
--chart-4: oklch(0.987 0 180);
--chart-5: oklch(0.207 0.002 17.34);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.242 0.012 264.326);
--foreground: oklch(0.976 0.001 264.546);
--muted: oklch(0.262 0.013 264.313);
--muted-foreground: oklch(0.756 0.016 264.475);
--popover: oklch(0.272 0.014 264.308);
--popover-foreground: oklch(0.976 0.001 264.546);
--card: oklch(0.262 0.013 264.313);
--card-foreground: oklch(0.976 0.001 264.546);
--border: oklch(0.312 0.017 264.289);
--input: oklch(0.312 0.017 264.289);
--primary: oklch(0.976 0.001 264.546);
--primary-foreground: oklch(0.242 0.012 264.326);
--secondary: oklch(0.312 0.017 264.289);
--secondary-foreground: oklch(0.976 0.001 264.546);
--accent: oklch(0.292 0.016 264.298);
--accent-foreground: oklch(0.976 0.001 264.546);
--destructive: oklch(0.487 0.186 27.802);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.976 0.001 286.375);
--chart-1: oklch(0.976 0.001 264.546);
--chart-2: oklch(0.312 0.017 264.289);
--chart-3: oklch(0.292 0.016 264.298);
--chart-4: oklch(0.34 0.019 264.279);
--chart-5: oklch(0.976 0.002 264.545);
}