Informal is a shadcn/ui theme built around a muted purple primary color (#703e65) with muted cyan accents (#3e6570). The light mode uses a neutral background (#fcf7fb). Dark mode keeps the muted purple primary (#703e65) on a purple-tinted background (#0f050d).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fbsnow | #0f050dblack |
| Foreground | #10040dblack | #faf9fasnow |
| Card | #fbf4faghostwhite | #130710black |
| Card foreground | #0c030ablack | #fdfcfdwhite |
| Popover | #fbf4faghostwhite | #130710black |
| Popover foreground | #0c030ablack | #fdfcfdwhite |
| Primary | #703e65dimgray | #703e65dimgray |
| Primary foreground | #f4ebf2whitesmoke | #f4ebf2whitesmoke |
| Secondary | #65703edarkolivegreen | #65703edarkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dee2cfgainsboro | #2c301ddarkslategray |
| Muted foreground | #4a4d3ddarkslategray | #bfc2b2silver |
| Accent | #3e6570darkslategray | #3e6570darkslategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8f2e05saddlebrown | #f86c30tomato |
| Destructive foreground | #fdd9c9bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #703e65dimgray | #703e65dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.03:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 5.34:1 | AA |
| Muted text | 6.58:1 | AA |
| Accent | 6.37:1 | AA |
| Destructive | 6.22:1 | AA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 5.34:1 | AA |
| Muted text | 7.50:1 | AAA |
| Accent | 6.37:1 | AA |
| Destructive | 7.16:1 | AAA |
Paste this into your globals.css to use Informal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.008 332.735);
--foreground: oklch(0.137 0.03 334.784);
--muted: oklch(0.905 0.026 116.851);
--muted-foreground: oklch(0.412 0.027 117.525);
--popover: oklch(0.973 0.011 332.796);
--popover-foreground: oklch(0.123 0.027 333.789);
--card: oklch(0.973 0.011 332.796);
--card-foreground: oklch(0.123 0.027 333.789);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.438 0.089 335.527);
--primary-foreground: oklch(0.95 0.013 332.831);
--secondary: oklch(0.523 0.074 119.026);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.482 0.048 217.287);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.442 0.138 38.996);
--destructive-foreground: oklch(0.91 0.046 44.541);
--ring: oklch(0.438 0.089 335.527);
--chart-1: oklch(0.438 0.089 335.527);
--chart-2: oklch(0.523 0.074 119.026);
--chart-3: oklch(0.482 0.048 217.287);
--chart-4: oklch(0.555 0.079 119.052);
--chart-5: oklch(0.438 0.098 335.804);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.026 334.534);
--foreground: oklch(0.984 0.002 332.64);
--muted: oklch(0.298 0.033 118.392);
--muted-foreground: oklch(0.808 0.023 116.849);
--popover: oklch(0.151 0.03 335.143);
--popover-foreground: oklch(0.992 0.001 332.628);
--card: oklch(0.151 0.03 335.143);
--card-foreground: oklch(0.992 0.001 332.628);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.438 0.089 335.527);
--primary-foreground: oklch(0.95 0.013 332.831);
--secondary: oklch(0.523 0.074 119.026);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.482 0.048 217.287);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.694 0.185 41.42);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.438 0.089 335.527);
--chart-1: oklch(0.438 0.089 335.527);
--chart-2: oklch(0.523 0.074 119.026);
--chart-3: oklch(0.482 0.048 217.287);
--chart-4: oklch(0.555 0.079 119.052);
--chart-5: oklch(0.438 0.098 335.804);
}