Design systemv1.0
CH.1 · LIVE

bootstra-p31 for Bootstrap

This theme turns stock Bootstrap 5 components into the screen of an old research terminal. The grid, classes and JavaScript stay the same: you write ordinary Bootstrap markup and get a phosphor display.

Get started Page template
3phosphor colours
25+restyled components
9p31-* patterns
0 pxborder radius

Getting started START

Load the theme after Bootstrap and add the p31 class to the root element. data-bs-theme="dark" is needed so Bootstrap switches its built-in icons to their dark variants.

Root

html.p31 turns the theme on. Without it the page stays plain Bootstrap.

Phosphor

data-p31-phosphor="amber" or "cyan" on html recolours the whole screen.

CRT

body.p31-crt adds scanlines and a vignette on top of everything without catching clicks.

Colours TOKENS

The base palette lives in --p31-* variables. Bootstrap’s colours (primary, info, warning…) point at them, so changing the phosphor recolours everything at once.

Bootstrap roleTokenUsed for
primary--p31-phosMain screen colour, active elements
info--p31-cyanData, values, research
warning--p31-amberWarnings, recommendations, RESTRICTED
danger--p31-redErrors, prohibitions, SECRET
secondary--p31-mutedCaptions, secondary data

Typography TYPE

One monospaced typeface, IBM Plex Mono. Hierarchy comes from size, weight, letter spacing and colour, not from switching fonts.

Heading level one

Heading level two

Heading level three

Heading level four

Heading level five
Section label

Lead paragraph, a little larger than body text.

Body text. Inline code, a ESC key, highlighted text and a link. Small caption.

  • Bulleted list with an angle marker
  • Second list item

A sealed sample is safe; an open chamber is not.

Lab Safety Office, REC-005

Layout LAYOUT

The mobile-first shell is built from stock Bootstrap components. On a phone the menu hides in offcanvas-lg, the status bar in a collapse, and the document card in another collapse. From the lg breakpoint (992 px) everything is open with no buttons.

Phone
☰ · BOOTSTRA · STATUS
▸ Document card
Content
Key hints
Desktop
BOOTSTRA-P31 · status bar
Folders
Content
Card
Key hints
Shell markup
The Bootstrap grid works unchanged
col-12 col-md-4
col-6 col-md-4
col-6 col-md-4
col-lg-8 · text
col-lg-4 · sidebar

Buttons .btn

Solid buttons are for the main action on a screen; outline buttons are for everything else. Labels are always uppercase and letter-spaced, like keys on a console.

Forms .form-*

Fields are “black glass” with a phosphor border. A focused field lights up in the secondary colour. The command line is an ordinary input-group.

Command>
Format: RES-, REC- or MAN- plus a number.
Chamber limit exceeded: 140 kPa.

Panels .card · .accordion

A panel is a card with a solid header strip. The p31-accent-* class sets its colour, changing the border, strip and title together. For document lists there is the thinner p31-tile.

Record cardRES-014
Clearance
Restricted
Date
2141-03-14
Length
14 pp.
Contents
1. Purpose
2. Method
3. Results
Related
RES-022 Research Secret

Morphology of formation K-3

Behaviour of the crystalline formation in a pressure chamber at 20–140 kPa.

The AS-80 records acoustic signals from 2 Hz to 20 kHz.

Feed a 1 kHz tone and set the level to 0 dB.

Tables .table

The table header sits on a darker grid. Wrapping in table-responsive p31-framed adds a frame and horizontal scrolling on phones.

DayPulsesFrequency, HzPeak, dBState
012231.464Normal
064129.871Watch
115727.578Critical

Feedback .alert · .badge · .progress

Alerts have a thick left bar and a faint tinted background. p31-tag labels are outlined, for clearance levels and sections; badge is solid, for counters.

Note

This mode does not apply to terminals with active recordings.

Group recommendation

Restrict access to collector B-2 until measurements are repeated.

Prohibited

Opening the chamber by hand to check on the sample.
Open Restricted Secret Research 12 New 3
Loading
64%
88%

Overlays .modal · .toast · .tooltip

Modals and toasts share the panel’s header strip. Tooltips are inverted, like a highlighted line on the screen.

System log 10:33
Chamber K-2: sensors recalibrated.

Document p31-titlebox · p31-memo · p31-steps

Custom classes for technical documents: a framed title, a memo header, numbered steps and a key/value list.

RE: REC-005Handling class K samples during depressurisation
To:Division 7 staff
From:Lab Safety Office
  1. Close valve V-1. The chamber must be isolated before anything else.
  2. Record both sensor readings and the time.
  3. If the drop exceeds 40 kPa, leave the area and seal the pressure door.
Clearance: secretThe accent changes the title frame colour

Figures p31-figure

Diagrams and charts are drawn in SVG with the classes p31-s (stroke), p31-f (fill), p31-t (text) and p31-gr (grid). The colour comes from the accent, so figures always match the screen.

Osc-01 · channel 1● Rec
44100 Hz Cursor
Fig. 1. Pulse no. 87: a sharp rise and decay.
Chart · REC-005● Rec
PRESSURE DROP Δp > 40 ? EVACUATE NORMAL
Fig. 2. Action sequence.

System blocks p31-stats · p31-log · p31-keys

Stats, an event log and a key-hint bar: small details that make a page feel like a working screen.

11,925files in the archive
12terminals
88%tape usage
Bclearance level
System log
  • Network in day mode
  • Collector B-2: 78 dB pulse
  • Chamber K-2: sensor mismatch
/searchESCbackDivision 7 · ARCHIVE-7

Document page TEMPLATE

Everything together: breadcrumbs, the document text and a side card. The card sits in collapse d-xl-block: on narrow screens it folds under a button, on wide screens it is always open on the right.

RE: MAN-003AS-80 spectrum analyser

1. Purpose

The AS-80 records and analyses acoustic signals from 2 Hz to 20 kHz and sends recordings to the archive.

2. Power-up

  1. Set the gain to zero.
  2. Switch on the power and wait 90 s.

Tip

Remote commands are described in MAN-007.