Advertising is a shadcn/ui theme built around a muted deep blue primary color (#0c1013) with muted deep orange accents (#130f0c). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted deep blue primary (#0c1013) on a neutral background (#020508).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #020508black |
| Foreground | #020508black | #ffffffwhite |
| Card | #fbfdfewhite | #020508black |
| Card foreground | #020508black | #ffffffwhite |
| Popover | #fbfdfewhite | #020508black |
| Popover foreground | #020508black | #ffffffwhite |
| Primary | #0c1013black | #0c1013black |
| Primary foreground | #93abbddarkgray | #93abbddarkgray |
| Secondary | #130f0cblack | #130f0cblack |
| Secondary foreground | #bda693rosybrown | #bda693rosybrown |
| Muted | #efe7e1linen | #1e1610black |
| Muted foreground | #40403fdarkslategray | #c0bfbfsilver |
| Accent | #130f0cblack | #130f0cblack |
| Accent foreground | #bda693rosybrown | #bda693rosybrown |
| Destructive | #900e09darkred | #f2332ccrimson |
| Destructive foreground | #fcd1cfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c1013black | #0c1013black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.98:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 8.50:1 | AAA |
| Accent | 8.21:1 | AAA |
| Destructive | 6.74:1 | AA |
| Text on background | 20.38:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 9.72:1 | AAA |
| Accent | 8.21:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Advertising in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 240.316);
--foreground: oklch(0.114 0.011 233.283);
--muted: oklch(0.933 0.012 60.106);
--muted-foreground: oklch(0.371 0.001 60.233);
--popover: oklch(0.992 0.002 240.316);
--popover-foreground: oklch(0.114 0.011 233.283);
--card: oklch(0.992 0.002 240.316);
--card-foreground: oklch(0.114 0.011 233.283);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.169 0.009 241.095);
--primary-foreground: oklch(0.729 0.037 241.017);
--secondary: oklch(0.172 0.01 59.492);
--secondary-foreground: oklch(0.739 0.038 59.566);
--accent: oklch(0.172 0.01 59.492);
--accent-foreground: oklch(0.739 0.038 59.566);
--destructive: oklch(0.416 0.162 28.999);
--destructive-foreground: oklch(0.896 0.049 20.433);
--ring: oklch(0.169 0.009 241.095);
--chart-1: oklch(0.169 0.009 241.095);
--chart-2: oklch(0.172 0.01 59.492);
--chart-3: oklch(0.172 0.01 59.492);
--chart-4: oklch(0.207 0.014 59.329);
--chart-5: oklch(0.169 0.011 241.206);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.114 0.012 233.032);
--foreground: oklch(1 0 180);
--muted: oklch(0.208 0.018 59.008);
--muted-foreground: oklch(0.806 0.001 60.264);
--popover: oklch(0.114 0.012 233.032);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.114 0.012 233.032);
--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.169 0.009 241.095);
--primary-foreground: oklch(0.729 0.037 241.017);
--secondary: oklch(0.172 0.01 59.492);
--secondary-foreground: oklch(0.739 0.038 59.566);
--accent: oklch(0.172 0.01 59.492);
--accent-foreground: oklch(0.739 0.038 59.566);
--destructive: oklch(0.624 0.226 28.109);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.169 0.009 241.095);
--chart-1: oklch(0.169 0.009 241.095);
--chart-2: oklch(0.172 0.01 59.492);
--chart-3: oklch(0.172 0.01 59.492);
--chart-4: oklch(0.207 0.014 59.329);
--chart-5: oklch(0.169 0.011 241.206);
}