Fob is a shadcn/ui theme built around a muted deep purple primary color (#311f33) with muted deep teal accents (#1f3331). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the muted deep purple primary (#311f33) on a purple-tinted background (#09050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fcghostwhite | #09050ablack |
| Foreground | #130514black | #f8f6f9whitesmoke |
| Card | #f9f5faghostwhite | #0d070dblack |
| Card foreground | #0f0410black | #fbf9fbsnow |
| Popover | #f9f5faghostwhite | #0d070dblack |
| Popover foreground | #0f0410black | #fbf9fbsnow |
| Primary | #311f33darkslategray | #311f33darkslategray |
| Primary foreground | #ceb3d1thistle | #ceb3d1thistle |
| Secondary | #33311fdarkslategray | #33311fdarkslategray |
| Secondary foreground | #d1ceb3silver | #d1ceb3silver |
| Muted | #f5f4f0whitesmoke | #0f0f0ablack |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #1f3331darkslategray | #1f3331darkslategray |
| Accent foreground | #b3d1celightsteelblue | #b3d1celightsteelblue |
| Destructive | #682303maroon | #e94f07orangered |
| Destructive foreground | #fcbea1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #311f33darkslategray | #311f33darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.83:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 8.43:1 | AAA |
| Accent | 8.21:1 | AAA |
| Destructive | 7.11:1 | AAA |
| Text on background | 18.79:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 9.70:1 | AAA |
| Accent | 8.21:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Fob in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 322.133);
--foreground: oklch(0.149 0.039 323.081);
--muted: oklch(0.966 0.005 100.416);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(0.974 0.009 322.144);
--popover-foreground: oklch(0.136 0.034 323.309);
--card: oklch(0.974 0.009 322.144);
--card-foreground: oklch(0.136 0.034 323.309);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.269 0.045 322.618);
--primary-foreground: oklch(0.798 0.052 322.328);
--secondary: oklch(0.309 0.03 101.573);
--secondary-foreground: oklch(0.846 0.037 100.955);
--accent: oklch(0.303 0.027 186.649);
--accent-foreground: oklch(0.838 0.033 187.954);
--destructive: oklch(0.357 0.106 41.084);
--destructive-foreground: oklch(0.851 0.082 45.97);
--ring: oklch(0.269 0.045 322.618);
--chart-1: oklch(0.269 0.045 322.618);
--chart-2: oklch(0.309 0.03 101.573);
--chart-3: oklch(0.303 0.027 186.649);
--chart-4: oklch(0.344 0.035 101.602);
--chart-5: oklch(0.269 0.05 322.665);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.015 323.083);
--foreground: oklch(0.976 0.005 322.129);
--muted: oklch(0.165 0.008 101.04);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.14 0.017 322.694);
--popover-foreground: oklch(0.984 0.003 322.124);
--card: oklch(0.14 0.017 322.694);
--card-foreground: oklch(0.984 0.003 322.124);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.269 0.045 322.618);
--primary-foreground: oklch(0.798 0.052 322.328);
--secondary: oklch(0.309 0.03 101.573);
--secondary-foreground: oklch(0.846 0.037 100.955);
--accent: oklch(0.303 0.027 186.649);
--accent-foreground: oklch(0.838 0.033 187.954);
--destructive: oklch(0.632 0.201 38.819);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.269 0.045 322.618);
--chart-1: oklch(0.269 0.045 322.618);
--chart-2: oklch(0.309 0.03 101.573);
--chart-3: oklch(0.303 0.027 186.649);
--chart-4: oklch(0.344 0.035 101.602);
--chart-5: oklch(0.269 0.05 322.665);
}