Fond is a shadcn/ui theme built around a near-white primary color (#fafafa) with muted light yellow accents (#cccdbc). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fafafa) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030302black |
| Foreground | #0c0d02black | #ffffffwhite |
| Card | #fcfcfcsnow | #070703black |
| Card foreground | #080902black | #ffffffwhite |
| Popover | #ffffffwhite | #030302black |
| Popover foreground | #0c0d02black | #ffffffwhite |
| Primary | #fafafasnow | #fafafasnow |
| Primary foreground | #31312bdarkslategray | #31312bdarkslategray |
| Secondary | #deded9gainsboro | #353630darkslategray |
| Secondary foreground | #46473edarkslategray | #cecfc9lightgrey |
| Muted | #e2e2d9gainsboro | #25261dblack |
| Muted foreground | #65674cdimgray | #b2b398darkgray |
| Accent | #cccdbcsilver | #4c4d3ddarkslategray |
| Accent foreground | #313125darkslategray | #e1e2dagainsboro |
| Destructive | #c52007firebrick | #e72608orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fafafasnow | #fafafasnow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 12.55:1 | AAA |
| Secondary button | 6.95:1 | AA |
| Muted text | 4.49:1 | AA Large |
| Accent | 8.12:1 | AAA |
| Destructive | 5.85:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 12.55:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 7.14:1 | AAA |
| Accent | 6.59:1 | AA |
| Destructive | 4.47:1 | AA Large |
Paste this into your globals.css to use Fond in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.154 0.026 111.065);
--muted: oklch(0.911 0.012 108.961);
--muted-foreground: oklch(0.504 0.04 110.145);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.154 0.026 111.065);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.134 0.022 110.814);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.986 0.001 108.727);
--primary-foreground: oklch(0.311 0.011 109.365);
--secondary: oklch(0.898 0.007 108.848);
--secondary-foreground: oklch(0.394 0.015 109.412);
--accent: oklch(0.842 0.022 109.196);
--accent-foreground: oklch(0.31 0.021 109.917);
--destructive: oklch(0.529 0.2 31.231);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.986 0.001 108.727);
--chart-1: oklch(0.986 0.001 108.727);
--chart-2: oklch(0.898 0.007 108.848);
--chart-3: oklch(0.842 0.022 109.196);
--chart-4: oklch(0.92 0.005 108.815);
--chart-5: oklch(0.986 0.001 108.735);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.009 109.958);
--foreground: oklch(1 0 180);
--muted: oklch(0.264 0.017 109.844);
--muted-foreground: oklch(0.759 0.037 109.595);
--popover: oklch(0.1 0.009 109.958);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.126 0.012 109.958);
--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.986 0.001 108.727);
--primary-foreground: oklch(0.311 0.011 109.365);
--secondary: oklch(0.329 0.009 109.198);
--secondary-foreground: oklch(0.851 0.007 108.861);
--accent: oklch(0.415 0.026 109.857);
--accent-foreground: oklch(0.91 0.011 108.926);
--destructive: oklch(0.596 0.227 31.131);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.986 0.001 108.727);
--chart-1: oklch(0.986 0.001 108.727);
--chart-2: oklch(0.329 0.009 109.198);
--chart-3: oklch(0.415 0.026 109.857);
--chart-4: oklch(0.36 0.01 109.212);
--chart-5: oklch(0.986 0.001 108.735);
}