Locket is a shadcn/ui theme built around a green primary color (#919f19) with indigo accents (#26199f). The light mode uses a neutral background (#fefefb). Dark mode keeps the green primary (#919f19) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #070703black |
| Foreground | #000000black | #fbfbf9snow |
| Card | #fcfdf7snow | #0a0b05black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fcfdf7snow | #0a0b05black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #919f19olivedrab | #919f19olivedrab |
| Primary foreground | #000000black | #000000black |
| Secondary | #26199fmidnightblue | #26199fmidnightblue |
| Secondary foreground | #efedfcaliceblue | #efedfcaliceblue |
| Muted | #ecebeflavender | #101014black |
| Muted foreground | #3b394cdarkslategray | #b5b3c6silver |
| Accent | #26199fmidnightblue | #26199fmidnightblue |
| Accent foreground | #efedfcaliceblue | #efedfcaliceblue |
| Destructive | #7f0301maroon | #fe1916red |
| Destructive foreground | #ffb4b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #919f19olivedrab | #919f19olivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 10.57:1 | AAA |
| Muted text | 9.43:1 | AAA |
| Accent | 10.57:1 | AAA |
| Destructive | 6.50:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 10.57:1 | AAA |
| Muted text | 9.24:1 | AAA |
| Accent | 10.57:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Locket in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 111.087);
--foreground: oklch(0 0 0);
--muted: oklch(0.942 0.005 290.909);
--muted-foreground: oklch(0.354 0.032 289.236);
--popover: oklch(0.992 0.008 111.161);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0.008 111.161);
--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.669 0.146 115.762);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.352 0.198 273.714);
--secondary-foreground: oklch(0.953 0.02 290.617);
--accent: oklch(0.352 0.198 273.714);
--accent-foreground: oklch(0.953 0.02 290.617);
--destructive: oklch(0.376 0.152 29.462);
--destructive-foreground: oklch(0.84 0.087 20.16);
--ring: oklch(0.669 0.146 115.762);
--chart-1: oklch(0.669 0.146 115.762);
--chart-2: oklch(0.352 0.198 273.714);
--chart-3: oklch(0.352 0.198 273.714);
--chart-4: oklch(0.372 0.211 273.475);
--chart-5: oklch(0.677 0.149 115.88);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.013 112.021);
--foreground: oklch(0.987 0.002 111.057);
--muted: oklch(0.175 0.008 290.128);
--muted-foreground: oklch(0.775 0.026 290.368);
--popover: oklch(0.144 0.015 112.072);
--popover-foreground: oklch(0.993 0.001 111.035);
--card: oklch(0.144 0.015 112.072);
--card-foreground: oklch(0.993 0.001 111.035);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.669 0.146 115.762);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.352 0.198 273.714);
--secondary-foreground: oklch(0.953 0.02 290.617);
--accent: oklch(0.352 0.198 273.714);
--accent-foreground: oklch(0.953 0.02 290.617);
--destructive: oklch(0.632 0.25 28.84);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.669 0.146 115.762);
--chart-1: oklch(0.669 0.146 115.762);
--chart-2: oklch(0.352 0.198 273.714);
--chart-3: oklch(0.352 0.198 273.714);
--chart-4: oklch(0.372 0.211 273.475);
--chart-5: oklch(0.677 0.149 115.88);
}