Assured is a shadcn/ui theme built around a vivid purple primary color (#d10099) with vivid red accents (#d10031). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid purple primary (#d10099) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #000000black |
| Foreground | #0c030ablack | #ffffffwhite |
| Card | #fcf8fbsnow | #000000black |
| Card foreground | #0c030ablack | #ffffffwhite |
| Popover | #fcf8fbsnow | #000000black |
| Popover foreground | #0c030ablack | #ffffffwhite |
| Primary | #d10099mediumvioletred | #d10099mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a000d1darkviolet | #a000d1darkviolet |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbd5ddgainsboro | #28222adarkslategray |
| Muted foreground | #5b565ddimgray | #a8a2a9darkgray |
| Accent | #d10031crimson | #d10031crimson |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #651606maroon | #de300dorangered |
| Destructive foreground | #fab2a3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d10099mediumvioletred | #d10099mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 5.02:1 | AA |
| Secondary button | 6.13:1 | AA |
| Muted text | 4.95:1 | AA |
| Accent | 5.58:1 | AA |
| Destructive | 7.15:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.02:1 | AA |
| Secondary button | 6.13:1 | AA |
| Muted text | 6.20:1 | AA |
| Accent | 5.58:1 | AA |
| Destructive | 4.64:1 | AA |
Paste this into your globals.css to use Assured in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 334.631);
--foreground: oklch(0.122 0.029 335.706);
--muted: oklch(0.879 0.013 318.315);
--muted-foreground: oklch(0.46 0.013 318.301);
--popover: oklch(0.983 0.006 334.631);
--popover-foreground: oklch(0.122 0.029 335.706);
--card: oklch(0.983 0.006 334.631);
--card-foreground: oklch(0.122 0.029 335.706);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.574 0.245 344.69);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.531 0.262 314.333);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.544 0.219 21.372);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.336 0.115 33.106);
--destructive-foreground: oklch(0.827 0.087 31.621);
--ring: oklch(0.574 0.245 344.69);
--chart-1: oklch(0.574 0.245 344.69);
--chart-2: oklch(0.531 0.262 314.333);
--chart-3: oklch(0.544 0.219 21.372);
--chart-4: oklch(0.559 0.277 314.266);
--chart-5: oklch(0.58 0.248 344.944);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.263 0.018 318.261);
--muted-foreground: oklch(0.72 0.012 318.314);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.574 0.245 344.69);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.531 0.262 314.333);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.544 0.219 21.372);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.585 0.213 32.368);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.574 0.245 344.69);
--chart-1: oklch(0.574 0.245 344.69);
--chart-2: oklch(0.531 0.262 314.333);
--chart-3: oklch(0.544 0.219 21.372);
--chart-4: oklch(0.559 0.277 314.266);
--chart-5: oklch(0.58 0.248 344.944);
}