Unigrid — design system

Styles

Contents
01 Grid · 02 Buttons · 03 Type
Unit
1u = 1% of the grid
Source
unigrid.css

01Grid

Three bands, one row each. Inside a band nothing moves, the whole page zooms. Crossing a bound swaps to the next composition. A cell is always three quarters as tall as it is wide.

Desktop12 columns · grid ≥ 60rem
123456789101112
Tablet8 columns · 36–60rem
12345678
Mobile4 columns · grid < 36rem
1234

02Buttons

Three variants, one box. Glass needs something behind it, so it sits on a fill.

Square--btn-radius-u: 0

Primarydata-variant="primary"
Outlinedata-variant="outline"
Glassdata-variant="glass"

Rounded--btn-radius-u: 2

Primarydata-variant="primary"
Outlinedata-variant="outline"
Glassdata-variant="glass"

03Type

Two display faces for H1–H3. Every size is a multiple of the grid unit, so type scales with the page.

Aa

Sans

Helvetica Neue · Bold 700

H1--t-h1 · 5.2u

Unigrid

H2--t-h2 · 3.4u

Form follows grid

H3--t-h3 · 2.4u

One scalar governs everything

Aa

Serif

Instrument Serif · Regular 400

H1--t-h1 · 5.2u

Unigrid

H2--t-h2 · 3.4u

Form follows grid

H3--t-h3 · 2.4u

One scalar governs everything

Text scalesans in both themes

H4--t-h4 · 1.7u

The quick brown fox

H5--t-h5 · 1.25u

The quick brown fox

Large--t-lg · 1.7u

The quick brown fox

Body--t-body · 1.15u

The quick brown fox

Micro--t-micro · 0.85u

The quick brown fox