Deadline is a shadcn/ui theme built around a deep purple primary color (#4f2141) with muted light purple accents (#eee7ec). The light mode uses a neutral background (#fefbfd). Dark mode keeps the deep purple primary (#4f2141) on a purple-tinted background (#0e060c).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0e060cblack |
| Foreground | #10050cblack | #f9f6f8whitesmoke |
| Card | #fdf7fbsnow | #12080fblack |
| Card foreground | #0c0309black | #fbf9fasnow |
| Popover | #fdf7fbsnow | #12080fblack |
| Popover foreground | #0c0309black | #fbf9fasnow |
| Primary | #4f2141darkslategray | #4f2141darkslategray |
| Primary foreground | #e4bed9thistle | #e4bed9thistle |
| Secondary | #eee7eclinen | #20181eblack |
| Secondary foreground | #5f4557dimgray | #c0aab9silver |
| Muted | #e6e0e4gainsboro | #1f191dblack |
| Muted foreground | #51484edarkslategray | #b7aeb4darkgray |
| Accent | #eee7eclinen | #20181eblack |
| Accent foreground | #5f4557dimgray | #c0aab9silver |
| Destructive | #843206saddlebrown | #f77d3bcoral |
| Destructive foreground | #fcd5bfpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4f2141darkslategray | #4f2141darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.45:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 6.76:1 | AA |
| Accent | 6.99:1 | AA |
| Destructive | 6.31:1 | AA |
| Text on background | 18.61:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 8.00:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 7.93:1 | AAA |
Paste this into your globals.css to use Deadline in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 335.956);
--foreground: oklch(0.137 0.029 338.069);
--muted: oklch(0.912 0.009 336.05);
--muted-foreground: oklch(0.413 0.016 336.584);
--popover: oklch(0.981 0.009 336.046);
--popover-foreground: oklch(0.123 0.025 336.687);
--card: oklch(0.981 0.009 336.046);
--card-foreground: oklch(0.123 0.025 336.687);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.326 0.082 340.281);
--primary-foreground: oklch(0.843 0.055 337.053);
--secondary: oklch(0.935 0.009 336.054);
--secondary-foreground: oklch(0.424 0.045 337.77);
--accent: oklch(0.935 0.009 336.054);
--accent-foreground: oklch(0.424 0.045 337.77);
--destructive: oklch(0.429 0.124 42.736);
--destructive-foreground: oklch(0.9 0.053 49.959);
--ring: oklch(0.326 0.082 340.281);
--chart-1: oklch(0.326 0.082 340.281);
--chart-2: oklch(0.935 0.009 336.054);
--chart-3: oklch(0.935 0.009 336.054);
--chart-4: oklch(0.96 0.006 335.981);
--chart-5: oklch(0.327 0.088 340.584);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.02 337.52);
--foreground: oklch(0.975 0.005 335.968);
--muted: oklch(0.222 0.013 336.9);
--muted-foreground: oklch(0.76 0.014 336.206);
--popover: oklch(0.151 0.023 338.309);
--popover-foreground: oklch(0.983 0.003 335.934);
--card: oklch(0.151 0.023 338.309);
--card-foreground: oklch(0.983 0.003 335.934);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.326 0.082 340.281);
--primary-foreground: oklch(0.843 0.055 337.053);
--secondary: oklch(0.221 0.017 337.269);
--secondary-foreground: oklch(0.762 0.033 336.67);
--accent: oklch(0.221 0.017 337.269);
--accent-foreground: oklch(0.762 0.033 336.67);
--destructive: oklch(0.719 0.168 46.232);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.326 0.082 340.281);
--chart-1: oklch(0.326 0.082 340.281);
--chart-2: oklch(0.221 0.017 337.269);
--chart-3: oklch(0.221 0.017 337.269);
--chart-4: oklch(0.252 0.021 337.375);
--chart-5: oklch(0.327 0.088 340.584);
}