Local is a shadcn/ui theme built around a deep violet primary color (#3e0c50) with deep teal accents (#0c503e). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the deep violet primary (#3e0c50) on a neutral background (#060407).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf7fdghostwhite | #060407black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fbf7fdghostwhite | #060407black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fbf7fdghostwhite | #060407black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #3e0c50midnightblue | #3e0c50midnightblue |
| Primary foreground | #da9df0plum | #da9df0plum |
| Secondary | #503e0cdarkolivegreen | #503e0cdarkolivegreen |
| Secondary foreground | #f0da9dpalegoldenrod | #f0da9dpalegoldenrod |
| Muted | #eeece8linen | #171611black |
| Muted foreground | #64625edimgray | #a19f9bdarkgray |
| Accent | #0c503edarkslategray | #0c503edarkslategray |
| Accent foreground | #9df0dapaleturquoise | #9df0dapaleturquoise |
| Destructive | #691a07maroon | #d8360eorangered |
| Destructive foreground | #f9b9a9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3e0c50midnightblue | #3e0c50midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 5.15:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 7.11:1 | AAA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 6.85:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 4.72:1 | AA |
Paste this into your globals.css to use Local in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.01 317.166);
--foreground: oklch(0 0 0);
--muted: oklch(0.943 0.006 90.171);
--muted-foreground: oklch(0.497 0.007 90.223);
--popover: oklch(0.981 0.01 317.166);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.01 317.166);
--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.28 0.119 314.911);
--primary-foreground: oklch(0.784 0.131 316.771);
--secondary: oklch(0.373 0.069 87.523);
--secondary-foreground: oklch(0.893 0.082 90.385);
--accent: oklch(0.386 0.071 169.781);
--accent-foreground: oklch(0.897 0.087 175.558);
--destructive: oklch(0.349 0.115 34.521);
--destructive-foreground: oklch(0.841 0.079 34.494);
--ring: oklch(0.28 0.119 314.911);
--chart-1: oklch(0.28 0.119 314.911);
--chart-2: oklch(0.373 0.069 87.523);
--chart-3: oklch(0.386 0.071 169.781);
--chart-4: oklch(0.413 0.077 87.258);
--chart-5: oklch(0.281 0.122 314.733);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.013 318.213);
--foreground: oklch(0.992 0.001 317.188);
--muted: oklch(0.2 0.009 90.387);
--muted-foreground: oklch(0.704 0.006 90.189);
--popover: oklch(0.11 0.013 318.213);
--popover-foreground: oklch(0.992 0.001 317.188);
--card: oklch(0.11 0.013 318.213);
--card-foreground: oklch(0.992 0.001 317.188);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.28 0.119 314.911);
--primary-foreground: oklch(0.784 0.131 316.771);
--secondary: oklch(0.373 0.069 87.523);
--secondary-foreground: oklch(0.893 0.082 90.385);
--accent: oklch(0.386 0.071 169.781);
--accent-foreground: oklch(0.897 0.087 175.558);
--destructive: oklch(0.58 0.203 33.716);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.28 0.119 314.911);
--chart-1: oklch(0.28 0.119 314.911);
--chart-2: oklch(0.373 0.069 87.523);
--chart-3: oklch(0.386 0.071 169.781);
--chart-4: oklch(0.413 0.077 87.258);
--chart-5: oklch(0.281 0.122 314.733);
}