Accent is a shadcn/ui theme built around a neutral gray primary color (#7a7a7a) with neutral gray accents (#7a7a7a). The light mode uses a neutral background (#fdf6f6). Dark mode keeps the neutral gray primary (#7a7a7a) on a red-tinted background (#0a0505).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6f6snow | #0a0505black |
| Foreground | #080202black | #ffffffwhite |
| Card | #fdf2f2lavenderblush | #0e0707black |
| Card foreground | #040101black | #ffffffwhite |
| Popover | #fdf2f2lavenderblush | #0e0707black |
| Popover foreground | #040101black | #ffffffwhite |
| Primary | #7a7a7agray | #7a7a7agray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7a7a7agray | #7a7a7agray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eed8d8gainsboro | #271111black |
| Muted foreground | #555353dimgray | #acaaaadarkgray |
| Accent | #7a7a7agray | #7a7a7agray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #922402darkred | #fb4109orangered |
| Destructive foreground | #fed4c8peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7a7a7agray | #7a7a7agray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.37:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 4.26:1 | AA Large |
| Secondary button | 4.26:1 | AA Large |
| Muted text | 5.61:1 | AA |
| Accent | 4.26:1 | AA Large |
| Destructive | 6.27:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 4.26:1 | AA Large |
| Secondary button | 4.26:1 | AA Large |
| Muted text | 7.73:1 | AAA |
| Accent | 4.26:1 | AA Large |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Accent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 17.283);
--foreground: oklch(0.104 0.017 20.305);
--muted: oklch(0.9 0.025 17.624);
--muted-foreground: oklch(0.445 0.002 17.239);
--popover: oklch(0.97 0.011 17.35);
--popover-foreground: oklch(0.083 0.013 20.305);
--card: oklch(0.97 0.011 17.35);
--card-foreground: oklch(0.083 0.013 20.305);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.581 0 168.69);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.581 0 168.69);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.581 0 168.69);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.436 0.151 35.117);
--destructive-foreground: oklch(0.903 0.05 37.594);
--ring: oklch(0.581 0 168.69);
--chart-1: oklch(0.581 0 168.69);
--chart-2: oklch(0.581 0 168.69);
--chart-3: oklch(0.581 0 168.69);
--chart-4: oklch(0.607 0 171.87);
--chart-5: oklch(0.575 0.009 17.42);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.012 18.852);
--foreground: oklch(1 0 180);
--muted: oklch(0.21 0.038 20.744);
--muted-foreground: oklch(0.739 0.002 17.201);
--popover: oklch(0.138 0.013 18.932);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.013 18.932);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.581 0 168.69);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.581 0 168.69);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.581 0 168.69);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.651 0.228 34.462);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.581 0 168.69);
--chart-1: oklch(0.581 0 168.69);
--chart-2: oklch(0.581 0 168.69);
--chart-3: oklch(0.581 0 168.69);
--chart-4: oklch(0.607 0 171.87);
--chart-5: oklch(0.575 0.009 17.42);
}