Informal is a shadcn/ui theme built around a blue primary color (#1d72af) with muted light blue accents (#d0d7dd). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the blue primary (#1d72af) on a blue-tinted background (#070b0e).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #070b0eblack |
| Foreground | #020608black | #ffffffwhite |
| Card | #f8fafcghostwhite | #080d11black |
| Card foreground | #010304black | #ffffffwhite |
| Popover | #fcfdfdwhite | #070b0eblack |
| Popover foreground | #020608black | #ffffffwhite |
| Primary | #1d72afsteelblue | #1d72afsteelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d0d7ddlightgrey | #252f37darkslategray |
| Secondary foreground | #333f47darkslategray | #bcc9d2lightsteelblue |
| Muted | #e0e9f0lavender | #0f181fblack |
| Muted foreground | #3d4951darkslategray | #aeb9c2silver |
| Accent | #d0d7ddlightgrey | #252f37darkslategray |
| Accent foreground | #333f47darkslategray | #bcc9d2lightsteelblue |
| Destructive | #8b3104saddlebrown | #e45107orangered |
| Destructive foreground | #fdd7c4peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1d72afsteelblue | #1d72afsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 5.13:1 | AA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 7.44:1 | AAA |
| Destructive | 6.20:1 | AA |
| Text on background | 19.77:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 5.13:1 | AA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 8.96:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Informal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.001 238.382);
--foreground: oklch(0.114 0.014 229.974);
--muted: oklch(0.93 0.013 238.564);
--muted-foreground: oklch(0.399 0.021 239.147);
--popover: oklch(0.992 0.001 238.382);
--popover-foreground: oklch(0.114 0.014 229.974);
--card: oklch(0.985 0.003 238.403);
--card-foreground: oklch(0.091 0.011 229.974);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.535 0.123 245.468);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.876 0.011 238.544);
--secondary-foreground: oklch(0.36 0.021 239.244);
--accent: oklch(0.876 0.011 238.544);
--accent-foreground: oklch(0.36 0.021 239.244);
--destructive: oklch(0.438 0.131 41.168);
--destructive-foreground: oklch(0.906 0.05 48.144);
--ring: oklch(0.535 0.123 245.468);
--chart-1: oklch(0.535 0.123 245.468);
--chart-2: oklch(0.876 0.011 238.544);
--chart-3: oklch(0.876 0.011 238.544);
--chart-4: oklch(0.899 0.009 238.505);
--chart-5: oklch(0.537 0.127 245.926);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.01 236.937);
--foreground: oklch(1 0 180);
--muted: oklch(0.204 0.019 239.901);
--muted-foreground: oklch(0.78 0.018 238.687);
--popover: oklch(0.145 0.01 236.937);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.158 0.011 239.074);
--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.535 0.123 245.468);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.3 0.019 239.36);
--secondary-foreground: oklch(0.828 0.018 238.684);
--accent: oklch(0.3 0.019 239.36);
--accent-foreground: oklch(0.828 0.018 238.684);
--destructive: oklch(0.627 0.194 39.919);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.535 0.123 245.468);
--chart-1: oklch(0.535 0.123 245.468);
--chart-2: oklch(0.3 0.019 239.36);
--chart-3: oklch(0.3 0.019 239.36);
--chart-4: oklch(0.331 0.022 239.399);
--chart-5: oklch(0.537 0.127 245.926);
}