Sunset is a shadcn/ui theme built around a near-black primary color (#070802) with near-black accents (#040802). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the near-black primary (#070802) on a green-tinted background (#090b05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #090b05black |
| Foreground | #0f1202black | #ffffffwhite |
| Card | #fbfcf8snow | #0d0e06black |
| Card foreground | #0b0e02black | #ffffffwhite |
| Popover | #fdfdfcwhite | #090b05black |
| Popover foreground | #0f1202black | #ffffffwhite |
| Primary | #070802black | #070802black |
| Primary foreground | #8ea630yellowgreen | #8ea630yellowgreen |
| Secondary | #080602black | #080602black |
| Secondary foreground | #d3b369darkkhaki | #d3b369darkkhaki |
| Muted | #f3f1eclinen | #13110cblack |
| Muted foreground | #494846darkslategray | #b9b8b6silver |
| Accent | #040802black | #040802black |
| Accent foreground | #54a630olivedrab | #54a630olivedrab |
| Destructive | #8f390asaddlebrown | #e55a10chocolate |
| Destructive foreground | #fcdfcfbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #070802black | #070802black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.65:1 | AAA |
| Text on card | 18.86:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 10.03:1 | AAA |
| Muted text | 8.09:1 | AAA |
| Accent | 6.60:1 | AA |
| Destructive | 6.03:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 10.03:1 | AAA |
| Muted text | 9.54:1 | AAA |
| Accent | 6.60:1 | AA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Sunset in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 115.621);
--foreground: oklch(0.174 0.034 118.043);
--muted: oklch(0.959 0.007 87.456);
--muted-foreground: oklch(0.402 0.003 87.464);
--popover: oklch(0.994 0.002 115.621);
--popover-foreground: oklch(0.174 0.034 118.043);
--card: oklch(0.988 0.005 115.664);
--card-foreground: oklch(0.155 0.029 117.065);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.129 0.018 116.125);
--primary-foreground: oklch(0.685 0.143 120.205);
--secondary: oklch(0.124 0.014 92.887);
--secondary-foreground: oklch(0.78 0.101 86.866);
--accent: oklch(0.125 0.021 134.414);
--accent-foreground: oklch(0.649 0.172 137.956);
--destructive: oklch(0.457 0.129 43.195);
--destructive-foreground: oklch(0.923 0.038 50.156);
--ring: oklch(0.129 0.018 116.125);
--chart-1: oklch(0.129 0.018 116.125);
--chart-2: oklch(0.124 0.014 92.887);
--chart-3: oklch(0.125 0.021 134.414);
--chart-4: oklch(0.173 0.021 88.394);
--chart-5: oklch(0.13 0.019 116.148);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.015 116.034);
--foreground: oklch(1 0 180);
--muted: oklch(0.177 0.01 87.567);
--muted-foreground: oklch(0.783 0.003 87.44);
--popover: oklch(0.144 0.015 116.034);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.16 0.017 117.017);
--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.129 0.018 116.125);
--primary-foreground: oklch(0.685 0.143 120.205);
--secondary: oklch(0.124 0.014 92.887);
--secondary-foreground: oklch(0.78 0.101 86.866);
--accent: oklch(0.125 0.021 134.414);
--accent-foreground: oklch(0.649 0.172 137.956);
--destructive: oklch(0.641 0.187 42.274);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.129 0.018 116.125);
--chart-1: oklch(0.129 0.018 116.125);
--chart-2: oklch(0.124 0.014 92.887);
--chart-3: oklch(0.125 0.021 134.414);
--chart-4: oklch(0.173 0.021 88.394);
--chart-5: oklch(0.13 0.019 116.148);
}