Assured is a shadcn/ui theme built around a vivid light green primary color (#ecf6b6) with muted light green accents (#e0e1db). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the vivid light green primary (#ecf6b6) on a neutral background (#060704).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #060704black |
| Foreground | #030401black | #fdfdfbsnow |
| Card | #fbfcf8snow | #060704black |
| Card foreground | #030401black | #fdfdfbsnow |
| Popover | #fbfcf8snow | #060704black |
| Popover foreground | #030401black | #fdfdfbsnow |
| Primary | #ecf6b6palegoldenrod | #ecf6b6palegoldenrod |
| Primary foreground | #101202black | #101202black |
| Secondary | #e0e1dbgainsboro | #1c1d16black |
| Secondary foreground | #494b3fdarkslategray | #babda8silver |
| Muted | #f1f2eewhitesmoke | #11110dblack |
| Muted foreground | #4d4d4ddarkslategray | #b3b3b3darkgray |
| Accent | #e0e1dbgainsboro | #1c1d16black |
| Accent foreground | #494b3fdarkslategray | #babda8silver |
| Destructive | #b80900firebrick | #f50c00red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ecf6b6palegoldenrod | #ecf6b6palegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 16.64:1 | AAA |
| Secondary button | 6.74:1 | AA |
| Muted text | 7.49:1 | AAA |
| Accent | 6.74:1 | AA |
| Destructive | 6.84:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 16.64:1 | AAA |
| Secondary button | 8.83:1 | AAA |
| Muted text | 9.02:1 | AAA |
| Accent | 8.83:1 | AAA |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Assured in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 114.153);
--foreground: oklch(0.102 0.013 114.815);
--muted: oklch(0.958 0.005 114.161);
--muted-foreground: oklch(0.418 0 173.29);
--popover: oklch(0.989 0.005 114.153);
--popover-foreground: oklch(0.102 0.013 114.815);
--card: oklch(0.989 0.005 114.153);
--card-foreground: oklch(0.102 0.013 114.815);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.951 0.084 115.707);
--primary-foreground: oklch(0.175 0.034 116.683);
--secondary: oklch(0.907 0.008 114.232);
--secondary-foreground: oklch(0.407 0.02 114.989);
--accent: oklch(0.907 0.008 114.232);
--accent-foreground: oklch(0.407 0.02 114.989);
--destructive: oklch(0.493 0.199 29.821);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.951 0.084 115.707);
--chart-1: oklch(0.951 0.084 115.707);
--chart-2: oklch(0.907 0.008 114.232);
--chart-3: oklch(0.907 0.008 114.232);
--chart-4: oklch(0.929 0.006 114.19);
--chart-5: oklch(0.954 0.087 115.762);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.01 114.559);
--foreground: oklch(0.995 0.003 114.117);
--muted: oklch(0.176 0.007 114.847);
--muted-foreground: oklch(0.765 0 172.405);
--popover: oklch(0.124 0.01 114.559);
--popover-foreground: oklch(0.995 0.003 114.117);
--card: oklch(0.124 0.01 114.559);
--card-foreground: oklch(0.995 0.003 114.117);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.951 0.084 115.707);
--primary-foreground: oklch(0.175 0.034 116.683);
--secondary: oklch(0.227 0.013 115.164);
--secondary-foreground: oklch(0.79 0.03 114.765);
--accent: oklch(0.227 0.013 115.164);
--accent-foreground: oklch(0.79 0.03 114.765);
--destructive: oklch(0.611 0.248 29.648);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.951 0.084 115.707);
--chart-1: oklch(0.951 0.084 115.707);
--chart-2: oklch(0.227 0.013 115.164);
--chart-3: oklch(0.227 0.013 115.164);
--chart-4: oklch(0.263 0.017 115.254);
--chart-5: oklch(0.954 0.087 115.762);
}