Skip to content
😱 ScreamingFace SFDS 2.1.0
SFDS · Layout

Layout

The text column, the wide band and the spacing scale.

See it · specimens from the v2.0 guide

The reference visuals from the one-page guide, unchanged and live. The rules follow below; where a specimen differs from a rule, the rule wins. Skip to the rules ↓

layout

Two widths, one spacing scale — this page is the demonstration.

prose
760px column (--col) — comfortable line length for paragraphs and lists
artifacts
1140px band (.band) — viewport-centered full bleed for scales, specimens, galleries; can never overflow
spacing
the 12-step --space-* scale, from a 4px hairline gap to a 96px section break
band 1140
--col 760
1
2
3
4
5
6
7
8
9
10
11
12

Layout and spacing

foundations/layout.md

Two widths and one 12-step spacing scale: a 760px prose column, a 1140px band for anything wider, and space from 4px to 96px.

Widths

What Value Use it for
--col (.wrap) 760px Prose: a comfortable line length for paragraphs and lists.
.band 1140px Scales, specimens, galleries, tables. Full bleed and centered on the viewport, so it can never overflow.
--col-wide (.wrap.wide) 1000px A wider column.
--rail-h 44px The top rail’s height.

The band. .band goes on a section inside .wrap that needs more width than the prose column. It keeps a minimum gutter on narrow screens.

Spacing

A 4px-based scale for padding, margin and gap.

Token Value
--space-1 4px
--space-2 8px
--space-3 12px
--space-4 16px
--space-5 20px
--space-6 24px
--space-7 32px
--space-8 40px
--space-9 52px
--space-10 64px
--space-11 80px
--space-12 96px

The scale runs from a hairline gap to a section break.

Page conventions

  • The page body never scrolls sideways. A wide table scrolls inside its own container (.table-wrap).
  • Anchors land below the rail, with breathing room.
  • Intros stay short. A section intro gets about two lines of prose; everything beyond that becomes one fact per row in a key/value list (Key/value list).
  • Phones. Below 620px the column tightens, h1 steps down to --text-metric, the lead to --text-body, and the rail wraps rather than hiding its links.

Open:

  • When to use --col-wide rather than the band is not stated.
  • The homepage keeps hero and prose on one narrow axis and breaks the proof band and footer out to 1140px, with its own rhythm between sections. That is the homepage’s layer, not yet a system rule.

Rules

The rail owns the top strip

guidelines/the-rail-owns-the-top-strip.md

Status banners mount below the rail, never above it.

Rule. The viewport’s top strip belongs to the rail. Draft notices, replica bars and other status banners mount below it.

Why. The mode switch is fixed at the top right so it travels with the reader. Anything mounted above the rail puts its controls under that switch.

Components

Rail

both registers components/rail.md

The top header: a 44px mono strip with the brand, section links and the mode switch.

😱 ScreamingFace
😱 ScreamingFace
<div class="rail">
  <span class="brand"><span class="m">😱</span> ScreamingFace</span>
  <nav class="crumbs">
    <a class="here" href="#">brand guide</a>
    <a href="#">leaderboard</a>
  </nav>
  <span class="spacer"></span>
  <button class="toggle" id="theme-toggle">◐</button>
</div>

Anatomy. A --rail-h strip on the ground color with a hairline under it, in mono micro. The brand on the left, links (.crumbs, the current one .here), a spacer, and the mode switch (.toggle) fixed at the top right.

Behavior. The rail scrolls with the page, then re-pins to the top once scrolled past (.stuck, added by script). On phones it wraps instead of hiding its links.

Rules. Banners mount below the rail (The rail owns the top strip).

Open: this component is in style.css but not in the guide’s component list. The markup above is the guide’s own header, with fewer links. Its brand is the typed name in the wordmark face; the homepage’s rail uses the lockup file instead, as the rule asks (Never re-type the wordmark). Which the rail should carry needs one answer.

😱 ScreamingFace Design System 2.1.0 · 3f864eb · https://brand.screamingface.ai change log · manifest · archive