Aware is a shadcn/ui theme built around a vivid violet primary color (#8348f9) with vivid green accents (#48f983). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#8348f9) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020104black |
| Foreground | #080411black | #faf9fbghostwhite |
| Card | #fcfcfcsnow | #040208black |
| Card foreground | #06030cblack | #fcfcfdwhite |
| Popover | #fcfcfcsnow | #040208black |
| Popover foreground | #06030cblack | #fcfcfdwhite |
| Primary | #8348f9mediumslateblue | #8348f9mediumslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #f98348coral | #f98348coral |
| Secondary foreground | #0f0500black | #0f0500black |
| Muted | #ede3deantiquewhite | #211712black |
| Muted foreground | #756157dimgray | #a8948arosybrown |
| Accent | #48f983mediumaquamarine | #48f983mediumaquamarine |
| Accent foreground | #000f05black | #000f05black |
| Destructive | #b30f0ffirebrick | #d91212crimson |
| Destructive foreground | #fef6f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8348f9mediumslateblue | #8348f9mediumslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 4.92:1 | AA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 4.61:1 | AA |
| Accent | 14.19:1 | AAA |
| Destructive | 6.58:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 4.92:1 | AA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 6.07:1 | AA |
| Accent | 14.19:1 | AAA |
| Destructive | 5.19:1 | AA |
Paste this into your globals.css to use Aware in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.123 0.033 300.452);
--muted: oklch(0.922 0.014 48.574);
--muted-foreground: oklch(0.509 0.031 48.092);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.112 0.028 301.816);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.112 0.028 301.816);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.574 0.246 292.054);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.733 0.162 45.472);
--secondary-foreground: oklch(0.131 0.027 63.035);
--accent: oklch(0.869 0.214 149.98);
--accent-foreground: oklch(0.148 0.034 155.965);
--destructive: oklch(0.487 0.193 28.446);
--destructive-foreground: oklch(0.979 0.009 17.315);
--ring: oklch(0.574 0.246 292.054);
--chart-1: oklch(0.574 0.246 292.054);
--chart-2: oklch(0.733 0.162 45.472);
--chart-3: oklch(0.869 0.214 149.98);
--chart-4: oklch(0.751 0.149 46.122);
--chart-5: oklch(0.573 0.252 291.603);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.08 0.016 301.982);
--foreground: oklch(0.984 0.002 301.463);
--muted: oklch(0.216 0.02 47.777);
--muted-foreground: oklch(0.681 0.029 48.279);
--popover: oklch(0.101 0.02 301.982);
--popover-foreground: oklch(0.992 0.001 301.478);
--card: oklch(0.101 0.02 301.982);
--card-foreground: oklch(0.992 0.001 301.478);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.574 0.246 292.054);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.733 0.162 45.472);
--secondary-foreground: oklch(0.131 0.027 63.035);
--accent: oklch(0.869 0.214 149.98);
--accent-foreground: oklch(0.148 0.034 155.965);
--destructive: oklch(0.561 0.223 28.572);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.574 0.246 292.054);
--chart-1: oklch(0.574 0.246 292.054);
--chart-2: oklch(0.733 0.162 45.472);
--chart-3: oklch(0.869 0.214 149.98);
--chart-4: oklch(0.751 0.149 46.122);
--chart-5: oklch(0.573 0.252 291.603);
}