bootstra-irix
Every component in the theme, each with a live example and the markup to copy. Load Bootstrap 5.3 first, then the theme. The JavaScript file is optional: without it, thumbwheels, clocks, view modes and window buttons are static.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"> <link rel="stylesheet" href="dist/bootstra-irix.css"> <body class="ix-desktop"> … <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script> <script src="dist/bootstra-irix.js"></script> </body>
Put data-scheme on <html> for the whole page, or on any element to scope it. With no attribute the theme follows the system: IndigoMagic in light mode, Potrero in dark mode. Buttons with data-ix-scheme switch and remember the choice.
Scoped previews
<html data-scheme="keywest"> <!-- whole page -->
<div data-scheme="potrero">…</div> <!-- one region -->
<html data-theme="dark"> <!-- force automatic choice -->
<script>BootstraIrix.setScheme("pacific")</script>All colours are custom properties, so swatches below change with the scheme. Define your own scheme by redefining them under [data-scheme="yours"].
.ix-window is the bevelled frame. The title bar holds the window-menu button on the left and shade / maximize on the right; both work with the JS. Add data-ix-drag to drag by the title bar on wide screens, and .is-active for the highlighted title.
jot: notes.txt
The cascading launcher from the top-left of the desktop. Each entry is a .dropend. If the Toolchest is not inside a window, put data-ix-layer on its container so open menus are raised above windows.
Icons that sit directly on the desktop get a boxed label. Wrap them in .ix-desk-icons so clicks select one at a time.
An analog desk clock. The JS draws the face into any element with data-ix-clock and ticks every second.
A view is a sunken area in one of four SGI colours: --teal for directories, --cadet for shelves, --catalog for the Icon Catalog and --navajo for search results. The tool strip on the left switches modes (data-ix-view="icons|list|compact"), opens a find bar (data-ix-find), and a thumbwheel resizes icons.
/usr/people/kaya
View colours
Twelve original isometric icons, drawn as inline SVG. Put the class on an <i> inside .ix-icon, .ix-desk-icon or .ix-droppocket. Tint variants with a CSS filter.
<button class="ix-icon"><i class="ix-ico-folder"></i><span>Mail</span></button> <button class="ix-icon"><i class="ix-ico-app" style="filter:hue-rotate(140deg)"></i><span>imgview</span></button>
The directory-view header: a drop pocket that takes a dragged icon, the pink path field with depth ticks above it (set --ix-path-depth), and the rescan button.
Slanted tabs that hang under a view. They are ordinary Bootstrap tabs with .nav.ix-tabs. The active face takes the view colour: default catalog, or .ix-tabs--teal / .ix-tabs--navajo. Give tabs data-page and the window title a data-ix-page span to update “Page N”.
The ribbed wheel from SGI viewers. Drag it, roll the mouse wheel over it, or focus it and use the arrow keys, Home and End. It is a role="slider" and fires ix:change with detail.value.
wheel.addEventListener("ix:change", e => console.log(e.detail.value));
wheel.ixSet(75); // set from codeRaised Motif buttons that sink when pressed. The default (Enter) button, .btn-primary or .btn-default, gets the extra ring. Row them with .ix-btnrow to space them like an SGI dialog.
Colours, sizes, groups
Icon buttons
Editable fields are SGI pink; read-only ones turn grey. .form-select becomes an option menu: a raised italic button with the dash indicator.
Check boxes get the red tick. Radio buttons are Motif diamonds that fill yellow. Switches are a sliding block that turns green.
A Motif scale with a bevelled thumb. Add .ix-vrange for the vertical faders of the Audio Panel.
Input-group labels are raised italic tabs. .ix-frame on a <fieldset> draws the etched Motif group box with its legend on the line.
Tables sit on navajo inside a sunken .ix-table-wrap, with raised italic headers. .num right-aligns numbers in the monospace face; .table-active marks the selected row.
| PID | User | State | CPU % |
|---|---|---|---|
| 2847 | kaya | sleep | 8.0 |
| 804 | root | sleep | 4.1 |
| 961 | kaya | run | 1.3 |
A scrolling Motif list: .ix-list plus Bootstrap’s .list-group. Items with .list-group-item-action highlight on hover; .active is the selection.
Bootstrap progress bars become gr_osview meters on black. Stack them for CPU breakdowns. .ix-vu holds segmented level bars; set --level from 0 to 100.
Alerts render as IRIX notifiers with a glyph. Wrap the text in a <div> so it sits beside the glyph.
Small raised status labels.
Cards are lightweight windows: a bevelled panel with a title-bar header. Use them for grids of panels where full window chrome is too much.
R4400, 250 MHz
128 MB RAM, 2 GB disk, Extreme graphics.
R10000, 195 MHz
256 MB RAM, SI graphics.
winterm’s navy screen. .hi paints the yellow header row of top; .cur is a blinking block cursor that stops when reduced motion is on.
indigo 1% hinv
1 150 MHZ IP22 Processor
Main memory size: 128 Mbytes
Graphics board: Indy 24-bit
indigo 2%
Bootstrap modals become dialog windows with a title bar and an etched footer. Put a notifier inside for the IRIX confirm look.
Toasts are small windows. Tooltips are pale yellow help tags with a black outline; initialise them with Bootstrap’s Tooltip.
Bevel and type helpers, plus a one-screen index of every theme class.
| Area | Classes and attributes |
|---|---|
| Desktop | ix-desktop ix-desktop--pattern ix-desk-icons ix-desk-icon ix-toolchest ix-toolchest-title ix-toolchest-item ix-clock data-ix-clock data-ix-layer |
| Window | ix-window is-active is-shaded is-max data-ix-drag ix-titlebar ix-title ix-tbtn--menu|min|max ix-menubar ix-menu-item ix-menu-help ix-window-body ix-statusline |
| Views | ix-viewframe ix-vtools ix-vbtn--icons|list|grid|face|stop data-ix-view data-ix-find ix-view--teal|cadet|catalog|navajo|chrome ix-icons ix-icons--list|compact ix-icon is-selected |
| Controls | ix-thumbwheel ix-thumbwheel--h ix-pathbar ix-path ix-droppocket ix-refresh ix-iconbtn ix-iconbtn--rec ix-btnrow btn-default ix-vrange ix-frame |
| Tabs | ix-tabs ix-tabs--teal|navajo data-page data-ix-page |
| Content | ix-list ix-table-wrap num ix-term ix-osview ix-osview-label ix-osview-key ix-vu ix-vu-bar |
| JS API | BootstraIrix.setScheme(name) BootstraIrix.init() events ix:change ix:scheme |