Midnight Bootstrap theme

Create a midnight bootstrap theme. This page gives you a ready-to-use color system, export code, and a live gradient preview — no design tools required.

midnight bootstrap theme UI preview
midnight bootstrap theme UI preview

Color palette

#ddf0f4
Background 1
background
#f0f8fa
Surface 1
surface
#111827
Text Primary 1
text-primary
#6d7983
Text Secondary 1
text-secondary
#1a9eb3
Primary 1
primary
#7e40b9
Secondary 1
secondary
#7e40b9
Accent 1
accent

Midnight Bootstrap theme explained

The midnight bootstrap theme pairs #1a9eb3 as its primary hue with #7e40b9 as the accent. The palette is balanced for midnight aesthetics while keeping text readable against the surface color.

Every swatch is derived from the same two anchor colors, so the bootstrap theme stays harmonious across backgrounds, borders, buttons, and hover states. Copy the CSS below or open it in your favorite tool and apply it immediately.

Use the preview image as a starting point for your own mockups. It shows the exact #1a9eb3 → #7e40b9 gradient applied to a phone screen, a primary button, and a wave pattern so you can see how the midnight look plays out in a real interface.

Export code

/* CSS Custom Properties */
:root {
  --background: #ddf0f4;
  --surface: #f0f8fa;
  --text-primary: #111827;
  --text-secondary: #6d7983;
  --primary: #1a9eb3;
  --secondary: #7e40b9;
  --accent: #7e40b9;
}

/* Tailwind CSS config (extend.colors) */
module.exports = {
  theme: {
    extend: {
      colors: {
        'background': '#ddf0f4',
        'surface': '#f0f8fa',
        'text-primary': '#111827',
        'text-secondary': '#6d7983',
        'primary': '#1a9eb3',
        'secondary': '#7e40b9',
        'accent': '#7e40b9',
      }
    }
  }
};

Related bootstrap themes