Important is a shadcn/ui theme built around a muted blue primary color (#6f889f) with muted orange accents (#9f866f). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted blue primary (#6f889f) on a blue-tinted background (#050a10).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #050a10black |
| Foreground | #040a11black | #ffffffwhite |
| Card | #f8fafcghostwhite | #060d14black |
| Card foreground | #03080dblack | #ffffffwhite |
| Popover | #f8fafcghostwhite | #060d14black |
| Popover foreground | #03080dblack | #ffffffwhite |
| Primary | #6f889flightslategray | #6f889flightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #9f866fgray | #9f866fgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #eae3dcgainsboro | #231c15black |
| Muted foreground | #565452dimgray | #adaba9darkgray |
| Accent | #9f866fgray | #9f866fgray |
| Accent foreground | #000000black | #000000black |
| Destructive | #b01d03firebrick | #fb3613orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f889flightslategray | #6f889flightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.42:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 5.69:1 | AA |
| Secondary button | 6.13:1 | AA |
| Muted text | 5.91:1 | AA |
| Accent | 6.13:1 | AA |
| Destructive | 6.96:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 5.69:1 | AA |
| Secondary button | 6.13:1 | AA |
| Muted text | 7.35:1 | AAA |
| Accent | 6.13:1 | AA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Important in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 245.987);
--foreground: oklch(0.142 0.019 241.644);
--muted: oklch(0.919 0.012 65.809);
--muted-foreground: oklch(0.447 0.003 65.874);
--popover: oklch(0.984 0.004 246.009);
--popover-foreground: oklch(0.128 0.016 237.962);
--card: oklch(0.984 0.004 246.009);
--card-foreground: oklch(0.128 0.016 237.962);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.616 0.045 246.816);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.638 0.045 64.978);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.638 0.045 64.978);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.487 0.184 31.727);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.616 0.045 246.816);
--chart-1: oklch(0.616 0.045 246.816);
--chart-2: oklch(0.638 0.045 64.978);
--chart-3: oklch(0.638 0.045 64.978);
--chart-4: oklch(0.662 0.042 65.105);
--chart-5: oklch(0.615 0.052 246.955);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.016 242.562);
--foreground: oklch(1 0 180);
--muted: oklch(0.232 0.017 64.933);
--muted-foreground: oklch(0.742 0.003 65.918);
--popover: oklch(0.155 0.018 245.341);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.018 245.341);
--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.616 0.045 246.816);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.638 0.045 64.978);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.638 0.045 64.978);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.642 0.235 31.912);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.616 0.045 246.816);
--chart-1: oklch(0.616 0.045 246.816);
--chart-2: oklch(0.638 0.045 64.978);
--chart-3: oklch(0.638 0.045 64.978);
--chart-4: oklch(0.662 0.042 65.105);
--chart-5: oklch(0.615 0.052 246.955);
}