Calcification is a shadcn/ui theme built around a near-black primary color (#090607) with near-black accents (#060709). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the near-black primary (#090607) on a red-tinted background (#0b0505).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #0b0505black |
| Foreground | #090202black | #ffffffwhite |
| Card | #faf5f5whitesmoke | #0e0607black |
| Card foreground | #040101black | #ffffffwhite |
| Popover | #fcf8f9snow | #0b0505black |
| Popover foreground | #090202black | #ffffffwhite |
| Primary | #090607black | #090607black |
| Primary foreground | #b29094rosybrown | #b29094rosybrown |
| Secondary | #070906black | #070906black |
| Secondary foreground | #94b290darkseagreen | #94b290darkseagreen |
| Muted | #deefdcgainsboro | #122310black |
| Muted foreground | #4e504edarkslategray | #afb1afdarkgray |
| Accent | #060709black | #060709black |
| Accent foreground | #9094b2darkgray | #9094b2darkgray |
| Destructive | #da1e01red | #fe4225orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #090607black | #090607black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.53:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 8.59:1 | AAA |
| Muted text | 6.79:1 | AA |
| Accent | 6.78:1 | AA |
| Destructive | 5.03:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 8.59:1 | AAA |
| Muted text | 7.61:1 | AAA |
| Accent | 6.78:1 | AA |
| Destructive | 3.49:1 | AA Large |
Paste this into your globals.css to use Calcification in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 8.995);
--foreground: oklch(0.101 0.023 10.611);
--muted: oklch(0.935 0.032 141.993);
--muted-foreground: oklch(0.429 0.003 142.088);
--popover: oklch(0.983 0.004 8.995);
--popover-foreground: oklch(0.101 0.023 10.611);
--card: oklch(0.974 0.005 9.039);
--card-foreground: oklch(0.08 0.019 10.611);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.129 0.006 9.206);
--primary-foreground: oklch(0.685 0.041 10.335);
--secondary: oklch(0.135 0.008 141.558);
--secondary-foreground: oklch(0.73 0.058 141.836);
--accent: oklch(0.127 0.006 278.824);
--accent-foreground: oklch(0.672 0.044 279.212);
--destructive: oklch(0.568 0.22 31.024);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.129 0.006 9.206);
--chart-1: oklch(0.129 0.006 9.206);
--chart-2: oklch(0.135 0.008 141.558);
--chart-3: oklch(0.127 0.006 278.824);
--chart-4: oklch(0.175 0.014 141.845);
--chart-5: oklch(0.128 0.007 9.262);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.014 9.718);
--foreground: oklch(1 0 180);
--muted: oklch(0.236 0.044 141.508);
--muted-foreground: oklch(0.758 0.003 142.101);
--popover: oklch(0.123 0.014 9.718);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.136 0.017 10.323);
--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.129 0.006 9.206);
--primary-foreground: oklch(0.685 0.041 10.335);
--secondary: oklch(0.135 0.008 141.558);
--secondary-foreground: oklch(0.73 0.058 141.836);
--accent: oklch(0.127 0.006 278.824);
--accent-foreground: oklch(0.672 0.044 279.212);
--destructive: oklch(0.657 0.228 31.651);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.129 0.006 9.206);
--chart-1: oklch(0.129 0.006 9.206);
--chart-2: oklch(0.135 0.008 141.558);
--chart-3: oklch(0.127 0.006 278.824);
--chart-4: oklch(0.175 0.014 141.845);
--chart-5: oklch(0.128 0.007 9.262);
}