Fav is a shadcn/ui theme built around a near-white primary color (#fafeff) with muted light cyan accents (#ccdbe0). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the near-white primary (#fafeff) on a cyan-tinted background (#030a0c).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fbfdghostwhite | #030a0cblack |
| Foreground | #030e12black | #f4f9famintcream |
| Card | #f3fafcaliceblue | #040d10black |
| Card foreground | #020b0dblack | #f8fbfcghostwhite |
| Popover | #f7fbfdghostwhite | #030a0cblack |
| Popover foreground | #030e12black | #f4f9famintcream |
| Primary | #fafeffwhite | #fafeffwhite |
| Primary foreground | #02485fdarkslategray | #02485fdarkslategray |
| Secondary | #e4eaeclavender | #2b373bdarkslategray |
| Secondary foreground | #40575edarkslategray | #c4d0d4lightgrey |
| Muted | #e0ecf1lavender | #0e1b1fblack |
| Muted foreground | #545454dimgray | #abababdarkgray |
| Accent | #ccdbe0gainsboro | #375058darkslategray |
| Accent foreground | #2e454ddarkslategray | #d9e4e7gainsboro |
| Destructive | #cb3b06firebrick | #e44207orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fafeffwhite | #fafeffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.80:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 9.85:1 | AAA |
| Secondary button | 6.30:1 | AA |
| Muted text | 6.29:1 | AA |
| Accent | 7.13:1 | AAA |
| Destructive | 5.05:1 | AA |
| Text on background | 18.79:1 | AAA |
| Text on card | 18.85:1 | AAA |
| Primary button | 9.85:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 7.63:1 | AAA |
| Accent | 6.64:1 | AA |
| Destructive | 4.14:1 | AA Large |
Paste this into your globals.css to use Fav in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.005 219.546);
--foreground: oklch(0.153 0.021 217.994);
--muted: oklch(0.936 0.015 219.632);
--muted-foreground: oklch(0.446 0 180);
--popover: oklch(0.986 0.005 219.546);
--popover-foreground: oklch(0.153 0.021 217.994);
--card: oklch(0.98 0.008 219.567);
--card-foreground: oklch(0.138 0.019 215.188);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.994 0.004 219.538);
--primary-foreground: oklch(0.374 0.072 228.296);
--secondary: oklch(0.933 0.008 219.568);
--secondary-foreground: oklch(0.44 0.03 220.344);
--accent: oklch(0.882 0.018 219.674);
--accent-foreground: oklch(0.374 0.031 220.676);
--destructive: oklch(0.561 0.188 36.247);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.994 0.004 219.538);
--chart-1: oklch(0.994 0.004 219.538);
--chart-2: oklch(0.933 0.008 219.568);
--chart-3: oklch(0.882 0.018 219.674);
--chart-4: oklch(0.956 0.005 219.546);
--chart-5: oklch(0.994 0.004 219.539);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.014 215.512);
--foreground: oklch(0.979 0.005 219.547);
--muted: oklch(0.213 0.02 220.908);
--muted-foreground: oklch(0.741 0 171.254);
--popover: oklch(0.136 0.014 215.512);
--popover-foreground: oklch(0.979 0.005 219.547);
--card: oklch(0.151 0.016 218.346);
--card-foreground: oklch(0.986 0.004 219.533);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.994 0.004 219.538);
--primary-foreground: oklch(0.374 0.072 228.296);
--secondary: oklch(0.328 0.018 220.099);
--secondary-foreground: oklch(0.85 0.015 219.643);
--accent: oklch(0.413 0.033 220.583);
--accent-foreground: oklch(0.912 0.012 219.612);
--destructive: oklch(0.611 0.206 36.06);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.994 0.004 219.538);
--chart-1: oklch(0.994 0.004 219.538);
--chart-2: oklch(0.328 0.018 220.099);
--chart-3: oklch(0.413 0.033 220.583);
--chart-4: oklch(0.358 0.02 220.123);
--chart-5: oklch(0.994 0.004 219.539);
}