Tunnel is a shadcn/ui theme built around a vivid light blue primary color (#f1f8fe) with vivid light indigo accents (#f1f2fe). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid light blue primary (#f1f8fe) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #020608black |
| Foreground | #030e16black | #ffffffwhite |
| Card | #fbfdfewhite | #020608black |
| Card foreground | #030e16black | #ffffffwhite |
| Popover | #fbfdfewhite | #020608black |
| Popover foreground | #030e16black | #ffffffwhite |
| Primary | #f1f8fealiceblue | #f1f8fealiceblue |
| Primary foreground | #08314emidnightblue | #08314emidnightblue |
| Secondary | #f1fefdazure | #f1fefdazure |
| Secondary foreground | #084e49darkslategray | #084e49darkslategray |
| Muted | #cce5e3gainsboro | #1a3331darkslategray |
| Muted foreground | #374847darkslategray | #b7c8c6silver |
| Accent | #f1f2fealiceblue | #f1f2fealiceblue |
| Accent foreground | #121fabdarkblue | #121fabdarkblue |
| Destructive | #c1360bfirebrick | #d93c0dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1f8fealiceblue | #f1f8fealiceblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 12.59:1 | AAA |
| Secondary button | 9.23:1 | AAA |
| Muted text | 7.30:1 | AAA |
| Accent | 10.43:1 | AAA |
| Destructive | 5.54:1 | AA |
| Text on background | 20.37:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 12.59:1 | AAA |
| Secondary button | 9.23:1 | AAA |
| Muted text | 7.75:1 | AAA |
| Accent | 10.43:1 | AAA |
| Destructive | 4.56:1 | AA |
Paste this into your globals.css to use Tunnel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 238.391);
--foreground: oklch(0.158 0.025 237.482);
--muted: oklch(0.904 0.027 190.596);
--muted-foreground: oklch(0.387 0.021 190.029);
--popover: oklch(0.992 0.002 238.391);
--popover-foreground: oklch(0.158 0.025 237.482);
--card: oklch(0.992 0.002 238.391);
--card-foreground: oklch(0.158 0.025 237.482);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.976 0.01 238.513);
--primary-foreground: oklch(0.303 0.068 245.078);
--secondary: oklch(0.986 0.013 190.959);
--secondary-foreground: oklch(0.385 0.064 185.977);
--accent: oklch(0.964 0.015 281.947);
--accent-foreground: oklch(0.363 0.213 266.772);
--destructive: oklch(0.539 0.182 35.214);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.976 0.01 238.513);
--chart-1: oklch(0.976 0.01 238.513);
--chart-2: oklch(0.986 0.013 190.959);
--chart-3: oklch(0.964 0.015 281.947);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.976 0.011 238.518);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.011 231.773);
--foreground: oklch(1 0 180);
--muted: oklch(0.299 0.032 188.741);
--muted-foreground: oklch(0.818 0.018 190.762);
--popover: oklch(0.115 0.011 231.773);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.115 0.011 231.773);
--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.976 0.01 238.513);
--primary-foreground: oklch(0.303 0.068 245.078);
--secondary: oklch(0.986 0.013 190.959);
--secondary-foreground: oklch(0.385 0.064 185.977);
--accent: oklch(0.964 0.015 281.947);
--accent-foreground: oklch(0.363 0.213 266.772);
--destructive: oklch(0.587 0.2 35.082);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.976 0.01 238.513);
--chart-1: oklch(0.976 0.01 238.513);
--chart-2: oklch(0.986 0.013 190.959);
--chart-3: oklch(0.964 0.015 281.947);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.976 0.011 238.518);
}