Format is a shadcn/ui theme built around a pink primary color (#974e72) with blue accents (#4e7297). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#974e72) on a neutral background (#080205).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #080205black |
| Foreground | #0c0308black | #fcf8fasnow |
| Card | #fdf7fasnow | #0c0307black |
| Card foreground | #080205black | #fdfbfcsnow |
| Popover | #fefbfcsnow | #080205black |
| Popover foreground | #0c0308black | #fcf8fasnow |
| Primary | #974e72dimgray | #974e72dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #72974eolivedrab | #72974eolivedrab |
| Secondary foreground | #000000black | #000000black |
| Muted | #d8e4cdgainsboro | #26321bdarkslategray |
| Muted foreground | #454f3bdarkslategray | #bac4b0silver |
| Accent | #4e7297steelblue | #4e7297steelblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ac3d11brown | #e9561cchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #974e72dimgray | #974e72dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 6.27:1 | AA |
| Muted text | 6.54:1 | AA |
| Accent | 5.04:1 | AA |
| Destructive | 6.14:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 6.27:1 | AA |
| Muted text | 7.49:1 | AAA |
| Accent | 5.04:1 | AA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Format in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 346.105);
--foreground: oklch(0.122 0.023 346.066);
--muted: oklch(0.904 0.033 129.52);
--muted-foreground: oklch(0.412 0.036 130.1);
--popover: oklch(0.991 0.003 346.105);
--popover-foreground: oklch(0.122 0.023 346.066);
--card: oklch(0.982 0.007 346.195);
--card-foreground: oklch(0.106 0.02 345.79);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.524 0.107 351.089);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.632 0.11 131.342);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.54 0.072 250.874);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.511 0.154 38.911);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.524 0.107 351.089);
--chart-1: oklch(0.524 0.107 351.089);
--chart-2: oklch(0.632 0.11 131.342);
--chart-3: oklch(0.54 0.072 250.874);
--chart-4: oklch(0.663 0.116 131.357);
--chart-5: oklch(0.524 0.116 351.58);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.022 345.765);
--foreground: oklch(0.982 0.005 346.15);
--muted: oklch(0.298 0.042 130.83);
--muted-foreground: oklch(0.808 0.031 129.535);
--popover: oklch(0.105 0.022 345.765);
--popover-foreground: oklch(0.982 0.005 346.15);
--card: oklch(0.121 0.025 346.136);
--card-foreground: oklch(0.991 0.002 346.083);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.524 0.107 351.089);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.632 0.11 131.342);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.54 0.072 250.874);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.641 0.193 38.951);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.524 0.107 351.089);
--chart-1: oklch(0.524 0.107 351.089);
--chart-2: oklch(0.632 0.11 131.342);
--chart-3: oklch(0.54 0.072 250.874);
--chart-4: oklch(0.663 0.116 131.357);
--chart-5: oklch(0.524 0.116 351.58);
}