All of Window’s visual properties live inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/mr-sunset/window/llms.txt
Use this file to discover all available pages before exploring further.
style.css. Because the component uses no JavaScript for styling, every customization is a plain CSS change — edit the relevant rule, save the file, and the browser reflects it immediately. This guide walks through each customizable area in turn.
Change the window size
The window’s width is set on#window-container and its height is set on #window-content. The title bar has its own fixed padding and is not part of the content height.
width in px keeps the window at a fixed size regardless of the viewport. If you want a responsive window, switch to a % or vw unit — for example width: 80vw — and pair it with a max-width so it doesn’t grow too large on wide screens.
Change the background gradient
The page background is a CSS gradient applied tobody. The source ships with a light-mode gradient and a separate dark-mode version (covered in the Dark Mode guide).
Change button colors
The three traffic-light buttons are 15×15 px circles whose colour is controlled entirely bybackground-color. Change any of the three hex values to match your palette.
border-radius: 50%, width: 15px, and height: 15px rules are what make them circular. Adjust those values if you want pill-shaped or square buttons instead.
Change the border radius and shadow
The rounded corners and drop shadow are both on#window-container:
border-radius for a rounder look, decrease it toward 0 for a sharp-cornered style. The box-shadow shorthand follows the pattern offset-x offset-y blur spread color — raise the blur or opacity value for a more dramatic shadow:
Add content
Replace the placeholder<button>Click me</button> inside #window-content with any HTML you like. Here is a practical example using a simple contact card:
#window-content uses display: flex; flex-direction: column; align-items: center; justify-content: center; out of the box, so children are centred both horizontally and vertically. Override those flex rules if your content needs a different layout.
Add a window title
The default title bar contains only the three buttons and no visible text. Add a<span> inside #title-bar, after the buttons div, to display a title centred in the bar:
position: absolute with left: 50% and translateX(-50%) keeps the title centred in the bar without being pushed by the button group on the left.