cabby cab is a shadcn/ui theme built around a vivid light green primary color (#edffa5) with near-black accents (#242420). The light mode uses a blue-tinted background (#07080a). Dark mode keeps the vivid light green primary (#edffa5) on a blue-tinted background (#07080a).
| Token | Light | Dark |
|---|---|---|
| Background | #07080ablack | #07080ablack |
| Foreground | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
| Card | #0c0d0fblack | #0c0d0fblack |
| Card foreground | #fafcf8snow | #fafcf8snow |
| Popover | #131416black | #131416black |
| Popover foreground | #fafcf8snow | #fafcf8snow |
| Primary | #edffa5palegoldenrod | #edffa5palegoldenrod |
| Primary foreground | #07080ablack | #07080ablack |
| Secondary | #aae1ffpaleturquoise | #aae1ffpaleturquoise |
| Secondary foreground | #07080ablack | #07080ablack |
| Muted | #1f2021black | #1f2021black |
| Muted foreground | #919191lightslategray | #919191lightslategray |
| Accent | #242420black | #242420black |
| Accent foreground | #fafcf8snow | #fafcf8snow |
| Destructive | #2c1618black | #2c1618black |
| Destructive foreground | #ff6363tomato | #ff6363tomato |
| Border | #1a1a1ablack | #1a1a1ablack |
| Input | #232529darkslategray | #232529darkslategray |
| Ring | #89b6ceskyblue | #89b6ceskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.37:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 18.55:1 | AAA |
| Secondary button | 14.23:1 | AAA |
| Muted text | 5.17:1 | AA |
| Accent | 15.09:1 | AAA |
| Destructive | 5.84:1 | AA |
| Text on background | 18.37:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 18.55:1 | AAA |
| Secondary button | 14.23:1 | AAA |
| Muted text | 5.17:1 | AA |
| Accent | 15.09:1 | AAA |
| Destructive | 5.84:1 | AA |
Paste this into your globals.css to use cabby cab in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.134 0.005 262.315);
--foreground: oklch(0.97 0 180);
--muted: oklch(0.243 0.002 247.926);
--muted-foreground: oklch(0.658 0 180);
--popover: oklch(0.191 0.004 264.471);
--popover-foreground: oklch(0.988 0.006 128.524);
--card: oklch(0.159 0.005 264.438);
--card-foreground: oklch(0.988 0.006 128.524);
--border: oklch(0.216 0 180);
--input: oklch(0.265 0.007 264.44);
--primary: oklch(0.967 0.115 117.815);
--primary-foreground: oklch(0.134 0.005 262.315);
--secondary: oklch(0.882 0.07 232.424);
--secondary-foreground: oklch(0.134 0.005 262.315);
--accent: oklch(0.259 0.007 106.899);
--accent-foreground: oklch(0.988 0.006 128.524);
--destructive: oklch(0.232 0.036 14.394);
--destructive-foreground: oklch(0.7 0.191 23.399);
--ring: oklch(0.752 0.059 231.811);
--chart-1: oklch(0.967 0.115 117.815);
--chart-2: oklch(0.882 0.07 232.424);
--chart-3: oklch(0.259 0.007 106.899);
--chart-4: oklch(0.902 0.058 232.074);
--chart-5: oklch(0.97 0.118 117.872);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.005 262.315);
--foreground: oklch(0.97 0 180);
--muted: oklch(0.243 0.002 247.926);
--muted-foreground: oklch(0.658 0 180);
--popover: oklch(0.191 0.004 264.471);
--popover-foreground: oklch(0.988 0.006 128.524);
--card: oklch(0.159 0.005 264.438);
--card-foreground: oklch(0.988 0.006 128.524);
--border: oklch(0.216 0 180);
--input: oklch(0.265 0.007 264.44);
--primary: oklch(0.967 0.115 117.815);
--primary-foreground: oklch(0.134 0.005 262.315);
--secondary: oklch(0.882 0.07 232.424);
--secondary-foreground: oklch(0.134 0.005 262.315);
--accent: oklch(0.259 0.007 106.899);
--accent-foreground: oklch(0.988 0.006 128.524);
--destructive: oklch(0.232 0.036 14.394);
--destructive-foreground: oklch(0.7 0.191 23.399);
--ring: oklch(0.752 0.059 231.811);
--chart-1: oklch(0.967 0.115 117.815);
--chart-2: oklch(0.882 0.07 232.424);
--chart-3: oklch(0.259 0.007 106.899);
--chart-4: oklch(0.902 0.058 232.074);
--chart-5: oklch(0.97 0.118 117.872);
}