Downtown is a shadcn/ui theme built around a vivid light green primary color (#c0fbd2) with vivid light purple accents (#fbc0ea). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the vivid light green primary (#c0fbd2) on a green-tinted background (#040c06).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #040c06black |
| Foreground | #010402black | #fcfdfcwhite |
| Card | #fbfdfcwhite | #040c06black |
| Card foreground | #010402black | #fcfdfcwhite |
| Popover | #fbfdfcwhite | #040c06black |
| Popover foreground | #010402black | #fcfdfcwhite |
| Primary | #c0fbd2paleturquoise | #c0fbd2paleturquoise |
| Primary foreground | #02220bblack | #02220bblack |
| Secondary | #fbc0eapink | #fbc0eapink |
| Secondary foreground | #82085dpurple | #82085dpurple |
| Muted | #eae1e7gainsboro | #1e151bblack |
| Muted foreground | #6a5363dimgray | #ac95a5darkgray |
| Accent | #fbc0eapink | #fbc0eapink |
| Accent foreground | #82085dpurple | #82085dpurple |
| Destructive | #660700maroon | #ff3c2etomato |
| Destructive foreground | #ffa099lightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c0fbd2paleturquoise | #c0fbd2paleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 14.58:1 | AAA |
| Secondary button | 6.47:1 | AA |
| Muted text | 5.42:1 | AA |
| Accent | 6.47:1 | AA |
| Destructive | 6.73:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 14.58:1 | AAA |
| Secondary button | 6.47:1 | AA |
| Muted text | 6.44:1 | AA |
| Accent | 6.47:1 | AA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Downtown in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 155.815);
--foreground: oklch(0.099 0.019 155.273);
--muted: oklch(0.919 0.012 336.12);
--muted-foreground: oklch(0.471 0.038 337.331);
--popover: oklch(0.993 0.003 155.815);
--popover-foreground: oklch(0.099 0.019 155.273);
--card: oklch(0.993 0.003 155.815);
--card-foreground: oklch(0.099 0.019 155.273);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.938 0.082 154.079);
--primary-foreground: oklch(0.221 0.057 150.237);
--secondary: oklch(0.874 0.086 337.614);
--secondary-foreground: oklch(0.408 0.168 345.329);
--accent: oklch(0.874 0.086 337.614);
--accent-foreground: oklch(0.408 0.168 345.329);
--destructive: oklch(0.325 0.127 30.804);
--destructive-foreground: oklch(0.8 0.115 24.359);
--ring: oklch(0.938 0.082 154.079);
--chart-1: oklch(0.938 0.082 154.079);
--chart-2: oklch(0.874 0.086 337.614);
--chart-3: oklch(0.874 0.086 337.614);
--chart-4: oklch(0.902 0.065 337.175);
--chart-5: oklch(0.94 0.084 154.019);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.021 155.289);
--foreground: oklch(0.993 0.002 155.825);
--muted: oklch(0.21 0.018 337.403);
--muted-foreground: oklch(0.696 0.035 336.781);
--popover: oklch(0.141 0.021 155.289);
--popover-foreground: oklch(0.993 0.002 155.825);
--card: oklch(0.141 0.021 155.289);
--card-foreground: oklch(0.993 0.002 155.825);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.938 0.082 154.079);
--primary-foreground: oklch(0.221 0.057 150.237);
--secondary: oklch(0.874 0.086 337.614);
--secondary-foreground: oklch(0.408 0.168 345.329);
--accent: oklch(0.874 0.086 337.614);
--accent-foreground: oklch(0.408 0.168 345.329);
--destructive: oklch(0.655 0.232 29.172);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.938 0.082 154.079);
--chart-1: oklch(0.938 0.082 154.079);
--chart-2: oklch(0.874 0.086 337.614);
--chart-3: oklch(0.874 0.086 337.614);
--chart-4: oklch(0.902 0.065 337.175);
--chart-5: oklch(0.94 0.084 154.019);
}