Abnormality is a shadcn/ui theme built around a near-white primary color (#fefcf6) with near-white accents (#f6f8fe). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the near-white primary (#fefcf6) on a neutral background (#070604).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbf7snow | #070604black |
| Foreground | #040301black | #fbfbf8snow |
| Card | #fcf9f3floralwhite | #0a0905black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fdfbf7snow | #070604black |
| Popover foreground | #040301black | #fbfbf8snow |
| Primary | #fefcf6snow | #fefcf6snow |
| Primary foreground | #543f07saddlebrown | #543f07saddlebrown |
| Secondary | #f6f8feghostwhite | #f6f8feghostwhite |
| Secondary foreground | #103eb2darkslateblue | #103eb2darkslateblue |
| Muted | #e6e8eflavender | #101219black |
| Muted foreground | #5a5e68dimgray | #979ba5darkgray |
| Accent | #f6f8feghostwhite | #f6f8feghostwhite |
| Accent foreground | #103eb2darkslateblue | #103eb2darkslateblue |
| Destructive | #a03d03saddlebrown | #e15505orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fefcf6snow | #fefcf6snow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 9.77:1 | AAA |
| Secondary button | 8.39:1 | AAA |
| Muted text | 5.31:1 | AA |
| Accent | 8.39:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 9.77:1 | AAA |
| Secondary button | 8.39:1 | AAA |
| Muted text | 6.71:1 | AA |
| Accent | 8.39:1 | AAA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Abnormality in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 88.829);
--foreground: oklch(0.099 0.012 94.207);
--muted: oklch(0.932 0.01 268.715);
--muted-foreground: oklch(0.482 0.016 268.521);
--popover: oklch(0.989 0.006 88.829);
--popover-foreground: oklch(0.099 0.012 94.207);
--card: oklch(0.983 0.009 88.847);
--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.991 0.008 88.846);
--primary-foreground: oklch(0.38 0.074 84.639);
--secondary: oklch(0.979 0.009 268.729);
--secondary-foreground: oklch(0.419 0.191 263.627);
--accent: oklch(0.979 0.009 268.729);
--accent-foreground: oklch(0.419 0.191 263.627);
--destructive: oklch(0.491 0.144 42.87);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.991 0.008 88.846);
--chart-1: oklch(0.991 0.008 88.846);
--chart-2: oklch(0.979 0.009 268.729);
--chart-3: oklch(0.979 0.009 268.729);
--chart-4: oklch(1.01 0.004 88.818);
--chart-5: oklch(0.991 0.009 88.847);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.008 91.84);
--foreground: oklch(0.987 0.003 88.81);
--muted: oklch(0.184 0.015 268.027);
--muted-foreground: oklch(0.69 0.015 268.628);
--popover: oklch(0.121 0.008 91.84);
--popover-foreground: oklch(0.987 0.003 88.81);
--card: oklch(0.138 0.009 91.84);
--card-foreground: oklch(0.993 0.001 88.801);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.991 0.008 88.846);
--primary-foreground: oklch(0.38 0.074 84.639);
--secondary: oklch(0.979 0.009 268.729);
--secondary-foreground: oklch(0.419 0.191 263.627);
--accent: oklch(0.979 0.009 268.729);
--accent-foreground: oklch(0.419 0.191 263.627);
--destructive: oklch(0.628 0.188 41.931);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.991 0.008 88.846);
--chart-1: oklch(0.991 0.008 88.846);
--chart-2: oklch(0.979 0.009 268.729);
--chart-3: oklch(0.979 0.009 268.729);
--chart-4: oklch(1.01 0.004 88.818);
--chart-5: oklch(0.991 0.009 88.847);
}