Format is a shadcn/ui theme built around a muted purple primary color (#c091be) with neutral gray accents (#d1cccc). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#c091be) on a neutral background (#040104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040104black |
| Foreground | #140613black | #ffffffwhite |
| Card | #ffffffwhite | #040104black |
| Card foreground | #140613black | #ffffffwhite |
| Popover | #ffffffwhite | #040104black |
| Popover foreground | #140613black | #ffffffwhite |
| Primary | #c091bedarkgray | #c091bedarkgray |
| Primary foreground | #130b13black | #130b13black |
| Secondary | #dededegainsboro | #231a23black |
| Secondary foreground | #454545darkslategray | #c2adc2silver |
| Muted | #f1e9e9linen | #160e16black |
| Muted foreground | #6d5a5adimgray | #a592a5darkgray |
| Accent | #d1cccclightgrey | #3c253bdarkslategray |
| Accent foreground | #393232darkslategray | #d6bdd5thistle |
| Destructive | #851b0fmaroon | #e73623crimson |
| Destructive foreground | #f9d1cdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c091bedarkgray | #c091bedarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 5.38:1 | AA |
| Accent | 7.87:1 | AAA |
| Destructive | 6.96:1 | AA |
| Text on background | 20.73:1 | AAA |
| Text on card | 20.73:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 6.55:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 4.25:1 | AA Large |
Paste this into your globals.css to use Format in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.152 0.037 328.357);
--muted: oklch(0.94 0.009 17.322);
--muted-foreground: oklch(0.486 0.026 18.09);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.152 0.037 328.357);
--card: oklch(1 0 180);
--card-foreground: oklch(0.152 0.037 328.357);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.715 0.083 327.494);
--primary-foreground: oklch(0.166 0.021 327.581);
--secondary: oklch(0.9 0 188.746);
--secondary-foreground: oklch(0.39 0 165.964);
--accent: oklch(0.849 0.006 17.284);
--accent-foreground: oklch(0.325 0.009 17.635);
--destructive: oklch(0.404 0.143 30.446);
--destructive-foreground: oklch(0.894 0.046 25.493);
--ring: oklch(0.715 0.083 327.494);
--chart-1: oklch(0.715 0.083 327.494);
--chart-2: oklch(0.9 0 188.746);
--chart-3: oklch(0.849 0.006 17.284);
--chart-4: oklch(0.923 0 153.435);
--chart-5: oklch(0.714 0.092 327.594);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.015 327.642);
--foreground: oklch(1 0 180);
--muted: oklch(0.177 0.022 327.536);
--muted-foreground: oklch(0.682 0.036 326.986);
--popover: oklch(0.088 0.015 327.642);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.088 0.015 327.642);
--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.715 0.083 327.494);
--primary-foreground: oklch(0.166 0.021 327.581);
--secondary: oklch(0.233 0.022 327.312);
--secondary-foreground: oklch(0.772 0.038 326.953);
--accent: oklch(0.302 0.051 327.886);
--accent-foreground: oklch(0.826 0.044 326.994);
--destructive: oklch(0.607 0.215 30.434);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.715 0.083 327.494);
--chart-1: oklch(0.715 0.083 327.494);
--chart-2: oklch(0.233 0.022 327.312);
--chart-3: oklch(0.302 0.051 327.886);
--chart-4: oklch(0.264 0.026 327.362);
--chart-5: oklch(0.714 0.092 327.594);
}