Format is a shadcn/ui theme built around a vivid light green primary color (#b6fcc0) with vivid light red accents (#fcc0b6). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid light green primary (#b6fcc0) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #010402black |
| Foreground | #000000black | #f8fcf9mintcream |
| Card | #fbfefbwhite | #010402black |
| Card foreground | #000000black | #f8fcf9mintcream |
| Popover | #fbfefbwhite | #010402black |
| Popover foreground | #000000black | #f8fcf9mintcream |
| Primary | #b6fcc0powderblue | #b6fcc0powderblue |
| Primary foreground | #011805black | #011805black |
| Secondary | #c0b6fclightsteelblue | #c0b6fclightsteelblue |
| Secondary foreground | #17057amidnightblue | #17057amidnightblue |
| Muted | #ecebf5lavender | #0c0a14black |
| Muted foreground | #5c596edimgray | #9491a6darkgray |
| Accent | #fcc0b6lightpink | #fcc0b6lightpink |
| Accent foreground | #7a1705maroon | #7a1705maroon |
| Destructive | #b04c11sienna | #e36216chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b6fcc0powderblue | #b6fcc0powderblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.68:1 | AAA |
| Text on card | 20.68:1 | AAA |
| Primary button | 15.56:1 | AAA |
| Secondary button | 8.44:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 6.84:1 | AA |
| Destructive | 5.40:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 15.56:1 | AAA |
| Secondary button | 8.44:1 | AAA |
| Muted text | 6.41:1 | AA |
| Accent | 6.84:1 | AA |
| Destructive | 6.02:1 | AA |
Paste this into your globals.css to use Format in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 150.178);
--foreground: oklch(0 0 0);
--muted: oklch(0.943 0.014 293.035);
--muted-foreground: oklch(0.474 0.035 291.877);
--popover: oklch(0.994 0.005 150.178);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.005 150.178);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.929 0.107 148.613);
--primary-foreground: oklch(0.185 0.052 147.144);
--secondary: oklch(0.809 0.099 290.892);
--secondary-foreground: oklch(0.278 0.172 272.213);
--accent: oklch(0.859 0.071 29.99);
--accent-foreground: oklch(0.379 0.137 32.23);
--destructive: oklch(0.539 0.146 44.893);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.929 0.107 148.613);
--chart-1: oklch(0.929 0.107 148.613);
--chart-2: oklch(0.809 0.099 290.892);
--chart-3: oklch(0.859 0.071 29.99);
--chart-4: oklch(0.847 0.078 291.511);
--chart-5: oklch(0.931 0.11 148.561);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.013 149.43);
--foreground: oklch(0.986 0.005 150.178);
--muted: oklch(0.153 0.021 290.513);
--muted-foreground: oklch(0.665 0.032 292.383);
--popover: oklch(0.096 0.013 149.43);
--popover-foreground: oklch(0.986 0.005 150.178);
--card: oklch(0.096 0.013 149.43);
--card-foreground: oklch(0.986 0.005 150.178);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.929 0.107 148.613);
--primary-foreground: oklch(0.185 0.052 147.144);
--secondary: oklch(0.809 0.099 290.892);
--secondary-foreground: oklch(0.278 0.172 272.213);
--accent: oklch(0.859 0.071 29.99);
--accent-foreground: oklch(0.379 0.137 32.23);
--destructive: oklch(0.649 0.179 44.459);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.929 0.107 148.613);
--chart-1: oklch(0.929 0.107 148.613);
--chart-2: oklch(0.809 0.099 290.892);
--chart-3: oklch(0.859 0.071 29.99);
--chart-4: oklch(0.847 0.078 291.511);
--chart-5: oklch(0.931 0.11 148.561);
}