Trace is a shadcn/ui theme built around a light violet primary color (#c99aef) with light teal accents (#9aefc9). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the light violet primary (#c99aef) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #000000black |
| Foreground | #050109black | #faf8fcghostwhite |
| Card | #fdfbfewhite | #000000black |
| Card foreground | #050109black | #faf8fcghostwhite |
| Popover | #fdfbfewhite | #000000black |
| Popover foreground | #050109black | #faf8fcghostwhite |
| Primary | #c99aefplum | #c99aefplum |
| Primary foreground | #2e0c4bmidnightblue | #2e0c4bmidnightblue |
| Secondary | #efc99aburlywood | #efc99aburlywood |
| Secondary foreground | #4b2e0csaddlebrown | #4b2e0csaddlebrown |
| Muted | #e7dfd5gainsboro | #2a2218black |
| Muted foreground | #6b6257dimgray | #a89f94darkgray |
| Accent | #9aefc9aquamarine | #9aefc9aquamarine |
| Accent foreground | #0c4b2edarkslategray | #0c4b2edarkslategray |
| Destructive | #9c3611saddlebrown | #e6501achocolate |
| Destructive foreground | #fceae3linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c99aefplum | #c99aefplum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.12:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 4.52:1 | AA |
| Accent | 7.52:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 7.52:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Trace in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 310.406);
--foreground: oklch(0.098 0.031 312.949);
--muted: oklch(0.907 0.017 73.077);
--muted-foreground: oklch(0.501 0.02 72.868);
--popover: oklch(0.991 0.003 310.406);
--popover-foreground: oklch(0.098 0.031 312.949);
--card: oklch(0.991 0.003 310.406);
--card-foreground: oklch(0.098 0.031 312.949);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.76 0.127 308.837);
--primary-foreground: oklch(0.252 0.108 304.592);
--secondary: oklch(0.856 0.074 72.166);
--secondary-foreground: oklch(0.33 0.063 67.387);
--accent: oklch(0.886 0.098 164.231);
--accent-foreground: oklch(0.365 0.078 158.356);
--destructive: oklch(0.476 0.143 38.21);
--destructive-foreground: oklch(0.95 0.022 41.144);
--ring: oklch(0.76 0.127 308.837);
--chart-1: oklch(0.76 0.127 308.837);
--chart-2: oklch(0.856 0.074 72.166);
--chart-3: oklch(0.886 0.098 164.231);
--chart-4: oklch(0.875 0.065 72.401);
--chart-5: oklch(0.758 0.132 308.76);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.005 310.388);
--muted: oklch(0.259 0.022 72.196);
--muted-foreground: oklch(0.707 0.018 73.008);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.005 310.388);
--card: oklch(0 0 0);
--card-foreground: oklch(0.982 0.005 310.388);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.76 0.127 308.837);
--primary-foreground: oklch(0.252 0.108 304.592);
--secondary: oklch(0.856 0.074 72.166);
--secondary-foreground: oklch(0.33 0.063 67.387);
--accent: oklch(0.886 0.098 164.231);
--accent-foreground: oklch(0.365 0.078 158.356);
--destructive: oklch(0.63 0.195 37.793);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.76 0.127 308.837);
--chart-1: oklch(0.76 0.127 308.837);
--chart-2: oklch(0.856 0.074 72.166);
--chart-3: oklch(0.886 0.098 164.231);
--chart-4: oklch(0.875 0.065 72.401);
--chart-5: oklch(0.758 0.132 308.76);
}