Tomography is a shadcn/ui theme built around a vivid light cyan primary color (#92e0f2) with vivid light red accents (#f2a492). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the vivid light cyan primary (#92e0f2) on a cyan-tinted background (#05090a).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfcghostwhite | #05090ablack |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #f8fbfcghostwhite | #05090ablack |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #f8fbfcghostwhite | #05090ablack |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #92e0f2skyblue | #92e0f2skyblue |
| Primary foreground | #093d49darkslategray | #093d49darkslategray |
| Secondary | #f2a492lightsalmon | #f2a492lightsalmon |
| Secondary foreground | #491509maroon | #491509maroon |
| Muted | #f2eae8linen | #170f0dblack |
| Muted foreground | #5f524fdimgray | #b0a3a0darkgray |
| Accent | #f2a492lightsalmon | #f2a492lightsalmon |
| Accent foreground | #491509maroon | #491509maroon |
| Destructive | #651406maroon | #f24121orangered |
| Destructive foreground | #fab0a3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #92e0f2skyblue | #92e0f2skyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 7.49:1 | AAA |
| Destructive | 7.11:1 | AAA |
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 7.75:1 | AAA |
| Accent | 7.49:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Tomography in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.003 212.663);
--foreground: oklch(0 0 0);
--muted: oklch(0.943 0.01 32.663);
--muted-foreground: oklch(0.449 0.018 32.72);
--popover: oklch(0.986 0.003 212.663);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.003 212.663);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.862 0.08 213.429);
--primary-foreground: oklch(0.333 0.055 217.067);
--secondary: oklch(0.789 0.097 33.191);
--secondary-foreground: oklch(0.278 0.082 34.137);
--accent: oklch(0.789 0.097 33.191);
--accent-foreground: oklch(0.278 0.082 34.137);
--destructive: oklch(0.334 0.116 32.435);
--destructive-foreground: oklch(0.824 0.088 30.229);
--ring: oklch(0.862 0.08 213.429);
--chart-1: oklch(0.862 0.08 213.429);
--chart-2: oklch(0.789 0.097 33.191);
--chart-3: oklch(0.789 0.097 33.191);
--chart-4: oklch(0.814 0.083 33.049);
--chart-5: oklch(0.865 0.083 213.488);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.008 210.355);
--foreground: oklch(0.993 0.001 212.662);
--muted: oklch(0.177 0.015 32.937);
--muted-foreground: oklch(0.727 0.015 32.676);
--popover: oklch(0.136 0.008 210.355);
--popover-foreground: oklch(0.993 0.001 212.662);
--card: oklch(0.136 0.008 210.355);
--card-foreground: oklch(0.993 0.001 212.662);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.862 0.08 213.429);
--primary-foreground: oklch(0.333 0.055 217.067);
--secondary: oklch(0.789 0.097 33.191);
--secondary-foreground: oklch(0.278 0.082 34.137);
--accent: oklch(0.789 0.097 33.191);
--accent-foreground: oklch(0.278 0.082 34.137);
--destructive: oklch(0.636 0.218 32.293);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.08 213.429);
--chart-1: oklch(0.862 0.08 213.429);
--chart-2: oklch(0.789 0.097 33.191);
--chart-3: oklch(0.789 0.097 33.191);
--chart-4: oklch(0.814 0.083 33.049);
--chart-5: oklch(0.865 0.083 213.488);
}