Avenue is a shadcn/ui theme built around a light purple primary color (#f7edf5) with light pink accents (#f7edf0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#f7edf5) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030203black |
| Foreground | #080207black | #fdfcfdwhite |
| Card | #ffffffwhite | #030203black |
| Card foreground | #080207black | #fdfcfdwhite |
| Popover | #ffffffwhite | #030203black |
| Popover foreground | #080207black | #fdfcfdwhite |
| Primary | #f7edf5whitesmoke | #f7edf5whitesmoke |
| Primary foreground | #7d366frebeccapurple | #7d366frebeccapurple |
| Secondary | #f4edf7whitesmoke | #f4edf7whitesmoke |
| Secondary foreground | #68367drebeccapurple | #68367drebeccapurple |
| Muted | #f3f0f5whitesmoke | #0e0a0fblack |
| Muted foreground | #5b4c61dimgray | #ac9eb3darkgray |
| Accent | #f7edf0whitesmoke | #f7edf0whitesmoke |
| Accent foreground | #7d364bbrown | #7d364bbrown |
| Destructive | #b91d09firebrick | #db230afirebrick |
| Destructive foreground | #fff6f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f7edf5whitesmoke | #f7edf5whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.54:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 7.60:1 | AAA |
| Muted text | 7.00:1 | AAA |
| Accent | 7.34:1 | AAA |
| Destructive | 6.08:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 7.60:1 | AAA |
| Muted text | 7.75:1 | AAA |
| Accent | 7.34:1 | AAA |
| Destructive | 4.93:1 | AA |
Paste this into your globals.css to use Avenue in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.108 0.023 332.901);
--muted: oklch(0.958 0.008 315.993);
--muted-foreground: oklch(0.44 0.038 315.711);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.108 0.023 332.901);
--card: oklch(1 0 180);
--card-foreground: oklch(0.108 0.023 332.901);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.957 0.015 332.242);
--primary-foreground: oklch(0.448 0.123 335.774);
--secondary: oklch(0.955 0.015 315.963);
--secondary-foreground: oklch(0.427 0.124 314.688);
--accent: oklch(0.955 0.012 357.009);
--accent-foreground: oklch(0.434 0.102 3.418);
--destructive: oklch(0.505 0.192 30.871);
--destructive-foreground: oklch(0.98 0.009 26.502);
--ring: oklch(0.957 0.015 332.242);
--chart-1: oklch(0.957 0.015 332.242);
--chart-2: oklch(0.955 0.015 315.963);
--chart-3: oklch(0.955 0.012 357.009);
--chart-4: oklch(0.982 0.006 315.999);
--chart-5: oklch(0.956 0.016 332.26);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.012 332.584);
--foreground: oklch(0.992 0.002 332.028);
--muted: oklch(0.153 0.012 315.733);
--muted-foreground: oklch(0.718 0.034 315.853);
--popover: oklch(0.088 0.012 332.584);
--popover-foreground: oklch(0.992 0.002 332.028);
--card: oklch(0.088 0.012 332.584);
--card-foreground: oklch(0.992 0.002 332.028);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.957 0.015 332.242);
--primary-foreground: oklch(0.448 0.123 335.774);
--secondary: oklch(0.955 0.015 315.963);
--secondary-foreground: oklch(0.427 0.124 314.688);
--accent: oklch(0.955 0.012 357.009);
--accent-foreground: oklch(0.434 0.102 3.418);
--destructive: oklch(0.572 0.218 30.808);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.957 0.015 332.242);
--chart-1: oklch(0.957 0.015 332.242);
--chart-2: oklch(0.955 0.015 315.963);
--chart-3: oklch(0.955 0.012 357.009);
--chart-4: oklch(0.982 0.006 315.999);
--chart-5: oklch(0.956 0.016 332.26);
}