Skip to main content

Content

Reboot

The element-level defaults — Bootstrap's normalisation, re-tuned with the RopeBreak.net palette, type and spacing.

Approach

Reboot builds on Normalize, providing many HTML elements with somewhat opinionated styles using only element selectors. Additional styling is done only with classes. For example, Reboot sets some margin defaults on headings and lists for simpler styling, and lets classes do the rest.

The guiding rules are unchanged from Bootstrap:

  • Update some browser default values to use rems instead of ems for scalable component spacing.
  • Avoid margin-top. Vertical margins can collapse, yielding unexpected results. A single direction of margin is a simpler mental model.
  • For easier scaling across device sizes, block elements use rems for margins.
  • Keep declarations of font-related properties to a minimum, using inherit whenever possible.

What the theme changes

The theme never edits Reboot's rules. It changes the variables they read. Every difference from stock Bootstrap on this page comes from scss/_variables.scss, scss/_variables-dark.scss and the brand layer in scss/_brand.scss.

ElementLightDark
body backgroundcream-100 #f4ecd8navy-900 #0a1b3d
body textnavy-900 #0a1b3dcream-100 #f4ecd8
h1–h3 familyBig Shoulders Display, letter-spacing .01em
h4–h6 familySystem sans (inherits body)
anavy-700 #122553, gold-800 #7e620d on hovergold-300 #e6c769, gold-500 #d4af37 on hover
markgold-300 background, navy-900 textgold-500 background, navy-900 text
code#8b2c45#e2909c
b, strongWeight 800 ($font-weight-bolder)
Borders (hr, tables, inputs)cream-300 #d9cdb0navy-500 #1e3a6e
kbd radius, button radius2px bracket radius ($border-radius-sm)

CSS variables

Reboot's values are exposed as --bs-* custom properties on :root, re-declared under [data-bs-theme=dark] and inside @media (prefers-color-scheme: dark). The ones Reboot itself reads:

:root, [data-bs-theme=light] {
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #0a1b3d;
  --bs-body-bg: #f4ecd8;
  --bs-emphasis-color: #000;
  --bs-secondary-color: #4a6398;
  --bs-heading-color: inherit;
  --bs-link-color: #122553;
  --bs-link-hover-color: #b8941f;
  --bs-link-decoration: underline;
  --bs-code-color: #8b2c45;
  --bs-highlight-color: #0a1b3d;
  --bs-highlight-bg: #e6c769;
  --bs-border-width: 1px;
  --bs-border-color: #d9cdb0;
  --bs-border-radius: 6px;
  --bs-border-radius-sm: 2px;
}

The design-token names (--color-bg, --color-fg, --color-link …) are aliases onto these. See Tokens and CSS variables.

Page defaults

The <html> and <body> elements are updated to provide better page-wide defaults:

  • The box-sizing is globally set on every element — including *::before and *::after — to border-box.
  • No base font-size is declared on the <html>, but 16px is assumed (the browser default). font-size: 1rem is applied on the <body> for easy responsive type-scaling via media queries.
  • The <body> also sets a global font-family, font-weight, line-height (1.5) and color, and paints the cream (or navy) background so the page is never white.
  • scroll-behavior: smooth is set on :root for users who have not asked for reduced motion. Fragment links — which several no-JS components use as fallbacks — glide instead of jumping.

Headings and paragraphs

All heading elements have their top margin removed, a bottom margin of 1rem and a line-height of 1.15. Weight is 700. The sizes follow the type tokens and are responsive below 1200px through RFS.

The brand rule: h1, h2 and h3 switch to Big Shoulders Display with a .01em tracking. h4, h5 and h6 stay in the system sans. Display type should never ship under 20px, and h4 is 18px.

h1. Main event heading — 3rem

h2. Semi-main heading — 2rem

h3. Undercard heading — 1.5rem

h4. Sans heading — 1.125rem

h5. Sans heading — 1rem
h6. Sans heading — .875rem

Paragraphs keep their top margin at 0 and a 1rem bottom margin. One idea each.

HTML
<h1>h1. Main event heading — 3rem</h1>
<h2>h2. Semi-main heading — 2rem</h2>
<h3>h3. Undercard heading — 1.5rem</h3>
<h4>h4. Sans heading — 1.125rem</h4>
<h5>h5. Sans heading — 1rem</h5>
<h6>h6. Sans heading — .875rem</h6>
<p>Paragraphs keep their top margin at 0 and a 1rem bottom margin. One idea each.</p>

Lists

