Midnight Bloom
tweakcnApache-2.0Light and dark · bothMedium · mediumBlue · blueVivid · vividSerif · serifGeneral · generalLanding · landingProfessional · professional
A theme based on the Midnight Bloom color palette.
NNorthwind
Product · PricingSpecimen
Make the work feel finished
One interface, dressed in this style. Compare type, color, radius, and density.
128
Active
4.8
Score
12ms
Edge
Attribution
"Midnight Bloom" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/midnight-bloom.json @ a3b47b37cba9.
https://github.com/jnsahaj/tweakcn · r/themes/midnight-bloom.json · a3b47b37cba9 · © jnsahaj
Prompt
Design a user interface in the "Midnight Bloom" style. A theme based on the Midnight Bloom color palette. Apply these tokens to every surface. Do not invent a second palette. - Background oklch(0.9821 0 0), foreground oklch(0.3211 0 0) - Primary oklch(0.5676 0.2021 283.0838) on oklch(1.0000 0 0) - Accent oklch(0.6475 0.0642 117.4260), muted oklch(0.8202 0.0213 91.6163), border oklch(0.8699 0 0) - Radius 0.5rem, type Montserrat, sans-serif - Shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04) "Midnight Bloom" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/midnight-bloom.json @ a3b47b37cba9. powered by Styledex — https://styledex.dev
Tokens
DTCG
{
"$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
"$description": "Midnight Bloom. \"Midnight Bloom\" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/midnight-bloom.json @ a3b47b37cba9.",
"$extensions": {
"dev.styledex": {
"id": "tweakcn-midnight-bloom",
"license": "Apache-2.0",
"attribution": "\"Midnight Bloom\" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/midnight-bloom.json @ a3b47b37cba9.",
"banner": "powered by Styledex — https://styledex.dev"
}
},
"color": {
"background": {
"$type": "color",
"$value": "oklch(0.9821 0 0)"
},
"foreground": {
"$type": "color",
"$value": "oklch(0.3211 0 0)"
},
"card": {
"$type": "color",
"$value": "oklch(1.0000 0 0)"
},
"card-foreground": {
"$type": "color",
"$value": "oklch(0.3211 0 0)"
},
"primary": {
"$type": "color",
"$value": "oklch(0.5676 0.2021 283.0838)"
},
"primary-foreground": {
"$type": "color",
"$value": "oklch(1.0000 0 0)"
},
"secondary": {
"$type": "color",
"$value": "oklch(0.8214 0.0720 249.3482)"
},
"secondary-foreground": {
"$type": "color",
"$value": "oklch(0.3211 0 0)"
},
"accent": {
"$type": "color",
"$value": "oklch(0.6475 0.0642 117.4260)"
},
"accent-foreground": {
"$type": "color",
"$value": "oklch(1.0000 0 0)"
},
"muted": {
"$type": "color",
"$value": "oklch(0.8202 0.0213 91.6163)"
},
"muted-foreground": {
"$type": "color",
"$value": "oklch(0.5382 0 0)"
},
"border": {
"$type": "color",
"$value": "oklch(0.8699 0 0)"
},
"destructive": {
"$type": "color",
"$value": "oklch(0.6368 0.2078 25.3313)"
},
"ring": {
"$type": "color",
"$value": "oklch(0.5676 0.2021 283.0838)"
}
},
"font": {
"sans": {
"$type": "fontFamily",
"$value": [
"Montserrat",
"sans-serif"
]
},
"serif": {
"$type": "fontFamily",
"$value": [
"Playfair Display",
"serif"
]
},
"mono": {
"$type": "fontFamily",
"$value": [
"Source Code Pro",
"monospace"
]
}
},
"radius": {
"base": {
"$type": "dimension",
"$value": "0.5rem"
}
},
"spacing": {
"base": {
"$type": "dimension",
"$value": "0.25rem"
}
},
"shadow": {
"base": {
"$type": "shadow",
"$value": "0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)"
}
},
"dark": {
"color": {
"background": {
"$type": "color",
"$value": "oklch(0.2303 0.0125 264.2926)"
},
"foreground": {
"$type": "color",
"$value": "oklch(0.9219 0 0)"
},
"card": {
"$type": "color",
"$value": "oklch(0.3210 0.0078 223.6661)"
},
"card-foreground": {
"$type": "color",
"$value": "oklch(0.9219 0 0)"
},
"primary": {
"$type": "color",
"$value": "oklch(0.5676 0.2021 283.0838)"
},
"primary-foreground": {
"$type": "color",
"$value": "oklch(1.0000 0 0)"
},
"secondary": {
"$type": "color",
"$value": "oklch(0.3390 0.1793 301.6848)"
},
"secondary-foreground": {
"$type": "color",
"$value": "oklch(0.9219 0 0)"
},
"accent": {
"$type": "color",
"$value": "oklch(0.6746 0.1414 261.3380)"
},
"accent-foreground": {
"$type": "color",
"$value": "oklch(0.9219 0 0)"
},
"muted": {
"$type": "color",
"$value": "oklch(0.3867 0 0)"
},
"muted-foreground": {
"$type": "color",
"$value": "oklch(0.7155 0 0)"
},
"border": {
"$type": "color",
"$value": "oklch(0.3867 0 0)"
},
"destructive": {
"$type": "color",
"$value": "oklch(0.6368 0.2078 25.3313)"
},
"ring": {
"$type": "color",
"$value": "oklch(0.5676 0.2021 283.0838)"
}
}
}
}
CSS
/* powered by Styledex — https://styledex.dev */
/* "Midnight Bloom" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/midnight-bloom.json @ a3b47b37cba9. */
:root {
--background: oklch(0.9821 0 0);
--foreground: oklch(0.3211 0 0);
--card: oklch(1.0000 0 0);
--card-foreground: oklch(0.3211 0 0);
--primary: oklch(0.5676 0.2021 283.0838);
--primary-foreground: oklch(1.0000 0 0);
--secondary: oklch(0.8214 0.0720 249.3482);
--secondary-foreground: oklch(0.3211 0 0);
--accent: oklch(0.6475 0.0642 117.4260);
--accent-foreground: oklch(1.0000 0 0);
--muted: oklch(0.8202 0.0213 91.6163);
--muted-foreground: oklch(0.5382 0 0);
--border: oklch(0.8699 0 0);
--destructive: oklch(0.6368 0.2078 25.3313);
--ring: oklch(0.5676 0.2021 283.0838);
--radius: 0.5rem;
--font-sans: Montserrat, sans-serif;
--font-serif: Playfair Display, serif;
--font-mono: Source Code Pro, monospace;
--spacing: 0.25rem;
--shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}
.dark {
--background: oklch(0.2303 0.0125 264.2926);
--foreground: oklch(0.9219 0 0);
--card: oklch(0.3210 0.0078 223.6661);
--card-foreground: oklch(0.9219 0 0);
--primary: oklch(0.5676 0.2021 283.0838);
--primary-foreground: oklch(1.0000 0 0);
--secondary: oklch(0.3390 0.1793 301.6848);
--secondary-foreground: oklch(0.9219 0 0);
--accent: oklch(0.6746 0.1414 261.3380);
--accent-foreground: oklch(0.9219 0 0);
--muted: oklch(0.3867 0 0);
--muted-foreground: oklch(0.7155 0 0);
--border: oklch(0.3867 0 0);
--destructive: oklch(0.6368 0.2078 25.3313);
--ring: oklch(0.5676 0.2021 283.0838);
--radius: 0.5rem;
--font-sans: Montserrat, sans-serif;
--font-serif: Playfair Display, serif;
--font-mono: Source Code Pro, monospace;
--spacing: 0.25rem;
--shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}
Tailwind
/* powered by Styledex — https://styledex.dev */
/* "Midnight Bloom" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/midnight-bloom.json @ a3b47b37cba9. */
/** Tailwind theme extend for Midnight Bloom (tweakcn-midnight-bloom) */
module.exports = {
"theme": {
"extend": {
"colors": {
"background": "oklch(0.9821 0 0)",
"foreground": "oklch(0.3211 0 0)",
"card": "oklch(1.0000 0 0)",
"primary": "oklch(0.5676 0.2021 283.0838)",
"primary-foreground": "oklch(1.0000 0 0)",
"secondary": "oklch(0.8214 0.0720 249.3482)",
"accent": "oklch(0.6475 0.0642 117.4260)",
"muted": "oklch(0.8202 0.0213 91.6163)",
"border": "oklch(0.8699 0 0)",
"destructive": "oklch(0.6368 0.2078 25.3313)",
"ring": "oklch(0.5676 0.2021 283.0838)"
},
"borderRadius": {
"lg": "0.5rem"
},
"fontFamily": {
"sans": [
"Montserrat",
"sans-serif"
],
"serif": [
"Playfair Display",
"serif"
],
"mono": [
"Source Code Pro",
"monospace"
]
},
"boxShadow": {
"styledex": "0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)"
}
}
}
};
shadcn
/* powered by Styledex — https://styledex.dev */
/* "Midnight Bloom" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/midnight-bloom.json @ a3b47b37cba9. */
@layer base {
:root {
--background: oklch(0.9821 0 0);
--foreground: oklch(0.3211 0 0);
--card: oklch(1.0000 0 0);
--card-foreground: oklch(0.3211 0 0);
--primary: oklch(0.5676 0.2021 283.0838);
--primary-foreground: oklch(1.0000 0 0);
--secondary: oklch(0.8214 0.0720 249.3482);
--secondary-foreground: oklch(0.3211 0 0);
--accent: oklch(0.6475 0.0642 117.4260);
--accent-foreground: oklch(1.0000 0 0);
--muted: oklch(0.8202 0.0213 91.6163);
--muted-foreground: oklch(0.5382 0 0);
--border: oklch(0.8699 0 0);
--destructive: oklch(0.6368 0.2078 25.3313);
--ring: oklch(0.5676 0.2021 283.0838);
--radius: 0.5rem;
--font-sans: Montserrat, sans-serif;
--font-serif: Playfair Display, serif;
--font-mono: Source Code Pro, monospace;
--spacing: 0.25rem;
--shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}
.dark {
--background: oklch(0.2303 0.0125 264.2926);
--foreground: oklch(0.9219 0 0);
--card: oklch(0.3210 0.0078 223.6661);
--card-foreground: oklch(0.9219 0 0);
--primary: oklch(0.5676 0.2021 283.0838);
--primary-foreground: oklch(1.0000 0 0);
--secondary: oklch(0.3390 0.1793 301.6848);
--secondary-foreground: oklch(0.9219 0 0);
--accent: oklch(0.6746 0.1414 261.3380);
--accent-foreground: oklch(0.9219 0 0);
--muted: oklch(0.3867 0 0);
--muted-foreground: oklch(0.7155 0 0);
--border: oklch(0.3867 0 0);
--destructive: oklch(0.6368 0.2078 25.3313);
--ring: oklch(0.5676 0.2021 283.0838);
--radius: 0.5rem;
--font-sans: Montserrat, sans-serif;
--font-serif: Playfair Display, serif;
--font-mono: Source Code Pro, monospace;
--spacing: 0.25rem;
--shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}
}