Midnight Edition Ocelot is a shadcn/ui theme built around a deep blue primary color (#111722) with deep indigo accents (#131122). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the deep blue primary (#111722) on a blue-tinted background (#04070b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #04070bblack |
| Foreground | #060b14black | #f8fafbghostwhite |
| Card | #f8f9fcghostwhite | #05090fblack |
| Card foreground | #050910black | #fcfcfdwhite |
| Popover | #fbfcfewhite | #04070bblack |
| Popover foreground | #060b14black | #f8fafbghostwhite |
| Primary | #111722black | #111722black |
| Primary foreground | #98accdlightsteelblue | #98accdlightsteelblue |
| Secondary | #112022black | #112022black |
| Secondary foreground | #98c7cdlightsteelblue | #98c7cdlightsteelblue |
| Muted | #e3ecedlavender | #121b1cblack |
| Muted foreground | #626464dimgray | #9b9c9ddarkgray |
| Accent | #131122black | #112022black |
| Accent foreground | #9e98cddarkgray | #9e98cddarkgray |
| Destructive | #75180amaroon | #d32c12firebrick |
| Destructive foreground | #f9c1b9lightpink | #ffffffwhite |
| Border | #eff0f0whitesmoke | #5dcecemediumturquoise |
| Input | #eff0f0whitesmoke | #202122black |
| Ring | #111722black | #111722black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.22:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 9.05:1 | AAA |
| Muted text | 4.96:1 | AA |
| Accent | 6.93:1 | AA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 9.05:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 6.24:1 | AA |
| Destructive | 5.06:1 | AA |
Paste this into your globals.css to use Midnight Edition Ocelot in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 259.936);
--foreground: oklch(0.149 0.02 257.465);
--muted: oklch(0.937 0.01 206.378);
--muted-foreground: oklch(0.502 0.002 206.414);
--popover: oklch(0.991 0.002 259.936);
--popover-foreground: oklch(0.149 0.02 257.465);
--card: oklch(0.983 0.004 259.939);
--card-foreground: oklch(0.138 0.017 254.887);
--border: oklch(0.954 0.001 259.935);
--input: oklch(0.954 0.001 259.935);
--primary: oklch(0.205 0.024 259.738);
--primary-foreground: oklch(0.741 0.053 259.873);
--secondary: oklch(0.232 0.022 206.407);
--secondary-foreground: oklch(0.798 0.05 206.262);
--accent: oklch(0.188 0.036 287.803);
--accent-foreground: oklch(0.704 0.078 289.584);
--destructive: oklch(0.371 0.129 31.643);
--destructive-foreground: oklch(0.859 0.065 28.516);
--ring: oklch(0.205 0.024 259.738);
--chart-1: oklch(0.205 0.024 259.738);
--chart-2: oklch(0.232 0.022 206.407);
--chart-3: oklch(0.188 0.036 287.803);
--chart-4: oklch(0.269 0.027 206.467);
--chart-5: oklch(0.204 0.027 259.705);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.014 253.02);
--foreground: oklch(0.983 0.003 259.937);
--muted: oklch(0.214 0.014 206.264);
--muted-foreground: oklch(0.692 0.002 206.422);
--popover: oklch(0.125 0.014 253.02);
--popover-foreground: oklch(0.983 0.003 259.937);
--card: oklch(0.138 0.016 255.251);
--card-foreground: oklch(0.992 0.001 259.935);
--border: oklch(0.787 0.102 195.273);
--input: oklch(0.247 0.003 259.945);
--primary: oklch(0.205 0.024 259.738);
--primary-foreground: oklch(0.741 0.053 259.873);
--secondary: oklch(0.232 0.022 206.407);
--secondary-foreground: oklch(0.798 0.05 206.262);
--accent: oklch(0.231 0.021 206.479);
--accent-foreground: oklch(0.704 0.078 289.584);
--destructive: oklch(0.564 0.205 31.508);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.205 0.024 259.738);
--chart-1: oklch(0.205 0.024 259.738);
--chart-2: oklch(0.232 0.022 206.407);
--chart-3: oklch(0.231 0.021 206.479);
--chart-4: oklch(0.269 0.027 206.467);
--chart-5: oklch(0.204 0.027 259.705);
}