All lists — <ul>, <ol> and <dl> — have their margin-top removed and a margin-bottom: 1rem. Nested lists have no margin-bottom. The left padding on <ul> and <ol> is 2rem.

  • Ladder match
  • Steel cage match
    • Escape rules
    • Pinfall or submission
      • Inside the cage only
  • Iron man match
  1. Entrances
  2. Bell
  3. Three count
    1. Or submission
    2. Or countout
HTML
<ul>
  <li>Ladder match</li>
  <li>Steel cage match
    <ul>
      <li>Escape rules</li>
      <li>Pinfall or submission
        <ul>
          <li>Inside the cage only</li>
        </ul>
      </li>
    </ul>
  </li>
  <li>Iron man match</li>
</ul>
<ol>
  <li>Entrances</li>
  <li>Bell</li>
  <li>Three count
    <ol>
      <li>Or submission</li>
      <li>Or countout</li>
    </ol>
  </li>
</ol>

For simpler styling, clear hierarchy and better spacing, description lists have updated margins. <dd>s reset margin-left to 0 and add margin-bottom: .5rem. <dt>s are bolded.

Promoter
Books the card and pays the talent.
Booker
Writes the finishes.
Heel
Draws the heat. Usually the better worker.
HTML
<dl>
  <dt>Promoter</dt>
  <dd>Books the card and pays the talent.</dd>
  <dt>Booker</dt>
  <dd>Writes the finishes.</dd>
  <dt>Heel</dt>
  <dd>Draws the heat. Usually the better worker.</dd>
</dl>

Inline code

Wrap inline snippets of code with <code>. Be sure to escape HTML angle brackets. The colour is a wine tone, #8b2c45 (#e2909c in dark mode), that sits between red-600 and navy: it reads as "code" against both cream and navy without being mistaken for a link.

For example, <section> should be wrapped as inline.
HTML
For example, <code>&lt;section&gt;</code> should be wrapped as inline.

Code blocks

Use <pre>s for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. The <pre> element is reset to remove its margin-top and use rem units for its margin-bottom. It scrolls horizontally rather than wrapping.

<p>Sample text here...</p>
<p>And another line of sample text here...</p>
HTML
  <pre><code>&lt;p&gt;Sample text here...&lt;/p&gt;
&lt;p&gt;And another line of sample text here...&lt;/p&gt;</code></pre>

Variables

For indicating variables use the <var> tag. Reboot leaves it italic.

y = mx + b
HTML
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>

User input

Use the <kbd> to indicate input that is typically entered via keyboard. It is set in inverted body colours — navy on cream, or cream on navy — with the 2px bracket radius.

To switch directories, type cd followed by the name of the directory.
To edit settings, press Ctrl + ,
HTML
To switch directories, type <kbd>cd</kbd> followed by the name of the directory.<br>
To edit settings, press <kbd><kbd>Ctrl</kbd> + <kbd>,</kbd></kbd>

Sample output

For indicating sample output from a program use the <samp> tag.

This text is meant to be treated as sample output from a computer program.
HTML
<samp>This text is meant to be treated as sample output from a computer program.</samp>

Tables

Tables are slightly adjusted to style <caption>s, collapse borders and ensure consistent text-align throughout. The caption sits below the table in the secondary text colour (navy-400). Additional changes for borders, padding and more come with the .table class.

This is an example table, and this is its caption to describe the contents.
Table heading Table heading Table heading
Table cell Table cell Table cell
Table cell Table cell Table cell
HTML
<table>
  <caption>This is an example table, and this is its caption to describe the contents.</caption>
  <thead>
    <tr>
      <th>Table heading</th>
      <th>Table heading</th>
      <th>Table heading</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Table cell</td>
      <td>Table cell</td>
      <td>Table cell</td>
    </tr>
    <tr>
      <td>Table cell</td>
      <td>Table cell</td>
      <td>Table cell</td>
    </tr>
  </tbody>
</table>

Forms

Various form elements have been rebooted for simpler base styles. Here are some of the most notable changes:

  • <fieldset>s have no borders, padding or margin so they can be easily used as wrappers for individual inputs or groups of inputs.
  • <legend>s, like fieldsets, have also been restyled to be displayed as a heading of sorts.
  • <label>s are set to display: inline-block to allow margin to be applied.
  • <input>s, <select>s, <textarea>s and <button>s are mostly addressed by Normalize, but Reboot removes their margin and sets line-height: inherit too.
  • <textarea>s are modified to only be resizable vertically, as horizontal resizing often breaks page layout.
  • <button>s and <input> button elements have cursor: pointer when :not(:disabled).
  • Validation runs natively. Styled controls light up through :user-invalid and :user-valid — see Validation.
Example legend

