Assured is a shadcn/ui theme built around a neutral gray primary color (#686873) with muted light indigo accents (#c6c6dc). The light mode uses a neutral background (#f6f7fd). Dark mode keeps the neutral gray primary (#686873) on an indigo-tinted background (#07070d).
| Token | Light | Dark |
|---|---|---|
| Background | #f6f7fdghostwhite | #07070dblack |
| Foreground | #03030dblack | #ffffffwhite |
| Card | #f2f2fcaliceblue | #090911black |
| Card foreground | #020208black | #ffffffwhite |
| Popover | #f6f7fdghostwhite | #07070dblack |
| Popover foreground | #03030dblack | #ffffffwhite |
| Primary | #686873dimgray | #686873dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e4e4eclavender | #1a1a23black |
| Secondary foreground | #41415ddarkslategray | #acadc3darkgray |
| Muted | #d3d3dflightgrey | #20202cdarkslategray |
| Muted foreground | #5a5a5edimgray | #a1a1a5darkgray |
| Accent | #c6c6dcthistle | #282843darkslategray |
| Accent foreground | #2b2b46darkslategray | #c2c2dblightsteelblue |
| Destructive | #9b0303darkred | #fa1e1ered |
| Destructive foreground | #fed2d2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #686873dimgray | #686873dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.17:1 | AAA |
| Text on card | 18.66:1 | AAA |
| Primary button | 5.47:1 | AA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 4.61:1 | AA |
| Accent | 8.17:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 20.07:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 5.47:1 | AA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 6.23:1 | AA |
| Accent | 8.15:1 | AAA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Assured in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.977 0.009 285.453);
--foreground: oklch(0.105 0.028 279.171);
--muted: oklch(0.87 0.016 285.274);
--muted-foreground: oklch(0.469 0.006 285.396);
--popover: oklch(0.977 0.009 285.453);
--popover-foreground: oklch(0.105 0.028 279.171);
--card: oklch(0.965 0.013 285.366);
--card-foreground: oklch(0.091 0.024 279.233);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.522 0.017 285.027);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.921 0.011 285.403);
--secondary-foreground: oklch(0.388 0.047 283.215);
--accent: oklch(0.834 0.03 284.955);
--accent-foreground: oklch(0.302 0.048 282.419);
--destructive: oklch(0.434 0.176 28.997);
--destructive-foreground: oklch(0.901 0.05 18.113);
--ring: oklch(0.522 0.017 285.027);
--chart-1: oklch(0.522 0.017 285.027);
--chart-2: oklch(0.921 0.011 285.403);
--chart-3: oklch(0.834 0.03 284.955);
--chart-4: oklch(0.948 0.007 285.48);
--chart-5: oklch(0.513 0.027 284.634);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.014 283.379);
--foreground: oklch(1 0 180);
--muted: oklch(0.25 0.023 283.875);
--muted-foreground: oklch(0.711 0.005 285.486);
--popover: oklch(0.133 0.014 283.379);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.017 283.249);
--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.522 0.017 285.027);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.222 0.019 284.003);
--secondary-foreground: oklch(0.753 0.032 284.832);
--accent: oklch(0.291 0.05 282.114);
--accent-foreground: oklch(0.823 0.035 284.842);
--destructive: oklch(0.628 0.245 28.201);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.522 0.017 285.027);
--chart-1: oklch(0.522 0.017 285.027);
--chart-2: oklch(0.222 0.019 284.003);
--chart-3: oklch(0.291 0.05 282.114);
--chart-4: oklch(0.25 0.023 283.875);
--chart-5: oklch(0.513 0.027 284.634);
}