Latency is a shadcn/ui theme built around a vivid violet primary color (#5014f5) with vivid purple accents (#c114f5). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#5014f5) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #070311black | #ffffffwhite |
| Card | #ffffffwhite | #020203black |
| Card foreground | #070311black | #ffffffwhite |
| Popover | #ffffffwhite | #020203black |
| Popover foreground | #070311black | #ffffffwhite |
| Primary | #5014f5blueviolet | #5014f5blueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1449f5royalblue | #1449f5royalblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f1f2f4whitesmoke | #0b0c0eblack |
| Muted foreground | #5c5d60dimgray | #9fa0a3darkgray |
| Accent | #c114f5darkviolet | #c114f5darkviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9f3909saddlebrown | #e7520dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5014f5blueviolet | #5014f5blueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 6.37:1 | AA |
| Muted text | 5.85:1 | AA |
| Accent | 4.48:1 | AA Large |
| Destructive | 6.86:1 | AA |
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 6.37:1 | AA |
| Muted text | 7.47:1 | AAA |
| Accent | 4.48:1 | AA Large |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Latency in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.119 0.036 296.692);
--muted: oklch(0.96 0.003 272.625);
--muted-foreground: oklch(0.48 0.005 272.554);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.119 0.036 296.692);
--card: oklch(1 0 180);
--card-foreground: oklch(0.119 0.036 296.692);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.48 0.283 279.154);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.506 0.259 264.494);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.608 0.292 315.249);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.484 0.146 40.28);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.48 0.283 279.154);
--chart-1: oklch(0.48 0.283 279.154);
--chart-2: oklch(0.506 0.259 264.494);
--chart-3: oklch(0.608 0.292 315.249);
--chart-4: oklch(0.528 0.246 265.079);
--chart-5: oklch(0.482 0.288 278.309);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.011 298.483);
--foreground: oklch(1 0 180);
--muted: oklch(0.155 0.005 272.32);
--muted-foreground: oklch(0.705 0.004 272.594);
--popover: oklch(0.083 0.011 298.483);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.083 0.011 298.483);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.48 0.283 279.154);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.506 0.259 264.494);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.608 0.292 315.249);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.635 0.196 39.62);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.48 0.283 279.154);
--chart-1: oklch(0.48 0.283 279.154);
--chart-2: oklch(0.506 0.259 264.494);
--chart-3: oklch(0.608 0.292 315.249);
--chart-4: oklch(0.528 0.246 265.079);
--chart-5: oklch(0.482 0.288 278.309);
}