HTML
<form>
  <fieldset>
    <legend>Example legend</legend>
    <p>
      <label for="reboot-input">Example input</label>
      <input type="text" id="reboot-input" placeholder="Example input">
    </p>
    <p>
      <label for="reboot-email">Example email</label>
      <input type="email" id="reboot-email" placeholder="[email protected]">
    </p>
    <p>
      <label for="reboot-tel">Example telephone</label>
      <input type="tel" id="reboot-tel">
    </p>
    <p>
      <label for="reboot-select">Example select</label>
      <select id="reboot-select">
        <option value="">Choose...</option>
        <optgroup label="Option group 1">
          <option value="">Option 1</option>
          <option value="">Option 2</option>
        </optgroup>
      </select>
    </p>
    <p>
      <label>
        <input type="checkbox" value="">
        Check this checkbox
      </label>
    </p>
    <p>
      <label>
        <input type="radio" name="reboot-radio" id="reboot-radio-1" checked>
        Option one is this and that
      </label>
      <label>
        <input type="radio" name="reboot-radio" id="reboot-radio-2">
        Option two is something else
      </label>
    </p>
    <p>
      <label for="reboot-textarea">Example textarea</label>
      <textarea id="reboot-textarea" rows="3"></textarea>
    </p>
    <p>
      <label for="reboot-range">Example range</label>
      <input type="range" id="reboot-range" min="0" max="10">
    </p>
    <p>
      <button type="submit">Button submit</button>
      <input type="submit" value="Input submit button">
      <input type="reset" value="Input reset button">
      <input type="button" value="Input button">
    </p>
  </fieldset>
</form>

Date and colour inputs, and search fields, get the small fixes Bootstrap applies for WebKit; the <meta name="color-scheme" content="light dark"> tag recommended in the introduction makes native controls follow the page's mode.

Misc elements

Address

The <address> element is updated to reset the browser default font-style from italic to normal. line-height is also now inherited, and margin-bottom: 1rem has been added.

RopeBreak.net Promotions
1 Arena Way
Hammerlock, HL1 2RB
P: (0)123 456 7890
Ring crew
[email protected]
HTML
<address>
  <strong>RopeBreak.net Promotions</strong><br>
  1 Arena Way<br>
  Hammerlock, HL1 2RB<br>
  <abbr title="Phone">P:</abbr> (0)123 456 7890
</address>
<address>
  <strong>Ring crew</strong><br>
  <a href="mailto:#">[email protected]</a>
</address>

Blockquote

The default margin on blockquotes is 1em 40px, so we reset that to 0 0 1rem. The .blockquote class adds the larger size and a footer.

To be the man, you've got to beat the man.

Someone famous in Source Title

HTML
<blockquote class="blockquote">
  <p>To be the man, you've got to beat the man.</p>
</blockquote>
<p>Someone famous in <cite title="Source Title">Source Title</cite></p>

Inline elements

The <abbr> element receives basic styling to make it stand out amongst paragraph text: a dotted underline and a help cursor. <mark> is the single loudest inline element in the theme — gold-300 behind navy text, the title-belt highlight.

Nulla attr vitae elit libero, a pharetra augue. The main event is marked.

HTML
<p>Nulla <abbr title="attribute">attr</abbr> vitae elit libero, a pharetra augue. The <mark>main event</mark> is marked.</p>

Summary

The default cursor on summary is text, so we reset that to pointer to convey that the element can be interacted with by clicking. This matters more here than in stock Bootstrap: <details> drives the collapse, accordion and the baseline dropdown.

Some details

More info about the details.

Even more details

Here are even more details about the details.

HTML
<details>
  <summary>Some details</summary>
  <p>More info about the details.</p>
</details>
<details open>
  <summary>Even more details</summary>
  <p>Here are even more details about the details.</p>
</details>

Horizontal rule

The <hr> element has been restyled to draw a 1px top border in the current text colour at 25% opacity, with 1rem vertical margins. Change the colour with text colour utilities and the weight with a border utility. For the brand's 2px title-card rule, use .rule-hard on the heading instead.




HTML
<hr>
<hr class="border border-danger border-2 opacity-50">
<hr class="border border-primary border-3 opacity-75">

HTML5 [hidden] attribute

HTML5 adds a new global attribute named [hidden], which is styled as display: none by default. Reboot adds !important so an element's own display cannot accidentally override it.

<input type="text" hidden>
[hidden] is not compatible with jQuery's $(...).hide() — irrelevant here, since nothing in this theme runs a script — but it is also not what the no-JS components use. They rely on <details>, the popover attribute and :has(), never on toggling a class or attribute to hide things.