Flawed is a shadcn/ui theme built around a muted light green primary color (#e6e8e3) with muted light pink accents (#e8e3e6). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted light green primary (#e6e8e3) on a green-tinted background (#0b0f06).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #0b0f06black |
| Foreground | #0b1203black | #fafcf8snow |
| Card | #fdfefbwhite | #0b0f06black |
| Card foreground | #0b1203black | #fafcf8snow |
| Popover | #fdfefbwhite | #0b0f06black |
| Popover foreground | #0b1203black | #fafcf8snow |
| Primary | #e6e8e3gainsboro | #e6e8e3gainsboro |
| Primary foreground | #4e5544darkolivegreen | #4e5544darkolivegreen |
| Secondary | #e3e6e8gainsboro | #e3e6e8gainsboro |
| Secondary foreground | #444e55darkslategray | #444e55darkslategray |
| Muted | #eef3f6whitesmoke | #090d11black |
| Muted foreground | #41484edarkslategray | #b1b9besilver |
| Accent | #e8e3e6gainsboro | #e8e3e6gainsboro |
| Accent foreground | #55444edarkslategray | #55444edarkslategray |
| Destructive | #c23114firebrick | #e94a2bchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e6e8e3gainsboro | #e6e8e3gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 6.29:1 | AA |
| Secondary button | 6.78:1 | AA |
| Muted text | 8.30:1 | AAA |
| Accent | 7.11:1 | AAA |
| Destructive | 5.60:1 | AA |
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 6.29:1 | AA |
| Secondary button | 6.78:1 | AA |
| Muted text | 9.78:1 | AAA |
| Accent | 7.11:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Flawed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 125.097);
--foreground: oklch(0.169 0.034 126.131);
--muted: oklch(0.961 0.007 238.46);
--muted-foreground: oklch(0.399 0.013 238.852);
--popover: oklch(0.995 0.004 125.097);
--popover-foreground: oklch(0.169 0.034 126.131);
--card: oklch(0.995 0.004 125.097);
--card-foreground: oklch(0.169 0.034 126.131);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.929 0.008 125.163);
--primary-foreground: oklch(0.438 0.028 125.963);
--secondary: oklch(0.923 0.005 238.435);
--secondary-foreground: oklch(0.417 0.017 238.974);
--accent: oklch(0.92 0.007 341.201);
--accent-foreground: oklch(0.408 0.028 342.526);
--destructive: oklch(0.537 0.185 32.861);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.929 0.008 125.163);
--chart-1: oklch(0.929 0.008 125.163);
--chart-2: oklch(0.923 0.005 238.435);
--chart-3: oklch(0.92 0.007 341.201);
--chart-4: oklch(0.946 0.003 238.412);
--chart-5: oklch(0.93 0.01 125.195);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.02 125.77);
--foreground: oklch(0.988 0.005 125.114);
--muted: oklch(0.158 0.01 239.122);
--muted-foreground: oklch(0.78 0.011 238.569);
--popover: oklch(0.159 0.02 125.77);
--popover-foreground: oklch(0.988 0.005 125.114);
--card: oklch(0.159 0.02 125.77);
--card-foreground: oklch(0.988 0.005 125.114);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.929 0.008 125.163);
--primary-foreground: oklch(0.438 0.028 125.963);
--secondary: oklch(0.923 0.005 238.435);
--secondary-foreground: oklch(0.417 0.017 238.974);
--accent: oklch(0.92 0.007 341.201);
--accent-foreground: oklch(0.408 0.028 342.526);
--destructive: oklch(0.63 0.2 33.17);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.929 0.008 125.163);
--chart-1: oklch(0.929 0.008 125.163);
--chart-2: oklch(0.923 0.005 238.435);
--chart-3: oklch(0.92 0.007 341.201);
--chart-4: oklch(0.946 0.003 238.412);
--chart-5: oklch(0.93 0.01 125.195);
}