Window Glass Generator
Generate a self-contained Aero glass window — title bar, glossy caption buttons, menu bar, content and status bar. No frameworks, no images: just copy the CSS and HTML.
Window Customization
Live Preview
This Aero window is pure CSS — no images, no libraries.
Copy the CSS and HTML and drop it anywhere.
Generated CSS Code
/* ---------------------------------------------------------------
Aero Glass Window — self-contained, zero dependencies.
Just copy this CSS and the matching HTML; it works on any
background. Tweak the custom properties on .aero-window to taste.
--------------------------------------------------------------- */
.aero-window {
--hue: 210;
--radius: 8px;
--glass-opacity: 0.6;
/* Alpha is baked into the tint so the colour stays vivid while the gloss
highlights (layered on top) render at full strength. */
--glass: hsl(var(--hue) 65% 52% / var(--glass-opacity));
--frame: 9px;
position: relative;
isolation: isolate;
width: 520px;
border-radius: var(--radius);
font-family: "Segoe UI", Tahoma, Geneva, Verdana, system-ui, sans-serif;
font-size: 12px;
color: #1b1b1b;
box-shadow:
0 18px 44px rgba(0, 0, 0, 0.5),
0 0 26px hsl(var(--hue) 90% 58% / 0.28),
0 0 0 1px rgba(0, 0, 0, 0.55),
inset 0 0 0 1px rgba(255, 255, 255, 0.95),
inset 0 0 30px rgba(255, 255, 255, 0.28);
}
/* Colored glass sheet — vivid tint + specular gloss + diagonal sheen */
.aero-window::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
border-radius: var(--radius);
background:
/* diagonal reflection streak */
linear-gradient(104deg, transparent 26%, rgba(255, 255, 255, 0.32) 42%, rgba(255, 255, 255, 0.05) 50%, transparent 64%),
/* bright top specular highlight */
linear-gradient(to bottom, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.2) 42%, rgba(255, 255, 255, 0) 54%),
/* soft vertical shade for depth */
linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.12)),
/* colored glass tint */
var(--glass);
}
/* Frost whatever sits behind the window — the effect that makes it glass */
.aero-window::after {
content: "";
position: absolute;
inset: 0;
z-index: -2;
border-radius: var(--radius);
-webkit-backdrop-filter: blur(18px) saturate(1.9);
backdrop-filter: blur(18px) saturate(1.9);
}
/* ---- Title bar ---- */
.aero-window .aero-titlebar {
display: flex;
align-items: flex-start;
gap: 5px;
padding: 0 6px;
min-height: 30px;
border-radius: var(--radius) var(--radius) 0 0;
/* faint self-contained brushed sheen */
background: repeating-linear-gradient(
108deg,
rgba(255, 255, 255, 0.05) 0 1px,
transparent 1px 5px
);
}
.aero-window .aero-titlebar-icon {
width: 16px;
height: 16px;
margin-top: 7px;
flex: none;
}
.aero-window .aero-titlebar-text {
flex: 1;
min-width: 0;
margin-top: 7px;
line-height: 16px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #0b0b0b;
/* white halo keeps the caption legible over any glass color */
text-shadow: 0 0 4px #fff, 0 0 4px #fff, 0 0 7px #fff, 0 0 10px #fff;
}
/* ---- Caption buttons (capsule hanging from the top edge) ---- */
.aero-window .aero-caption {
display: flex;
flex: none;
border: 1px solid rgba(0, 0, 0, 0.35);
border-top: 0;
border-radius: 0 0 4px 4px;
overflow: hidden;
box-shadow:
0 1px 0 rgba(255, 255, 255, 0.9),
1px 0 0 rgba(255, 255, 255, 0.7),
-1px 0 0 rgba(255, 255, 255, 0.7);
}
.aero-window .aero-caption button {
appearance: none;
-webkit-appearance: none;
display: flex;
align-items: center;
justify-content: center;
min-width: 29px;
height: 20px;
margin: 0;
padding: 0;
border: 0;
border-right: 1px solid rgba(0, 0, 0, 0.28);
color: rgba(0, 0, 0, 0.68);
cursor: pointer;
background: linear-gradient(
rgba(255, 255, 255, 0.55),
rgba(255, 255, 255, 0.28) 46%,
rgba(0, 0, 0, 0.08) 50%,
rgba(0, 0, 0, 0.08) 78%,
rgba(255, 255, 255, 0.4)
);
transition: box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.aero-window .aero-caption button:last-child {
border-right: 0;
min-width: 46px;
}
/* Glyphs drawn in pure CSS — no icon font, no images */
.aero-window .aero-caption .min::before {
content: "";
width: 10px;
height: 2px;
margin-top: 6px;
background: currentColor;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.aero-window .aero-caption .max::before {
content: "";
width: 11px;
height: 9px;
border: 1px solid currentColor;
border-top-width: 2px;
}
.aero-window .aero-caption .close::before {
content: "\2715";
font-size: 11px;
line-height: 1;
}
/* Hover / active — cyan Aero glow for min & max */
.aero-window .aero-caption button:not(.close):hover {
color: #fff;
background:
radial-gradient(120% 90% at 50% 130%, #3fd0e6, transparent 60%),
linear-gradient(#c3e3f4 48%, #1f79b0 50%);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 8px 2px rgba(93, 196, 240, 0.85);
}
.aero-window .aero-caption button:not(.close):active {
background:
radial-gradient(120% 90% at 50% 130%, #12e6e6, transparent 60%),
linear-gradient(#8fb3c9 48%, #0d3350 50%);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}
/* Close button — red */
.aero-window .aero-caption .close {
color: #fff;
background:
radial-gradient(circle at -30% 50%, rgba(0, 0, 0, 0.4) 6%, transparent 55%),
radial-gradient(circle at 130% 50%, rgba(0, 0, 0, 0.4) 6%, transparent 55%),
linear-gradient(#e6a99f, #d16b5b 48%, #cf4b34 50%, #d8654c);
}
.aero-window .aero-caption .close:hover {
background:
radial-gradient(120% 90% at 50% 130%, #ff9a86, transparent 60%),
linear-gradient(#ffc0b5 48%, #d40a0a 50%);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 8px 2px rgba(255, 80, 48, 0.85);
}
.aero-window .aero-caption .close:active {
background:
radial-gradient(120% 90% at 50% 130%, #ff3a1a, transparent 60%),
linear-gradient(#c94a3a 48%, #8b0000 50%);
}
/* ---- Menu bar ---- */
.aero-window .aero-menubar {
display: flex;
align-items: stretch;
margin: 0 var(--frame);
background: linear-gradient(#ffffff 0%, #eef2f9 45%, #dbe3f1 55%, #e9eef8 100%);
border: 1px solid rgba(0, 0, 0, 0.35);
border-bottom: 0;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.aero-window .aero-menubar span {
padding: 4px 10px;
cursor: default;
color: #1b1b1b;
}
.aero-window .aero-menubar span:hover {
background: linear-gradient(#eaf4fd, #cfe8fb);
box-shadow: inset 0 0 0 1px #b5dcfb;
border-radius: 3px;
}
/* ---- Content area ---- */
.aero-window .aero-body {
margin: 0 var(--frame);
padding: 12px;
min-height: 289px;
background: #f0f0f0;
color: #1b1b1b;
border: 1px solid rgba(0, 0, 0, 0.5);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
white-space: pre-wrap;
overflow: auto;
}
.aero-window .aero-body:last-child {
margin-bottom: var(--frame);
border-radius: 0 0 3px 3px;
}
/* ---- Status bar ---- */
.aero-window .aero-statusbar {
display: flex;
align-items: center;
gap: 8px;
margin: 0 var(--frame) var(--frame);
padding: 3px 8px;
min-height: 24px;
font-size: 11px;
color: #1b1b1b;
background: linear-gradient(#f7f9fc, #e4e9f2);
border: 1px solid rgba(0, 0, 0, 0.4);
border-top: 0;
border-radius: 0 0 3px 3px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.aero-window .aero-statusbar .aero-status-grow {
flex: 1;
}
/* Resize gripper (bottom-right dots) */
.aero-window .aero-statusbar .aero-gripper {
width: 12px;
height: 12px;
background:
radial-gradient(circle 1px at 2px 10px, rgba(0, 0, 0, 0.35) 99%, transparent),
radial-gradient(circle 1px at 6px 10px, rgba(0, 0, 0, 0.35) 99%, transparent),
radial-gradient(circle 1px at 10px 10px, rgba(0, 0, 0, 0.35) 99%, transparent),
radial-gradient(circle 1px at 6px 6px, rgba(0, 0, 0, 0.35) 99%, transparent),
radial-gradient(circle 1px at 10px 6px, rgba(0, 0, 0, 0.35) 99%, transparent),
radial-gradient(circle 1px at 10px 2px, rgba(0, 0, 0, 0.35) 99%, transparent);
}
/* ---- Inactive (unfocused) window ---- */
.aero-window.inactive::before {
background:
linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08) 44%, rgba(255, 255, 255, 0) 46%),
hsl(var(--hue) 14% 84%);
opacity: 0.82;
}
.aero-window.inactive .aero-titlebar-text {
color: #5a5a5a;
text-shadow: 0 0 4px #fff, 0 0 6px #fff;
}