Clear-cut is a shadcn/ui theme built around a pink primary color (#cc2478) with blue accents (#2478cc). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the pink primary (#cc2478) on a neutral background (#080305).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fasnow | #080305black |
| Foreground | #0c0308black | #f9f5f7whitesmoke |
| Card | #fcf8fasnow | #080305black |
| Card foreground | #0c0308black | #f9f5f7whitesmoke |
| Popover | #fcf8fasnow | #080305black |
| Popover foreground | #0c0308black | #f9f5f7whitesmoke |
| Primary | #cc2478mediumvioletred | #cc2478mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #78cc24yellowgreen | #78cc24yellowgreen |
| Secondary foreground | #121e05black | #121e05black |
| Muted | #f2f7edwhitesmoke | #0d1208black |
| Muted foreground | #57644adarkolivegreen | #a8b59bdarkgray |
| Accent | #2478ccroyalblue | #2478ccroyalblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #680a03maroon | #f82616orangered |
| Destructive foreground | #fca7a1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cc2478mediumvioletred | #cc2478mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 5.14:1 | AA |
| Secondary button | 8.59:1 | AAA |
| Muted text | 5.80:1 | AA |
| Accent | 4.54:1 | AA |
| Destructive | 6.85:1 | AA |
| Text on background | 18.98:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 5.14:1 | AA |
| Secondary button | 8.59:1 | AAA |
| Muted text | 8.82:1 | AAA |
| Accent | 4.54:1 | AA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Clear-cut in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 345.266);
--foreground: oklch(0.121 0.025 345.283);
--muted: oklch(0.97 0.014 128.619);
--muted-foreground: oklch(0.483 0.043 129.516);
--popover: oklch(0.983 0.005 345.266);
--popover-foreground: oklch(0.121 0.025 345.283);
--card: oklch(0.983 0.005 345.266);
--card-foreground: oklch(0.121 0.025 345.283);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.564 0.209 356.734);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.762 0.206 133.664);
--secondary-foreground: oklch(0.218 0.048 131.247);
--accent: oklch(0.567 0.151 252.457);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.331 0.127 30.182);
--destructive-foreground: oklch(0.81 0.102 24.033);
--ring: oklch(0.564 0.209 356.734);
--chart-1: oklch(0.564 0.209 356.734);
--chart-2: oklch(0.762 0.206 133.664);
--chart-3: oklch(0.567 0.151 252.457);
--chart-4: oklch(0.798 0.216 133.699);
--chart-5: oklch(0.568 0.215 357.298);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.018 344.982);
--foreground: oklch(0.975 0.005 345.282);
--muted: oklch(0.172 0.021 129.687);
--muted-foreground: oklch(0.757 0.039 129.051);
--popover: oklch(0.108 0.018 344.982);
--popover-foreground: oklch(0.975 0.005 345.282);
--card: oklch(0.108 0.018 344.982);
--card-foreground: oklch(0.975 0.005 345.282);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.564 0.209 356.734);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.762 0.206 133.664);
--secondary-foreground: oklch(0.218 0.048 131.247);
--accent: oklch(0.567 0.151 252.457);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.626 0.241 29.705);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.564 0.209 356.734);
--chart-1: oklch(0.564 0.209 356.734);
--chart-2: oklch(0.762 0.206 133.664);
--chart-3: oklch(0.567 0.151 252.457);
--chart-4: oklch(0.798 0.216 133.699);
--chart-5: oklch(0.568 0.215 357.298);
}