Destiny is a shadcn/ui theme built around a near-black primary color (#030407) with near-black accents (#070603). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the near-black primary (#030407) on a blue-tinted background (#04050b).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f7fdghostwhite | #04050bblack |
| Foreground | #02030eblack | #fcfcfdwhite |
| Card | #f2f4fcaliceblue | #05070fblack |
| Card foreground | #010209black | #ffffffwhite |
| Popover | #f2f4fcaliceblue | #05070fblack |
| Popover foreground | #010209black | #ffffffwhite |
| Primary | #030407black | #030407black |
| Primary foreground | #c1c5e1lightsteelblue | #c1c5e1lightsteelblue |
| Secondary | #070603black | #070603black |
| Secondary foreground | #c0b77cdarkkhaki | #c0b77cdarkkhaki |
| Muted | #deddd9gainsboro | #262621darkslategray |
| Muted foreground | #484741darkslategray | #bebdb7silver |
| Accent | #070603black | #070603black |
| Accent foreground | #c0b77cdarkkhaki | #c0b77cdarkkhaki |
| Destructive | #6a0801maroon | #fd3426orangered |
| Destructive foreground | #fea59flightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030407black | #030407black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.29:1 | AAA |
| Text on card | 18.84:1 | AAA |
| Primary button | 12.05:1 | AAA |
| Secondary button | 9.92:1 | AAA |
| Muted text | 6.85:1 | AA |
| Accent | 9.92:1 | AAA |
| Destructive | 6.73:1 | AA |
| Text on background | 19.84:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 12.05:1 | AAA |
| Secondary button | 9.92:1 | AAA |
| Muted text | 8.10:1 | AAA |
| Accent | 9.92:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Destiny in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.008 279.222);
--foreground: oklch(0.105 0.03 268.638);
--muted: oklch(0.897 0.006 99.438);
--muted-foreground: oklch(0.398 0.01 99.694);
--popover: oklch(0.968 0.012 279.159);
--popover-foreground: oklch(0.092 0.026 268.49);
--card: oklch(0.968 0.012 279.159);
--card-foreground: oklch(0.092 0.026 268.49);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.106 0.011 275.953);
--primary-foreground: oklch(0.83 0.039 278.586);
--secondary: oklch(0.124 0.01 101.712);
--secondary-foreground: oklch(0.773 0.078 100.525);
--accent: oklch(0.124 0.01 101.712);
--accent-foreground: oklch(0.773 0.078 100.525);
--destructive: oklch(0.334 0.13 30.544);
--destructive-foreground: oklch(0.809 0.106 24.136);
--ring: oklch(0.106 0.011 275.953);
--chart-1: oklch(0.106 0.011 275.953);
--chart-2: oklch(0.124 0.01 101.712);
--chart-3: oklch(0.124 0.01 101.712);
--chart-4: oklch(0.172 0.015 100.519);
--chart-5: oklch(0.105 0.012 275.588);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.017 274.423);
--foreground: oklch(0.991 0.001 279.319);
--muted: oklch(0.266 0.008 99.761);
--muted-foreground: oklch(0.796 0.008 99.494);
--popover: oklch(0.13 0.02 274.784);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.13 0.02 274.784);
--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.106 0.011 275.953);
--primary-foreground: oklch(0.83 0.039 278.586);
--secondary: oklch(0.124 0.01 101.712);
--secondary-foreground: oklch(0.773 0.078 100.525);
--accent: oklch(0.124 0.01 101.712);
--accent-foreground: oklch(0.773 0.078 100.525);
--destructive: oklch(0.645 0.236 29.411);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.106 0.011 275.953);
--chart-1: oklch(0.106 0.011 275.953);
--chart-2: oklch(0.124 0.01 101.712);
--chart-3: oklch(0.124 0.01 101.712);
--chart-4: oklch(0.172 0.015 100.519);
--chart-5: oklch(0.105 0.012 275.588);
}