Cone is a shadcn/ui theme built around a vivid light green primary color (#e7fbda) with vivid light violet accents (#eedafb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#e7fbda) on a green-tinted background (#090f06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #090f06black |
| Foreground | #000000black | #f7faf4whitesmoke |
| Card | #fcfcfcsnow | #0b1207black |
| Card foreground | #000000black | #f9fcf8mintcream |
| Popover | #fcfcfcsnow | #0b1207black |
| Popover foreground | #000000black | #f9fcf8mintcream |
| Primary | #e7fbdabeige | #e7fbdabeige |
| Primary foreground | #193706darkgreen | #193706darkgreen |
| Secondary | #eedafblavender | #eedafblavender |
| Secondary foreground | #611192indigo | #611192indigo |
| Muted | #dcc9e8thistle | #2a1736midnightblue |
| Muted foreground | #4f4257darkslategray | #b5a8bddarkgray |
| Accent | #eedafblavender | #eedafblavender |
| Accent foreground | #611192indigo | #611192indigo |
| Destructive | #dd0e03red | #f11004red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e7fbdabeige | #e7fbdabeige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 12.05:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 6.05:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 5.07:1 | AA |
| Text on background | 18.43:1 | AAA |
| Text on card | 18.33:1 | AAA |
| Primary button | 12.05:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 7.31:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 4.35:1 | AA Large |
Paste this into your globals.css to use Cone in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.862 0.046 312.621);
--muted-foreground: oklch(0.4 0.039 312.321);
--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.964 0.047 133.332);
--primary-foreground: oklch(0.301 0.081 136.198);
--secondary: oklch(0.916 0.048 312.63);
--secondary-foreground: oklch(0.394 0.188 306.761);
--accent: oklch(0.916 0.048 312.63);
--accent-foreground: oklch(0.394 0.188 306.761);
--destructive: oklch(0.567 0.228 29.6);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.964 0.047 133.332);
--chart-1: oklch(0.964 0.047 133.332);
--chart-2: oklch(0.916 0.048 312.63);
--chart-3: oklch(0.916 0.048 312.63);
--chart-4: oklch(0.947 0.03 312.771);
--chart-5: oklch(0.965 0.049 133.345);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.022 132.66);
--foreground: oklch(0.982 0.009 133.045);
--muted: oklch(0.246 0.061 311.122);
--muted-foreground: oklch(0.749 0.034 312.681);
--popover: oklch(0.173 0.026 133.67);
--popover-foreground: oklch(0.988 0.006 133.025);
--card: oklch(0.173 0.026 133.67);
--card-foreground: oklch(0.988 0.006 133.025);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.964 0.047 133.332);
--primary-foreground: oklch(0.301 0.081 136.198);
--secondary: oklch(0.916 0.048 312.63);
--secondary-foreground: oklch(0.394 0.188 306.761);
--accent: oklch(0.916 0.048 312.63);
--accent-foreground: oklch(0.394 0.188 306.761);
--destructive: oklch(0.605 0.244 29.574);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.964 0.047 133.332);
--chart-1: oklch(0.964 0.047 133.332);
--chart-2: oklch(0.916 0.048 312.63);
--chart-3: oklch(0.916 0.048 312.63);
--chart-4: oklch(0.947 0.03 312.771);
--chart-5: oklch(0.965 0.049 133.345);
}