Emitter is a shadcn/ui theme built around a vivid yellow primary color (#ebd214) with vivid purple accents (#d214eb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#ebd214) on a yellow-tinted background (#0d0d07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d0d07black |
| Foreground | #040401black | #faf9f5whitesmoke |
| Card | #ffffffwhite | #0d0d07black |
| Card foreground | #040401black | #faf9f5whitesmoke |
| Popover | #ffffffwhite | #0d0d07black |
| Popover foreground | #040401black | #faf9f5whitesmoke |
| Primary | #ebd214gold | #ebd214gold |
| Primary foreground | #2f2a04black | #2f2a04black |
| Secondary | #14ebd2darkturquoise | #14ebd2darkturquoise |
| Secondary foreground | #042f2ablack | #042f2ablack |
| Muted | #ecf4f3whitesmoke | #0b1312black |
| Muted foreground | #526f6cdimgray | #90ada9darkgray |
| Accent | #d214ebmagenta | #d214ebmagenta |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #670d0amaroon | #ed413btomato |
| Destructive foreground | #f7aeablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ebd214gold | #ebd214gold |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 9.42:1 | AAA |
| Secondary button | 9.54:1 | AAA |
| Muted text | 4.87:1 | AA |
| Accent | 4.17:1 | AA Large |
| Destructive | 7.10:1 | AAA |
| Text on background | 18.51:1 | AAA |
| Text on card | 18.51:1 | AAA |
| Primary button | 9.42:1 | AAA |
| Secondary button | 9.54:1 | AAA |
| Muted text | 7.80:1 | AAA |
| Accent | 4.17:1 | AA Large |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Emitter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.101 0.012 103.42);
--muted: oklch(0.96 0.009 188.69);
--muted-foreground: oklch(0.519 0.034 187.268);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.101 0.012 103.42);
--card: oklch(1 0 180);
--card-foreground: oklch(0.101 0.012 103.42);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.857 0.176 100.429);
--primary-foreground: oklch(0.282 0.054 101.672);
--secondary: oklch(0.843 0.15 181.357);
--secondary-foreground: oklch(0.275 0.046 183.318);
--accent: oklch(0.625 0.289 322.16);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.331 0.123 28.442);
--destructive-foreground: oklch(0.819 0.087 21.34);
--ring: oklch(0.857 0.176 100.429);
--chart-1: oklch(0.857 0.176 100.429);
--chart-2: oklch(0.843 0.15 181.357);
--chart-3: oklch(0.625 0.289 322.16);
--chart-4: oklch(0.848 0.148 182.038);
--chart-5: oklch(0.867 0.178 100.271);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.012 101.689);
--foreground: oklch(0.982 0.005 100.414);
--muted: oklch(0.18 0.013 187.155);
--muted-foreground: oklch(0.724 0.032 187.821);
--popover: oklch(0.156 0.012 101.689);
--popover-foreground: oklch(0.982 0.005 100.414);
--card: oklch(0.156 0.012 101.689);
--card-foreground: oklch(0.982 0.005 100.414);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.857 0.176 100.429);
--primary-foreground: oklch(0.282 0.054 101.672);
--secondary: oklch(0.843 0.15 181.357);
--secondary-foreground: oklch(0.275 0.046 183.318);
--accent: oklch(0.625 0.289 322.16);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.629 0.209 27.134);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.176 100.429);
--chart-1: oklch(0.857 0.176 100.429);
--chart-2: oklch(0.843 0.15 181.357);
--chart-3: oklch(0.625 0.289 322.16);
--chart-4: oklch(0.848 0.148 182.038);
--chart-5: oklch(0.867 0.178 100.271);
}