Frock is a shadcn/ui theme built around a vivid purple primary color (#d803d8) with vivid teal accents (#03d8d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#d803d8) on a neutral background (#080308).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080308black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #0b040bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #080308black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #d803d8magenta | #d803d8magenta |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d8d803gold | #d8d803gold |
| Secondary foreground | #0f0f00black | #0f0f00black |
| Muted | #ededd9beige | #262612black |
| Muted foreground | #55554adarkolivegreen | #b5b5aadarkgray |
| Accent | #03d8d8darkturquoise | #03d8d8darkturquoise |
| Accent foreground | #000f0fblack | #000f0fblack |
| Destructive | #c60801firebrick | #fe312aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d803d8magenta | #d803d8magenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 4.26:1 | AA Large |
| Secondary button | 12.62:1 | AAA |
| Muted text | 6.37:1 | AA |
| Accent | 10.99:1 | AAA |
| Destructive | 6.11:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 4.26:1 | AA Large |
| Secondary button | 12.62:1 | AAA |
| Muted text | 7.38:1 | AAA |
| Accent | 10.99:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Frock in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.942 0.027 106.915);
--muted-foreground: oklch(0.445 0.018 107.093);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.62 0.284 328.355);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.854 0.186 109.763);
--secondary-foreground: oklch(0.163 0.035 109.705);
--accent: oklch(0.799 0.136 194.773);
--accent-foreground: oklch(0.153 0.026 194.812);
--destructive: oklch(0.521 0.211 29.545);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.62 0.284 328.355);
--chart-1: oklch(0.62 0.284 328.355);
--chart-2: oklch(0.854 0.186 109.763);
--chart-3: oklch(0.799 0.136 194.773);
--chart-4: oklch(0.899 0.195 109.763);
--chart-5: oklch(0.626 0.288 328.363);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.022 326.972);
--foreground: oklch(0.992 0.001 325.585);
--muted: oklch(0.264 0.035 108.568);
--muted-foreground: oklch(0.771 0.015 106.756);
--popover: oklch(0.109 0.022 326.972);
--popover-foreground: oklch(0.992 0.001 325.585);
--card: oklch(0.125 0.026 326.977);
--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.62 0.284 328.355);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.854 0.186 109.763);
--secondary-foreground: oklch(0.163 0.035 109.705);
--accent: oklch(0.799 0.136 194.773);
--accent-foreground: oklch(0.153 0.026 194.812);
--destructive: oklch(0.645 0.238 28.357);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.62 0.284 328.355);
--chart-1: oklch(0.62 0.284 328.355);
--chart-2: oklch(0.854 0.186 109.763);
--chart-3: oklch(0.799 0.136 194.773);
--chart-4: oklch(0.899 0.195 109.763);
--chart-5: oklch(0.626 0.288 328.363);
}