Assured is a shadcn/ui theme built around a purple primary color (#cc61b1) with cyan accents (#61b1cc). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the purple primary (#cc61b1) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fbsnow | #040103black |
| Foreground | #090107black | #f9f6f8whitesmoke |
| Card | #fdf7fbsnow | #040103black |
| Card foreground | #090107black | #f9f6f8whitesmoke |
| Popover | #fdf7fbsnow | #040103black |
| Popover foreground | #090107black | #f9f6f8whitesmoke |
| Primary | #cc61b1palevioletred | #cc61b1palevioletred |
| Primary foreground | #000000black | #000000black |
| Secondary | #b1cc61darkkhaki | #b1cc61darkkhaki |
| Secondary foreground | #000000black | #000000black |
| Muted | #e4e6e0gainsboro | #1d1f19black |
| Muted foreground | #5d5f59dimgray | #a5a6a0darkgray |
| Accent | #61b1ccmediumturquoise | #61b1ccmediumturquoise |
| Accent foreground | #000000black | #000000black |
| Destructive | #b71a06firebrick | #ed2207red |
| Destructive foreground | #fff2f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cc61b1palevioletred | #cc61b1palevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 5.91:1 | AA |
| Secondary button | 11.66:1 | AAA |
| Muted text | 5.13:1 | AA |
| Accent | 8.67:1 | AAA |
| Destructive | 6.06:1 | AA |
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 5.91:1 | AA |
| Secondary button | 11.66:1 | AAA |
| Muted text | 6.78:1 | AA |
| Accent | 8.67:1 | AAA |
| Destructive | 4.32:1 | AA Large |
Paste this into your globals.css to use Assured in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.009 334.034);
--foreground: oklch(0.104 0.033 334.909);
--muted: oklch(0.922 0.008 117.972);
--muted-foreground: oklch(0.481 0.009 118.15);
--popover: oklch(0.982 0.009 334.034);
--popover-foreground: oklch(0.104 0.033 334.909);
--card: oklch(0.982 0.009 334.034);
--card-foreground: oklch(0.104 0.033 334.909);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.648 0.165 337.846);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.802 0.137 121.199);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.72 0.087 221.897);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.499 0.191 30.84);
--destructive-foreground: oklch(0.97 0.014 26.54);
--ring: oklch(0.648 0.165 337.846);
--chart-1: oklch(0.648 0.165 337.846);
--chart-2: oklch(0.802 0.137 121.199);
--chart-3: oklch(0.72 0.087 221.897);
--chart-4: oklch(0.816 0.128 120.864);
--chart-5: oklch(0.648 0.173 338.059);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.017 334.56);
--foreground: oklch(0.976 0.004 333.954);
--muted: oklch(0.235 0.011 118.632);
--muted-foreground: oklch(0.722 0.008 118.02);
--popover: oklch(0.086 0.017 334.56);
--popover-foreground: oklch(0.976 0.004 333.954);
--card: oklch(0.086 0.017 334.56);
--card-foreground: oklch(0.976 0.004 333.954);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.648 0.165 337.846);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.802 0.137 121.199);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.72 0.087 221.897);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.605 0.234 30.683);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.648 0.165 337.846);
--chart-1: oklch(0.648 0.165 337.846);
--chart-2: oklch(0.802 0.137 121.199);
--chart-3: oklch(0.72 0.087 221.897);
--chart-4: oklch(0.816 0.128 120.864);
--chart-5: oklch(0.648 0.173 338.059);
}