A Bootstrap 5 theme inspired by Windows 3.1, Program Manager and File Manager. Plain Bootstrap markup, 1992 chrome.
Everything on this page is Bootstrap 5.3 markup. The grid, utilities, components and JavaScript plugins work as documented; only the look changes.
Change the colour scheme and the desktop pattern in Control Panel. Click a window to activate it, minimise it to the desktop, or maximise it.
Links are green, like jumps in a Help file. Dotted ones open a popup.
<html data-w31-scheme="default" class="w31-desktop">
.btn-primary = default button (thick border) .w31-btn-dialog = 88px
.w31-gauge)Copying: PROGMAN.EXE
.alert)WIN.INI.| Name | Size | Date | Attr |
|---|---|---|---|
| PROGMAN.EXE | 115,312 | 3/10/92 | a |
| WINFILE.EXE | 146,864 | 3/10/92 | a |
| SYSTEM.INI | 2,201 | 6/14/93 | a |
| WIN.INI | 4,889 | 6/14/93 | a |
Modal headers, toasts and offcanvas get a title bar. Their close button becomes the control-menu box on the left.
A card is a plain child window with a title bar.
The theme is one CSS file with no images, fonts or JavaScript. Load Bootstrap 5.3 first, then the theme:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstra-win31@0.1/dist/bootstra-win31.min.css">
Pick a colour scheme and a desktop on <html>, then write normal Bootstrap markup:
<html data-w31-scheme="default" class="w31-desktop w31-pattern-weave">
A window is three blocks inside .w31-window: a title bar, an optional menu bar, and a body or workspace.
<div class="w31-window">
<div class="w31-titlebar">
<button class="w31-sysmenu" aria-label="Control menu"></button>
<span class="w31-title">Notepad</span>
<button class="w31-ctl w31-ctl-min" aria-label="Minimize"></button>
<button class="w31-ctl w31-ctl-max" aria-label="Maximize"></button>
</div>
<nav class="w31-menubar"><a href="#"><u>F</u>ile</a></nav>
<div class="w31-window-body">…</div>
</div>
| Class | What it is |
|---|---|
.w31-desktop, .w31-pattern-*, .w31-wall-* | Desktop colour with an 8×8 pattern or a wallpaper |
.w31-window (.is-inactive, .w31-dialog, .w31-maximized) | Window with sizing border and corner notches |
.w31-titlebar, .w31-title, .w31-sysmenu, .w31-ctl-min/max/restore | Title bar and its buttons |
.w31-menubar | Menu bar (links, dropdowns, or .navbar.w31-menubar) |
.w31-window-body, .w31-workspace, .w31-split | Window body, MDI workspace, two-pane split |
.w31-toolbar, .w31-statusbar > .w31-status | Tool bar and sunken status panes |
.w31-icons > .w31-icon, .w31-desktop-icons, .w31-glyph-group | Program icons, minimised icons, program-group glyph |
.w31-file-*, .w31-files, .w31-tree | File glyphs, file list, directory tree |
.w31-msgicon-* | Information, question, warning and stop symbols |
.w31-gauge | Setup gauge with colour-flipping percentage |
.w31-groupbox, .w31-3d, .w31-btn-dialog | Group box, 3-D controls look, dialog-width button |
.w31-raised, .w31-sunken, .w31-field, .w31-key, .w31-popup-link | Bevel utilities, menu shortcut, popup link |
Bootstrap components need no extra classes: buttons, forms, cards, tables, navbar, dropdowns, tabs, pills, breadcrumb, pagination, alerts, badges, progress, spinners, list groups, accordion, modals, offcanvas, toasts, tooltips and popovers are all restyled.