Format is a shadcn/ui theme built around a near-white primary color (#ededed) with muted green accents (#bdcaaa). The light mode uses a neutral background (#fdfefb). Dark mode keeps the near-white primary (#ededed) on a green-tinted background (#080c04).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #080c04black |
| Foreground | #0c1104black | #fdfdfcwhite |
| Card | #fafdf7mintcream | #0b1005black |
| Card foreground | #090d03black | #ffffffwhite |
| Popover | #fdfefbwhite | #080c04black |
| Popover foreground | #0c1104black | #fdfdfcwhite |
| Primary | #edededwhitesmoke | #edededwhitesmoke |
| Primary foreground | #545553dimgray | #545553dimgray |
| Secondary | #d0d5c8lightgrey | #252a1edarkslategray |
| Secondary foreground | #373d2fdarkslategray | #bfc8b1silver |
| Muted | #dbe4cegainsboro | #28311bdarkslategray |
| Muted foreground | #4d4f4adarkslategray | #b3b5b0darkgray |
| Accent | #bdcaaasilver | #364026darkslategray |
| Accent foreground | #23291ablack | #cfd9bflightgrey |
| Destructive | #90220esaddlebrown | #e93e20orangered |
| Destructive foreground | #fbdbd5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #edededwhitesmoke | #edededwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.87:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 6.41:1 | AA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 8.69:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 19.40:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 6.41:1 | AA |
| Secondary button | 8.50:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 7.50:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Format in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 124.402);
--foreground: oklch(0.166 0.029 125.426);
--muted: oklch(0.906 0.031 124.843);
--muted-foreground: oklch(0.424 0.008 124.611);
--popover: oklch(0.995 0.004 124.402);
--popover-foreground: oklch(0.166 0.029 125.426);
--card: oklch(0.99 0.008 124.459);
--card-foreground: oklch(0.148 0.025 123.967);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.947 0 124.352);
--primary-foreground: oklch(0.448 0.003 124.435);
--secondary: oklch(0.865 0.018 124.644);
--secondary-foreground: oklch(0.348 0.025 125.388);
--accent: oklch(0.821 0.045 125.154);
--accent-foreground: oklch(0.269 0.028 125.947);
--destructive: oklch(0.431 0.149 32.27);
--destructive-foreground: oklch(0.916 0.037 29.659);
--ring: oklch(0.947 0 124.352);
--chart-1: oklch(0.947 0 124.352);
--chart-2: oklch(0.865 0.018 124.644);
--chart-3: oklch(0.821 0.045 125.154);
--chart-4: oklch(0.887 0.015 124.589);
--chart-5: oklch(0.948 0.002 124.375);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.02 123.893);
--foreground: oklch(0.994 0.002 124.376);
--muted: oklch(0.299 0.04 126.418);
--muted-foreground: oklch(0.77 0.007 124.471);
--popover: oklch(0.145 0.02 123.893);
--popover-foreground: oklch(0.994 0.002 124.376);
--card: oklch(0.162 0.024 125.272);
--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.947 0 124.352);
--primary-foreground: oklch(0.448 0.003 124.435);
--secondary: oklch(0.275 0.023 125.571);
--secondary-foreground: oklch(0.819 0.032 124.919);
--accent: oklch(0.354 0.044 126.269);
--accent-foreground: oklch(0.87 0.036 124.948);
--destructive: oklch(0.618 0.211 32.302);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.947 0 124.352);
--chart-1: oklch(0.947 0 124.352);
--chart-2: oklch(0.275 0.023 125.571);
--chart-3: oklch(0.354 0.044 126.269);
--chart-4: oklch(0.309 0.027 125.633);
--chart-5: oklch(0.948 0.002 124.375);
}