Self-assured is a shadcn/ui theme built around a muted purple primary color (#69536e) with neutral gray accents (#e1dfe2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#69536e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #69536edimgray | #69536edimgray |
| Primary foreground | #faf9fbghostwhite | #faf9fbghostwhite |
| Secondary | #e1dfe2gainsboro | #362d39darkslategray |
| Secondary foreground | #49454adarkslategray | #cfc6d2thistle |
| Muted | #e7d5ecgainsboro | #26132ablack |
| Muted foreground | #5b565ddimgray | #a8a2a9darkgray |
| Accent | #e1dfe2gainsboro | #362d39darkslategray |
| Accent foreground | #49454adarkslategray | #cfc6d2thistle |
| Destructive | #610e05maroon | #f2240dorangered |
| Destructive foreground | #faa79elightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #69536edimgray | #69536edimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.50:1 | AA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 5.15:1 | AA |
| Accent | 7.10:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 6.50:1 | AA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 6.96:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Self-assured in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.894 0.037 319.456);
--muted-foreground: oklch(0.46 0.013 319.452);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.476 0.05 319.465);
--primary-foreground: oklch(0.984 0.002 319.445);
--secondary: oklch(0.906 0.004 319.445);
--secondary-foreground: oklch(0.395 0.011 319.452);
--accent: oklch(0.906 0.004 319.445);
--accent-foreground: oklch(0.395 0.011 319.452);
--destructive: oklch(0.32 0.117 30.804);
--destructive-foreground: oklch(0.808 0.099 26.452);
--ring: oklch(0.476 0.05 319.465);
--chart-1: oklch(0.476 0.05 319.465);
--chart-2: oklch(0.906 0.004 319.445);
--chart-3: oklch(0.906 0.004 319.445);
--chart-4: oklch(0.93 0.003 319.445);
--chart-5: oklch(0.473 0.061 319.462);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 319.445);
--muted: oklch(0.224 0.051 319.394);
--muted-foreground: oklch(0.72 0.012 319.449);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 319.445);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 319.445);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.476 0.05 319.465);
--primary-foreground: oklch(0.984 0.002 319.445);
--secondary: oklch(0.313 0.023 319.462);
--secondary-foreground: oklch(0.838 0.018 319.45);
--accent: oklch(0.313 0.023 319.462);
--accent-foreground: oklch(0.838 0.018 319.45);
--destructive: oklch(0.615 0.237 30.417);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.476 0.05 319.465);
--chart-1: oklch(0.476 0.05 319.465);
--chart-2: oklch(0.313 0.023 319.462);
--chart-3: oklch(0.313 0.023 319.462);
--chart-4: oklch(0.342 0.026 319.463);
--chart-5: oklch(0.473 0.061 319.462);
}