Serendipity Midnight Minimal is a shadcn/ui theme built around a vivid blue primary color (#7aabff) with deep blue accents (#233148). The light mode uses a blue-tinted background (#0a0e15). Dark mode keeps the vivid blue primary (#7aabff) on a blue-tinted background (#0a0e15).
| Token | Light | Dark |
|---|---|---|
| Background | #0a0e15black | #0a0e15black |
| Foreground | #abb8d8lightsteelblue | #abb8d8lightsteelblue |
| Card | #07090eblack | #07090eblack |
| Card foreground | #bdc7e0lightsteelblue | #bdc7e0lightsteelblue |
| Popover | #05070ablack | #05070ablack |
| Popover foreground | #ced6e9gainsboro | #ced6e9gainsboro |
| Primary | #7aabffcornflowerblue | #7aabffcornflowerblue |
| Primary foreground | #001a47midnightblue | #001a47midnightblue |
| Secondary | #2d3b53darkslategray | #2d3b53darkslategray |
| Secondary foreground | #cdd6e4gainsboro | #cdd6e4gainsboro |
| Muted | #22252bdarkslategray | #22252bdarkslategray |
| Muted foreground | #9ba3b0darkgray | #9ba3b0darkgray |
| Accent | #233148darkslategray | #233148darkslategray |
| Accent foreground | #becae0lightsteelblue | #becae0lightsteelblue |
| Destructive | #f91b0bred | #f91b0bred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #151a23black | #151a23black |
| Input | #1b212ddarkslategray | #1b212ddarkslategray |
| Ring | #7aabffcornflowerblue | #7aabffcornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.74:1 | AAA |
| Text on card | 11.76:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 6.04:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 4.05:1 | AA Large |
| Text on background | 9.74:1 | AAA |
| Text on card | 11.76:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 6.04:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Serendipity Midnight Minimal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.162 0.016 261.245);
--foreground: oklch(0.783 0.048 268.247);
--muted: oklch(0.264 0.012 261.439);
--muted-foreground: oklch(0.713 0.022 261.478);
--popover: oklch(0.127 0.01 256.714);
--popover-foreground: oklch(0.875 0.027 268.545);
--card: oklch(0.14 0.011 258.455);
--card-foreground: oklch(0.829 0.038 268.412);
--border: oklch(0.218 0.019 261.274);
--input: oklch(0.248 0.024 261.241);
--primary: oklch(0.742 0.133 260.832);
--primary-foreground: oklch(0.233 0.091 259.207);
--secondary: oklch(0.35 0.046 261.059);
--secondary-foreground: oklch(0.873 0.022 261.488);
--accent: oklch(0.311 0.047 260.969);
--accent-foreground: oklch(0.836 0.033 261.455);
--destructive: oklch(0.623 0.246 29.754);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.742 0.133 260.832);
--chart-1: oklch(0.742 0.133 260.832);
--chart-2: oklch(0.35 0.046 261.059);
--chart-3: oklch(0.311 0.047 260.969);
--chart-4: oklch(0.377 0.051 261.045);
--chart-5: oklch(0.741 0.137 260.806);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.162 0.016 261.245);
--foreground: oklch(0.783 0.048 268.247);
--muted: oklch(0.264 0.012 261.439);
--muted-foreground: oklch(0.713 0.022 261.478);
--popover: oklch(0.127 0.01 256.714);
--popover-foreground: oklch(0.875 0.027 268.545);
--card: oklch(0.14 0.011 258.455);
--card-foreground: oklch(0.829 0.038 268.412);
--border: oklch(0.218 0.019 261.274);
--input: oklch(0.248 0.024 261.241);
--primary: oklch(0.742 0.133 260.832);
--primary-foreground: oklch(0.233 0.091 259.207);
--secondary: oklch(0.35 0.046 261.059);
--secondary-foreground: oklch(0.873 0.022 261.488);
--accent: oklch(0.311 0.047 260.969);
--accent-foreground: oklch(0.836 0.033 261.455);
--destructive: oklch(0.623 0.246 29.754);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.742 0.133 260.832);
--chart-1: oklch(0.742 0.133 260.832);
--chart-2: oklch(0.35 0.046 261.059);
--chart-3: oklch(0.311 0.047 260.969);
--chart-4: oklch(0.377 0.051 261.045);
--chart-5: oklch(0.741 0.137 260.806);
}