Latitude is a shadcn/ui theme built around a vivid light green primary color (#97f29a) with vivid light purple accents (#f297ee). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#97f29a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #f8fcf8mintcream |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #f8fcf8mintcream |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #f8fcf8mintcream |
| Primary | #97f29apalegreen | #97f29apalegreen |
| Primary foreground | #0a4d0cdarkgreen | #0a4d0cdarkgreen |
| Secondary | #f297eeviolet | #f297eeviolet |
| Secondary foreground | #4d0a4bindigo | #4d0a4bindigo |
| Muted | #e3d8e3gainsboro | #271c26black |
| Muted foreground | #514350darkslategray | #bcaebbsilver |
| Accent | #f297eeviolet | #f297eeviolet |
| Accent foreground | #4d0a4bindigo | #4d0a4bindigo |
| Destructive | #cd3b0efirebrick | #f16237tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #97f29apalegreen | #97f29apalegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 6.71:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 4.97:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 7.76:1 | AAA |
| Accent | 7.14:1 | AAA |
| Destructive | 6.55:1 | AA |
Paste this into your globals.css to use Latitude in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.895 0.019 326.724);
--muted-foreground: oklch(0.402 0.027 327.113);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.882 0.147 144.938);
--primary-foreground: oklch(0.366 0.114 143.128);
--secondary: oklch(0.797 0.154 328.068);
--secondary-foreground: oklch(0.3 0.123 329.648);
--accent: oklch(0.797 0.154 328.068);
--accent-foreground: oklch(0.3 0.123 329.648);
--destructive: oklch(0.566 0.19 35.349);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.882 0.147 144.938);
--chart-1: oklch(0.882 0.147 144.938);
--chart-2: oklch(0.797 0.154 328.068);
--chart-3: oklch(0.797 0.154 328.068);
--chart-4: oklch(0.822 0.134 327.847);
--chart-5: oklch(0.884 0.152 144.881);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.007 146.483);
--muted: oklch(0.243 0.026 327.431);
--muted-foreground: oklch(0.767 0.023 326.802);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.987 0.007 146.483);
--card: oklch(0 0 0);
--card-foreground: oklch(0.987 0.007 146.483);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.882 0.147 144.938);
--primary-foreground: oklch(0.366 0.114 143.128);
--secondary: oklch(0.797 0.154 328.068);
--secondary-foreground: oklch(0.3 0.123 329.648);
--accent: oklch(0.797 0.154 328.068);
--accent-foreground: oklch(0.3 0.123 329.648);
--destructive: oklch(0.672 0.186 37.151);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.882 0.147 144.938);
--chart-1: oklch(0.882 0.147 144.938);
--chart-2: oklch(0.797 0.154 328.068);
--chart-3: oklch(0.797 0.154 328.068);
--chart-4: oklch(0.822 0.134 327.847);
--chart-5: oklch(0.884 0.152 144.881);
}