Ephemera is a shadcn/ui theme built around a green primary color (#25b148) with orange accents (#b14825). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#25b148) on a neutral background (#020402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020402black |
| Foreground | #010402black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #030704black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030704black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #25b148limegreen | #25b148limegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4825b1rebeccapurple | #4825b1rebeccapurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eeecf4whitesmoke | #0d0b13black |
| Muted foreground | #595661dimgray | #a09ea9darkgray |
| Accent | #b14825sienna | #b14825sienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b43b13firebrick | #eb693dtomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #25b148limegreen | #25b148limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 2.82:1 | Fail |
| Secondary button | 9.62:1 | AAA |
| Muted text | 6.10:1 | AA |
| Accent | 5.49:1 | AA |
| Destructive | 5.86:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 2.82:1 | Fail |
| Secondary button | 9.62:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 5.49:1 | AA |
| Destructive | 6.58:1 | AA |
Paste this into your globals.css to use Ephemera in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.099 0.02 153.022);
--muted: oklch(0.946 0.011 297.614);
--muted-foreground: oklch(0.461 0.018 297.13);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.666 0.185 146.924);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.412 0.202 284.762);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.536 0.145 38.266);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.523 0.164 36.962);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.666 0.185 146.924);
--chart-1: oklch(0.666 0.185 146.924);
--chart-2: oklch(0.412 0.202 284.762);
--chart-3: oklch(0.536 0.145 38.266);
--chart-4: oklch(0.433 0.213 284.609);
--chart-5: oklch(0.674 0.191 146.672);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.012 153.387);
--foreground: oklch(0.993 0.001 153.854);
--muted: oklch(0.157 0.018 295.781);
--muted-foreground: oklch(0.704 0.016 297.417);
--popover: oklch(0.121 0.014 153.387);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.014 153.387);
--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.666 0.185 146.924);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.412 0.202 284.762);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.536 0.145 38.266);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.672 0.172 38.526);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.666 0.185 146.924);
--chart-1: oklch(0.666 0.185 146.924);
--chart-2: oklch(0.412 0.202 284.762);
--chart-3: oklch(0.536 0.145 38.266);
--chart-4: oklch(0.433 0.213 284.609);
--chart-5: oklch(0.674 0.191 146.672);
}