Popcorn is a shadcn/ui theme built around a green primary color (#a2e13d) with violet accents (#7c3de1). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#a2e13d) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #030302black |
| Foreground | #060802black | #ffffffwhite |
| Card | #fafcf8snow | #050703black |
| Card foreground | #030401black | #ffffffwhite |
| Popover | #fafcf8snow | #050703black |
| Popover foreground | #030401black | #ffffffwhite |
| Primary | #a2e13dyellowgreen | #a2e13dyellowgreen |
| Primary foreground | #30470bdarkgreen | #30470bdarkgreen |
| Secondary | #7c3de1blueviolet | #7c3de1blueviolet |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e4deedlavender | #181221black |
| Muted foreground | #59585adimgray | #a6a5a7darkgray |
| Accent | #7c3de1blueviolet | #7c3de1blueviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c34d09chocolate | #ea5d0bchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a2e13dyellowgreen | #a2e13dyellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 6.56:1 | AA |
| Secondary button | 5.83:1 | AA |
| Muted text | 5.36:1 | AA |
| Accent | 5.83:1 | AA |
| Destructive | 4.78:1 | AA |
| Text on background | 20.61:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.56:1 | AA |
| Secondary button | 5.83:1 | AA |
| Muted text | 7.48:1 | AAA |
| Accent | 5.83:1 | AA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Popcorn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 123.683);
--foreground: oklch(0.129 0.02 122.991);
--muted: oklch(0.909 0.022 303.278);
--muted-foreground: oklch(0.463 0.003 303.544);
--popover: oklch(0.989 0.006 123.728);
--popover-foreground: oklch(0.102 0.016 122.991);
--card: oklch(0.989 0.006 123.728);
--card-foreground: oklch(0.102 0.016 122.991);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.837 0.198 128.61);
--primary-foreground: oklch(0.364 0.087 128.802);
--secondary: oklch(0.534 0.231 294.763);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.534 0.231 294.763);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.57 0.165 43.109);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.837 0.198 128.61);
--chart-1: oklch(0.837 0.198 128.61);
--chart-2: oklch(0.534 0.231 294.763);
--chart-3: oklch(0.534 0.231 294.763);
--chart-4: oklch(0.561 0.219 296.171);
--chart-5: oklch(0.845 0.203 128.806);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.009 123.265);
--foreground: oklch(1 0 180);
--muted: oklch(0.196 0.032 301.119);
--muted-foreground: oklch(0.723 0.003 303.585);
--popover: oklch(0.123 0.011 123.265);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.011 123.265);
--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.837 0.198 128.61);
--primary-foreground: oklch(0.364 0.087 128.802);
--secondary: oklch(0.534 0.231 294.763);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.534 0.231 294.763);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.652 0.19 42.744);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.837 0.198 128.61);
--chart-1: oklch(0.837 0.198 128.61);
--chart-2: oklch(0.534 0.231 294.763);
--chart-3: oklch(0.534 0.231 294.763);
--chart-4: oklch(0.561 0.219 296.171);
--chart-5: oklch(0.845 0.203 128.806);
}