Sock is a shadcn/ui theme built around a vivid green primary color (#9cda16) with vivid purple accents (#da169c). The light mode uses a neutral background (#fdfefb). Dark mode keeps the vivid green primary (#9cda16) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #0d1202black | #fafbf8snow |
| Card | #fdfefbwhite | #000000black |
| Card foreground | #0d1202black | #fafbf8snow |
| Popover | #fdfefbwhite | #000000black |
| Popover foreground | #0d1202black | #fafbf8snow |
| Primary | #9cda16yellowgreen | #9cda16yellowgreen |
| Primary foreground | #172003black | #172003black |
| Secondary | #169cdadodgerblue | #169cdadodgerblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e8ecedlavender | #121517black |
| Muted foreground | #50646ddimgray | #92a6afdarkgray |
| Accent | #da169cmediumvioletred | #da169cmediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ae3513firebrick | #e74d23chocolate |
| Destructive foreground | #fef8f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9cda16yellowgreen | #9cda16yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.76:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 10.01:1 | AAA |
| Secondary button | 3.09:1 | AA Large |
| Muted text | 5.20:1 | AA |
| Accent | 4.58:1 | AA |
| Destructive | 6.00:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 10.01:1 | AAA |
| Secondary button | 3.09:1 | AA Large |
| Muted text | 7.22:1 | AAA |
| Accent | 4.58:1 | AA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Sock in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 120.831);
--foreground: oklch(0.172 0.034 122.593);
--muted: oklch(0.94 0.005 226.92);
--muted-foreground: oklch(0.489 0.027 227.716);
--popover: oklch(0.995 0.004 120.831);
--popover-foreground: oklch(0.172 0.034 122.593);
--card: oklch(0.995 0.004 120.831);
--card-foreground: oklch(0.172 0.034 122.593);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.816 0.208 127.741);
--primary-foreground: oklch(0.229 0.051 124.809);
--secondary: oklch(0.656 0.138 236.797);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.596 0.243 346.348);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.507 0.163 35.276);
--destructive-foreground: oklch(0.982 0.007 35.987);
--ring: oklch(0.816 0.208 127.741);
--chart-1: oklch(0.816 0.208 127.741);
--chart-2: oklch(0.656 0.138 236.797);
--chart-3: oklch(0.596 0.243 346.348);
--chart-4: oklch(0.687 0.145 236.891);
--chart-5: oklch(0.825 0.213 127.971);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.988 0.004 120.837);
--muted: oklch(0.194 0.007 227.362);
--muted-foreground: oklch(0.713 0.025 227.349);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.988 0.004 120.837);
--card: oklch(0 0 0);
--card-foreground: oklch(0.988 0.004 120.837);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.816 0.208 127.741);
--primary-foreground: oklch(0.229 0.051 124.809);
--secondary: oklch(0.656 0.138 236.797);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.596 0.243 346.348);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.629 0.197 35.53);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.816 0.208 127.741);
--chart-1: oklch(0.816 0.208 127.741);
--chart-2: oklch(0.656 0.138 236.797);
--chart-3: oklch(0.596 0.243 346.348);
--chart-4: oklch(0.687 0.145 236.891);
--chart-5: oklch(0.825 0.213 127.971);
}