Specific Nightfall in Suburbia is a shadcn/ui theme built around a vivid indigo primary color (#2515d5) with vivid violet accents (#8515d5). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid indigo primary (#2515d5) on an indigo-tinted background (#07060e).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #07060eblack |
| Foreground | #010105black | #fcfcfdwhite |
| Card | #fcfbfewhite | #07060eblack |
| Card foreground | #010105black | #fcfcfdwhite |
| Popover | #fcfbfewhite | #07060eblack |
| Popover foreground | #010105black | #fcfcfdwhite |
| Primary | #2515d5mediumblue | #2515d5mediumblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1565d5royalblue | #1565d5royalblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eef2f7whitesmoke | #080c11black |
| Muted foreground | #3d3f42darkslategray | #bdbfc2silver |
| Accent | #8515d5darkviolet | #8515d5darkviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #903e0esaddlebrown | #ea702achocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #ebebeflavender | #201f28black |
| Input | #ebebeflavender | #201f28black |
| Ring | #2515d5mediumblue | #2515d5mediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 9.75:1 | AAA |
| Secondary button | 5.42:1 | AA |
| Muted text | 9.36:1 | AAA |
| Accent | 6.82:1 | AA |
| Destructive | 7.30:1 | AAA |
| Text on background | 19.65:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 9.75:1 | AAA |
| Secondary button | 5.42:1 | AA |
| Muted text | 10.63:1 | AAA |
| Accent | 6.82:1 | AA |
| Destructive | 6.84:1 | AA |
Paste this into your globals.css to use Specific Nightfall in Suburbia in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 290.193);
--foreground: oklch(0.067 0.025 284.495);
--muted: oklch(0.958 0.008 256.685);
--muted-foreground: oklch(0.368 0.006 256.711);
--popover: oklch(0.99 0.003 290.193);
--popover-foreground: oklch(0.067 0.025 284.495);
--card: oklch(0.99 0.003 290.193);
--card-foreground: oklch(0.067 0.025 284.495);
--border: oklch(0.941 0.006 290.122);
--input: oklch(0.941 0.006 290.122);
--primary: oklch(0.416 0.26 269.517);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.53 0.188 258.755);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.504 0.252 303.579);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.466 0.124 45.297);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.416 0.26 269.517);
--chart-1: oklch(0.416 0.26 269.517);
--chart-2: oklch(0.53 0.188 258.755);
--chart-3: oklch(0.504 0.252 303.579);
--chart-4: oklch(0.555 0.198 258.795);
--chart-5: oklch(0.417 0.266 268.734);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.019 287.996);
--foreground: oklch(0.99 0.002 290.199);
--muted: oklch(0.153 0.013 256.265);
--muted-foreground: oklch(0.803 0.005 256.676);
--popover: oklch(0.129 0.019 287.996);
--popover-foreground: oklch(0.99 0.002 290.199);
--card: oklch(0.129 0.019 287.996);
--card-foreground: oklch(0.99 0.002 290.199);
--border: oklch(0.245 0.018 288.849);
--input: oklch(0.245 0.018 288.849);
--primary: oklch(0.416 0.26 269.517);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.53 0.188 258.755);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.504 0.252 303.579);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.68 0.17 46.496);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.416 0.26 269.517);
--chart-1: oklch(0.416 0.26 269.517);
--chart-2: oklch(0.53 0.188 258.755);
--chart-3: oklch(0.504 0.252 303.579);
--chart-4: oklch(0.555 0.198 258.795);
--chart-5: oklch(0.417 0.266 268.734);
}