Assured is a shadcn/ui theme built around a neutral gray primary color (#242528) with muted light blue accents (#c2c6db). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the neutral gray primary (#242528) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #000000black |
| Foreground | #03040cblack | #f9f9fbghostwhite |
| Card | #fbfcfewhite | #000000black |
| Card foreground | #03040cblack | #f9f9fbghostwhite |
| Popover | #fbfcfewhite | #000000black |
| Popover foreground | #03040cblack | #f9f9fbghostwhite |
| Primary | #242528darkslategray | #242528darkslategray |
| Primary foreground | #bcbdc2silver | #bcbdc2silver |
| Secondary | #d8dae4gainsboro | #13141bblack |
| Secondary foreground | #383d51darkslategray | #a1a6bfdarkgray |
| Muted | #dde0eelavender | #111422black |
| Muted foreground | #606062dimgray | #9d9d9fdarkgray |
| Accent | #c2c6dblightsteelblue | #1f2233darkslategray |
| Accent foreground | #282c43darkslategray | #b3b8d0lightsteelblue |
| Destructive | #c53916firebrick | #cf3c17firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #242528darkslategray | #242528darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 4.77:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 5.27:1 | AA |
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 7.62:1 | AAA |
| Muted text | 6.75:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 4.89:1 | AA |
Paste this into your globals.css to use Assured in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 277.222);
--foreground: oklch(0.114 0.022 269.667);
--muted: oklch(0.909 0.019 276.969);
--muted-foreground: oklch(0.49 0.003 277.187);
--popover: oklch(0.99 0.003 277.222);
--popover-foreground: oklch(0.114 0.022 269.667);
--card: oklch(0.99 0.003 277.222);
--card-foreground: oklch(0.114 0.022 269.667);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.265 0.006 276.94);
--primary-foreground: oklch(0.8 0.008 277.129);
--secondary: oklch(0.889 0.014 277.043);
--secondary-foreground: oklch(0.363 0.036 275.674);
--accent: oklch(0.83 0.03 276.741);
--accent-foreground: oklch(0.301 0.043 274.884);
--destructive: oklch(0.551 0.183 34.37);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.265 0.006 276.94);
--chart-1: oklch(0.265 0.006 276.94);
--chart-2: oklch(0.889 0.014 277.043);
--chart-3: oklch(0.83 0.03 276.741);
--chart-4: oklch(0.915 0.01 277.1);
--chart-5: oklch(0.262 0.01 276.727);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 277.224);
--muted: oklch(0.196 0.028 274.878);
--muted-foreground: oklch(0.698 0.002 277.213);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.003 277.224);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.003 277.224);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.265 0.006 276.94);
--primary-foreground: oklch(0.8 0.008 277.129);
--secondary: oklch(0.193 0.015 276.07);
--secondary-foreground: oklch(0.729 0.037 276.514);
--accent: oklch(0.258 0.031 275.28);
--accent-foreground: oklch(0.787 0.035 276.602);
--destructive: oklch(0.569 0.189 34.342);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.265 0.006 276.94);
--chart-1: oklch(0.265 0.006 276.94);
--chart-2: oklch(0.193 0.015 276.07);
--chart-3: oklch(0.258 0.031 275.28);
--chart-4: oklch(0.223 0.019 275.919);
--chart-5: oklch(0.262 0.01 276.727);
}