Taxicab is a shadcn/ui theme built around an orange primary color (#9e8351) with violet accents (#83519e). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the orange primary (#9e8351) on an orange-tinted background (#100c05).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #100c05black |
| Foreground | #090601black | #faf8f4whitesmoke |
| Card | #fbf8f4floralwhite | #140f06black |
| Card foreground | #040301black | #fcfaf8snow |
| Popover | #fcfbf8snow | #100c05black |
| Popover foreground | #090601black | #faf8f4whitesmoke |
| Primary | #9e8351peru | #9e8351peru |
| Primary foreground | #000000black | #000000black |
| Secondary | #519e83cadetblue | #519e83cadetblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #e8f2efwhitesmoke | #0d1713black |
| Muted foreground | #646867dimgray | #979b9adarkgray |
| Accent | #83519erebeccapurple | #83519erebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #bf2e0dfirebrick | #f0512dtomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9e8351peru | #9e8351peru |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 6.58:1 | AA |
| Muted text | 4.94:1 | AA |
| Accent | 5.74:1 | AA |
| Destructive | 5.82:1 | AA |
| Text on background | 18.40:1 | AAA |
| Text on card | 18.35:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 6.58:1 | AA |
| Muted text | 6.50:1 | AA |
| Accent | 5.74:1 | AA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Taxicab in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 83.059);
--foreground: oklch(0.125 0.018 90.755);
--muted: oklch(0.953 0.012 173.217);
--muted-foreground: oklch(0.513 0.006 173.259);
--popover: oklch(0.987 0.004 83.059);
--popover-foreground: oklch(0.125 0.018 90.755);
--card: oklch(0.981 0.006 83.061);
--card-foreground: oklch(0.099 0.014 90.755);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.625 0.075 82.104);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.643 0.087 168.538);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.525 0.127 312.722);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.528 0.186 33.213);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.625 0.075 82.104);
--chart-1: oklch(0.625 0.075 82.104);
--chart-2: oklch(0.643 0.087 168.538);
--chart-3: oklch(0.525 0.127 312.722);
--chart-4: oklch(0.673 0.092 168.507);
--chart-5: oklch(0.63 0.081 81.876);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.017 85.665);
--foreground: oklch(0.98 0.006 83.06);
--muted: oklch(0.193 0.016 170.797);
--muted-foreground: oklch(0.686 0.005 173.355);
--popover: oklch(0.156 0.017 85.665);
--popover-foreground: oklch(0.98 0.006 83.06);
--card: oklch(0.171 0.02 83.797);
--card-foreground: oklch(0.987 0.004 83.058);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.625 0.075 82.104);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.643 0.087 168.538);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.525 0.127 312.722);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.65 0.202 34.016);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.625 0.075 82.104);
--chart-1: oklch(0.625 0.075 82.104);
--chart-2: oklch(0.643 0.087 168.538);
--chart-3: oklch(0.525 0.127 312.722);
--chart-4: oklch(0.673 0.092 168.507);
--chart-5: oklch(0.63 0.081 81.876);
}