Bleak is a shadcn/ui theme built around a violet primary color (#8433e1) with green accents (#33e184). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#8433e1) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050307black |
| Foreground | #0c0613black | #ffffffwhite |
| Card | #fcfcfcsnow | #07050ablack |
| Card foreground | #0a050fblack | #ffffffwhite |
| Popover | #ffffffwhite | #050307black |
| Popover foreground | #0c0613black | #ffffffwhite |
| Primary | #8433e1blueviolet | #8433e1blueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e18433peru | #e18433peru |
| Secondary foreground | #000000black | #000000black |
| Muted | #f1eae4linen | #1b140eblack |
| Muted foreground | #6a635cdimgray | #a39b95darkgray |
| Accent | #33e184mediumseagreen | #33e184mediumseagreen |
| Accent foreground | #093e22darkgreen | #093e22darkgreen |
| Destructive | #da160bred | #e9170cred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8433e1blueviolet | #8433e1blueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.97:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 5.94:1 | AA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 4.96:1 | AA |
| Accent | 7.07:1 | AAA |
| Destructive | 5.12:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 5.94:1 | AA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 6.66:1 | AA |
| Accent | 7.07:1 | AAA |
| Destructive | 4.58:1 | AA |
Paste this into your globals.css to use Bleak in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.142 0.03 305.349);
--muted: oklch(0.941 0.011 63.944);
--muted-foreground: oklch(0.505 0.014 63.732);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.142 0.03 305.349);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.131 0.026 306.805);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.532 0.241 298.873);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.7 0.146 57.496);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.803 0.189 153.987);
--accent-foreground: oklch(0.323 0.073 154.598);
--destructive: oklch(0.564 0.223 29.473);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.532 0.241 298.873);
--chart-1: oklch(0.532 0.241 298.873);
--chart-2: oklch(0.7 0.146 57.496);
--chart-3: oklch(0.803 0.189 153.987);
--chart-4: oklch(0.717 0.138 58.741);
--chart-5: oklch(0.532 0.248 298.367);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.013 307.907);
--foreground: oklch(1 0 180);
--muted: oklch(0.198 0.016 62.895);
--muted-foreground: oklch(0.694 0.013 63.853);
--popover: oklch(0.108 0.013 307.907);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.015 307.907);
--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.532 0.241 298.873);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.7 0.146 57.496);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.803 0.189 153.987);
--accent-foreground: oklch(0.323 0.073 154.598);
--destructive: oklch(0.592 0.234 29.481);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.532 0.241 298.873);
--chart-1: oklch(0.532 0.241 298.873);
--chart-2: oklch(0.7 0.146 57.496);
--chart-3: oklch(0.803 0.189 153.987);
--chart-4: oklch(0.717 0.138 58.741);
--chart-5: oklch(0.532 0.248 298.367);
}