Gap is a shadcn/ui theme built around a vivid light blue primary color (#88c2fc) with vivid light indigo accents (#8888fc). The light mode uses a neutral background (#f8fafc). Dark mode keeps the vivid light blue primary (#88c2fc) on a neutral background (#020304).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fafcghostwhite | #020304black |
| Foreground | #03080dblack | #f7f7f8whitesmoke |
| Card | #f8fafcghostwhite | #020304black |
| Card foreground | #03080dblack | #f7f7f8whitesmoke |
| Popover | #f8fafcghostwhite | #020304black |
| Popover foreground | #03080dblack | #f7f7f8whitesmoke |
| Primary | #88c2fclightskyblue | #88c2fclightskyblue |
| Primary foreground | #022950midnightblue | #022950midnightblue |
| Secondary | #88fcfcaquamarine | #88fcfcaquamarine |
| Secondary foreground | #025050darkslategray | #025050darkslategray |
| Muted | #ebefefwhitesmoke | #101414black |
| Muted foreground | #565d5ddimgray | #a2a9a9darkgray |
| Accent | #8888fcmediumslateblue | #8888fcmediumslateblue |
| Accent foreground | #020250midnightblue | #020250midnightblue |
| Destructive | #932906saddlebrown | #f65f2ctomato |
| Destructive foreground | #fddacebisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #88c2fclightskyblue | #88c2fclightskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.20:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 5.82:1 | AA |
| Accent | 6.16:1 | AA |
| Destructive | 6.28:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 7.75:1 | AAA |
| Accent | 6.16:1 | AA |
| Destructive | 6.59:1 | AA |
Paste this into your globals.css to use Gap in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.003 247.852);
--foreground: oklch(0.128 0.016 239.636);
--muted: oklch(0.95 0.005 197.073);
--muted-foreground: oklch(0.471 0.009 196.853);
--popover: oklch(0.984 0.003 247.852);
--popover-foreground: oklch(0.128 0.016 239.636);
--card: oklch(0.984 0.003 247.852);
--card-foreground: oklch(0.128 0.016 239.636);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.796 0.103 249.228);
--primary-foreground: oklch(0.279 0.082 252.768);
--secondary: oklch(0.923 0.106 195.471);
--secondary-foreground: oklch(0.389 0.066 194.792);
--accent: oklch(0.679 0.168 280.95);
--accent-foreground: oklch(0.199 0.131 265.754);
--destructive: oklch(0.444 0.147 36.183);
--destructive-foreground: oklch(0.914 0.043 39.294);
--ring: oklch(0.796 0.103 249.228);
--chart-1: oklch(0.796 0.103 249.228);
--chart-2: oklch(0.923 0.106 195.471);
--chart-3: oklch(0.679 0.168 280.95);
--chart-4: oklch(0.93 0.095 195.635);
--chart-5: oklch(0.795 0.106 249.284);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.09 0.007 242.031);
--foreground: oklch(0.977 0.001 247.837);
--muted: oklch(0.187 0.007 196.552);
--muted-foreground: oklch(0.73 0.008 196.979);
--popover: oklch(0.09 0.007 242.031);
--popover-foreground: oklch(0.977 0.001 247.837);
--card: oklch(0.09 0.007 242.031);
--card-foreground: oklch(0.977 0.001 247.837);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.796 0.103 249.228);
--primary-foreground: oklch(0.279 0.082 252.768);
--secondary: oklch(0.923 0.106 195.471);
--secondary-foreground: oklch(0.389 0.066 194.792);
--accent: oklch(0.679 0.168 280.95);
--accent-foreground: oklch(0.199 0.131 265.754);
--destructive: oklch(0.675 0.196 37.779);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.796 0.103 249.228);
--chart-1: oklch(0.796 0.103 249.228);
--chart-2: oklch(0.923 0.106 195.471);
--chart-3: oklch(0.679 0.168 280.95);
--chart-4: oklch(0.93 0.095 195.635);
--chart-5: oklch(0.795 0.106 249.284);
}