Informal is a shadcn/ui theme built around a light purple primary color (#eabde2) with light cyan accents (#bde2ea). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the light purple primary (#eabde2) on a neutral background (#070306).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fcsnow | #070306black |
| Foreground | #040104black | #faf5f9whitesmoke |
| Card | #fcf3falavenderblush | #0b040ablack |
| Card foreground | #000000black | #fbf8fbsnow |
| Popover | #fcf3falavenderblush | #0b040ablack |
| Popover foreground | #000000black | #fbf8fbsnow |
| Primary | #eabde2thistle | #eabde2thistle |
| Primary foreground | #591c4eindigo | #591c4eindigo |
| Secondary | #e2eabdpalegoldenrod | #e2eabdpalegoldenrod |
| Secondary foreground | #4e591cdarkolivegreen | #4e591cdarkolivegreen |
| Muted | #ecefdcbeige | #202310black |
| Muted foreground | #474a3adarkslategray | #c2c5b5silver |
| Accent | #bde2eapowderblue | #bde2eapowderblue |
| Accent foreground | #1c4e59darkslategray | #1c4e59darkslategray |
| Destructive | #5f0707maroon | #ef1a1acrimson |
| Destructive foreground | #f8a0a0lightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eabde2thistle | #eabde2thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 6.05:1 | AA |
| Muted text | 7.79:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 6.91:1 | AA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 6.05:1 | AA |
| Muted text | 9.09:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 4.34:1 | AA Large |
Paste this into your globals.css to use Informal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.008 331.529);
--foreground: oklch(0.083 0.026 332.728);
--muted: oklch(0.945 0.027 115.343);
--muted-foreground: oklch(0.402 0.026 116.018);
--popover: oklch(0.973 0.013 331.592);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.973 0.013 331.592);
--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.849 0.071 332.536);
--primary-foreground: oklch(0.342 0.11 335.683);
--secondary: oklch(0.92 0.06 116.027);
--secondary-foreground: oklch(0.441 0.085 118.885);
--accent: oklch(0.889 0.04 212.817);
--accent-foreground: oklch(0.395 0.056 215.097);
--destructive: oklch(0.311 0.12 27.938);
--destructive-foreground: oklch(0.793 0.106 19.696);
--ring: oklch(0.849 0.071 332.536);
--chart-1: oklch(0.849 0.071 332.536);
--chart-2: oklch(0.92 0.06 116.027);
--chart-3: oklch(0.889 0.04 212.817);
--chart-4: oklch(0.934 0.049 115.8);
--chart-5: oklch(0.849 0.075 332.599);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.017 332.131);
--foreground: oklch(0.975 0.007 331.511);
--muted: oklch(0.248 0.035 117.518);
--muted-foreground: oklch(0.816 0.022 115.323);
--popover: oklch(0.126 0.02 332.208);
--popover-foreground: oklch(0.983 0.005 331.476);
--card: oklch(0.126 0.02 332.208);
--card-foreground: oklch(0.983 0.005 331.476);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.849 0.071 332.536);
--primary-foreground: oklch(0.342 0.11 335.683);
--secondary: oklch(0.92 0.06 116.027);
--secondary-foreground: oklch(0.441 0.085 118.885);
--accent: oklch(0.889 0.04 212.817);
--accent-foreground: oklch(0.395 0.056 215.097);
--destructive: oklch(0.605 0.238 28.311);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.849 0.071 332.536);
--chart-1: oklch(0.849 0.071 332.536);
--chart-2: oklch(0.92 0.06 116.027);
--chart-3: oklch(0.889 0.04 212.817);
--chart-4: oklch(0.934 0.049 115.8);
--chart-5: oklch(0.849 0.075 332.599);
}