Informal is a shadcn/ui theme built around a muted deep red primary color (#322021) with muted deep orange accents (#322720). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the muted deep red primary (#322021) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f8snow | #000000black |
| Foreground | #120204black | #fdfcfcsnow |
| Card | #fbf3f4lavenderblush | #030303black |
| Card foreground | #0e0203black | #ffffffwhite |
| Popover | #fdf7f8snow | #000000black |
| Popover foreground | #120204black | #fdfcfcsnow |
| Primary | #322021darkslategray | #322021darkslategray |
| Primary foreground | #cfb4b7silver | #cfb4b7silver |
| Secondary | #32202adarkslategray | #32202adarkslategray |
| Secondary foreground | #cfb4c4silver | #cfb4c4silver |
| Muted | #efdce7mistyrose | #23101bblack |
| Muted foreground | #4b3f46darkslategray | #c0b4bbsilver |
| Accent | #322720darkslategray | #322720darkslategray |
| Accent foreground | #cfc0b4silver | #cfc0b4silver |
| Destructive | #aa0c03darkred | #fa291eorangered |
| Destructive foreground | #fee2e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #322021darkslategray | #322021darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.15:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 7.63:1 | AAA |
| Accent | 8.17:1 | AAA |
| Destructive | 6.22:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 8.17:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Informal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 11.374);
--foreground: oklch(0.128 0.035 15.276);
--muted: oklch(0.913 0.027 341.68);
--muted-foreground: oklch(0.382 0.021 342.232);
--popover: oklch(0.981 0.006 11.374);
--popover-foreground: oklch(0.128 0.035 15.276);
--card: oklch(0.972 0.008 11.439);
--card-foreground: oklch(0.114 0.031 14.467);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.266 0.028 13.63);
--primary-foreground: oklch(0.795 0.031 12.11);
--secondary: oklch(0.269 0.033 343.664);
--secondary-foreground: oklch(0.799 0.037 342.07);
--accent: oklch(0.284 0.021 57.312);
--accent-foreground: oklch(0.816 0.024 57.959);
--destructive: oklch(0.467 0.186 29.663);
--destructive-foreground: oklch(0.937 0.031 21.329);
--ring: oklch(0.266 0.028 13.63);
--chart-1: oklch(0.266 0.028 13.63);
--chart-2: oklch(0.269 0.033 343.664);
--chart-3: oklch(0.284 0.021 57.312);
--chart-4: oklch(0.299 0.038 343.774);
--chart-5: oklch(0.264 0.032 14.011);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 11.268);
--muted: oklch(0.205 0.038 345.066);
--muted-foreground: oklch(0.782 0.017 341.519);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 11.268);
--card: oklch(0.092 0 180);
--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.266 0.028 13.63);
--primary-foreground: oklch(0.795 0.031 12.11);
--secondary: oklch(0.269 0.033 343.664);
--secondary-foreground: oklch(0.799 0.037 342.07);
--accent: oklch(0.284 0.021 57.312);
--accent-foreground: oklch(0.816 0.024 57.959);
--destructive: oklch(0.633 0.241 29.188);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.266 0.028 13.63);
--chart-1: oklch(0.266 0.028 13.63);
--chart-2: oklch(0.269 0.033 343.664);
--chart-3: oklch(0.284 0.021 57.312);
--chart-4: oklch(0.299 0.038 343.774);
--chart-5: oklch(0.264 0.032 14.011);
}