Cyclamen is a shadcn/ui theme built around a light green primary color (#e2f9e9) with light purple accents (#f9e2f1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#e2f9e9) on a green-tinted background (#040b06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b06black |
| Foreground | #010402black | #f8fbf9mintcream |
| Card | #ffffffwhite | #040b06black |
| Card foreground | #010402black | #f8fbf9mintcream |
| Popover | #ffffffwhite | #040b06black |
| Popover foreground | #010402black | #f8fbf9mintcream |
| Primary | #e2f9e9honeydew | #e2f9e9honeydew |
| Primary foreground | #0c3719darkgreen | #0c3719darkgreen |
| Secondary | #f9e2f1lavenderblush | #f9e2f1lavenderblush |
| Secondary foreground | #8b1d68purple | #8b1d68purple |
| Muted | #f3e8eflinen | #170c14black |
| Muted foreground | #433d41darkslategray | #c2bcc0silver |
| Accent | #f9e2f1lavenderblush | #f9e2f1lavenderblush |
| Accent foreground | #8b1d68purple | #8b1d68purple |
| Destructive | #c22e14firebrick | #d03216firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e2f9e9honeydew | #e2f9e9honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 12.00:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 8.85:1 | AAA |
| Accent | 6.92:1 | AA |
| Destructive | 5.68:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 12.00:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 10.20:1 | AAA |
| Accent | 6.92:1 | AA |
| Destructive | 5.07:1 | AA |
Paste this into your globals.css to use Cyclamen in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.099 0.018 156.051);
--muted: oklch(0.941 0.015 336.869);
--muted-foreground: oklch(0.366 0.011 337.153);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.099 0.018 156.051);
--card: oklch(1 0 180);
--card-foreground: oklch(0.099 0.018 156.051);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.96 0.032 155.885);
--primary-foreground: oklch(0.298 0.07 150.098);
--secondary: oklch(0.935 0.033 337.228);
--secondary-foreground: oklch(0.441 0.162 344.065);
--accent: oklch(0.935 0.033 337.228);
--accent-foreground: oklch(0.441 0.162 344.065);
--destructive: oklch(0.535 0.188 32.206);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.96 0.032 155.885);
--chart-1: oklch(0.96 0.032 155.885);
--chart-2: oklch(0.935 0.033 337.228);
--chart-3: oklch(0.935 0.033 337.228);
--chart-4: oklch(0.963 0.019 336.931);
--chart-5: oklch(0.961 0.034 155.854);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.017 156.179);
--foreground: oklch(0.986 0.004 156.475);
--muted: oklch(0.175 0.023 338.948);
--muted-foreground: oklch(0.802 0.009 336.785);
--popover: oklch(0.139 0.017 156.179);
--popover-foreground: oklch(0.986 0.004 156.475);
--card: oklch(0.139 0.017 156.179);
--card-foreground: oklch(0.986 0.004 156.475);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.96 0.032 155.885);
--primary-foreground: oklch(0.298 0.07 150.098);
--secondary: oklch(0.935 0.033 337.228);
--secondary-foreground: oklch(0.441 0.162 344.065);
--accent: oklch(0.935 0.033 337.228);
--accent-foreground: oklch(0.441 0.162 344.065);
--destructive: oklch(0.562 0.198 32.185);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.96 0.032 155.885);
--chart-1: oklch(0.96 0.032 155.885);
--chart-2: oklch(0.935 0.033 337.228);
--chart-3: oklch(0.935 0.033 337.228);
--chart-4: oklch(0.963 0.019 336.931);
--chart-5: oklch(0.961 0.034 155.854);
}