Exposition is a shadcn/ui theme built around a light green primary color (#b1eba2) with light green accents (#a2ebb8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#b1eba2) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020401black |
| Foreground | #051202black | #f6faf5whitesmoke |
| Card | #ffffffwhite | #020401black |
| Card foreground | #051202black | #f6faf5whitesmoke |
| Popover | #ffffffwhite | #020401black |
| Popover foreground | #051202black | #f6faf5whitesmoke |
| Primary | #b1eba2palegreen | #b1eba2palegreen |
| Primary foreground | #1c4c10darkgreen | #1c4c10darkgreen |
| Secondary | #d5eba2palegoldenrod | #d5eba2palegoldenrod |
| Secondary foreground | #3a4c10darkolivegreen | #3a4c10darkolivegreen |
| Muted | #f4f6efwhitesmoke | #0e1009black |
| Muted foreground | #484c3edarkslategray | #bdc1b3silver |
| Accent | #a2ebb8palegreen | #a2ebb8palegreen |
| Accent foreground | #104c22darkgreen | #104c22darkgreen |
| Destructive | #8a3105saddlebrown | #e25108orangered |
| Destructive foreground | #fdd7c4peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b1eba2palegreen | #b1eba2palegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 8.09:1 | AAA |
| Accent | 7.29:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 10.40:1 | AAA |
| Accent | 7.29:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Exposition in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.165 0.041 137.716);
--muted: oklch(0.969 0.01 120.212);
--muted-foreground: oklch(0.407 0.023 120.998);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.165 0.041 137.716);
--card: oklch(1 0 180);
--card-foreground: oklch(0.165 0.041 137.716);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.883 0.114 139.453);
--primary-foreground: oklch(0.369 0.103 140.056);
--secondary: oklch(0.908 0.097 121.921);
--secondary-foreground: oklch(0.387 0.086 124.944);
--accent: oklch(0.88 0.101 153.419);
--accent-foreground: oklch(0.367 0.092 149.084);
--destructive: oklch(0.437 0.13 41.29);
--destructive-foreground: oklch(0.906 0.05 48.15);
--ring: oklch(0.883 0.114 139.453);
--chart-1: oklch(0.883 0.114 139.453);
--chart-2: oklch(0.908 0.097 121.921);
--chart-3: oklch(0.88 0.101 153.419);
--chart-4: oklch(0.92 0.084 121.631);
--chart-5: oklch(0.886 0.119 139.457);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.018 137.631);
--foreground: oklch(0.98 0.007 139.442);
--muted: oklch(0.17 0.015 121.543);
--muted-foreground: oklch(0.804 0.02 120.448);
--popover: oklch(0.099 0.018 137.631);
--popover-foreground: oklch(0.98 0.007 139.442);
--card: oklch(0.099 0.018 137.631);
--card-foreground: oklch(0.98 0.007 139.442);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.883 0.114 139.453);
--primary-foreground: oklch(0.369 0.103 140.056);
--secondary: oklch(0.908 0.097 121.921);
--secondary-foreground: oklch(0.387 0.086 124.944);
--accent: oklch(0.88 0.101 153.419);
--accent-foreground: oklch(0.367 0.092 149.084);
--destructive: oklch(0.625 0.193 40.089);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.883 0.114 139.453);
--chart-1: oklch(0.883 0.114 139.453);
--chart-2: oklch(0.908 0.097 121.921);
--chart-3: oklch(0.88 0.101 153.419);
--chart-4: oklch(0.92 0.084 121.631);
--chart-5: oklch(0.886 0.119 139.457);
}