Corporate is the design system for emily.gg.

Start here

This page is the specimen for Corporate, and it’s built entirely from the parts it describes. Every heading, card, table and control below is a real fixture, and most of the controls change the page you’re reading.

A few things to try first. Each one ticks itself off when you do it.

Title

The title at the top is drawn by a WebGL texture that swaps the page’s foreground and background colors. It drifts on its own, follows your cursor on a spring and lights up a patch around it. On a touch screen it shows the whole texture instead.

The texture can spread past the title. With Texture accents on, it paints every accent surface: a hovered card, a checked box, the table header in the next section. Texture nav and footer does the same for the page chrome.

These cards also open next to the title in the page editor, so you can tune the texture while you look at it.

None of the controls are needed, though. Each one writes a custom property on the root, like --texture-scale or --shader-grain: 0, and corporate.css sets the defaults, so a page gets the texture with just the scripts. The editor is opt in: put data-editor on the title and include the editor dialog.

Title texture

100%
208px
100%
4.4
-1
Grain source

Title motion

0.05
240
0.7×
0.5s
732px
10%
1000px
195
1

Color

Everything takes its color from one accent, set by hue, saturation and value. The page background is the paper color with a little of the accent mixed in, and the accent also draws focus rings, list markers and the selected option of a control.

Tints are the quiet version: the text color mixed in at a low percentage, so they read on any surface, accent ones included. Inline code, code blocks, odd table rows and tinted cards all share the Tint slider.

Tokens

Color tokens
TokenMade fromUsed for
--accentHue, saturation and valueHovered cards, table headers, selected options
--backgroundPaper plus the background tintThe page behind everything
--detailThe accent, or the text color on an accent surfaceMarkers, checkboxes, rules and focus rings
--mutedA dimmer text colorQuotes and struck text
--tint-fillThe text color at the tint percentageCode, table rows and tinted cards
--on-accentA color that reads on the accentText on hovered and accent cards

Color

3%
250°
30.6%
100%
10%
18%

Type

Body text is Inter, on a fluid scale that grows from phone to desktop. Section headings like the one above are light and large, card headings are heavy, and prose headings sit between them with room above.

Third-level heading

Prose supports strong, emphasis, struck text, inline code, links and footnote references.1

Fourth-level heading

Fourth-level headings break up the parts of a long piece.

Fifth-level heading

Fifth and sixth levels are set at body size.

Sixth-level heading, in mono

Card tags and figure captions use Berkeley Mono too, like the line at the bottom of the cards below.

Typography

400
900
700
1.5×
100
100

Berkeley Mono / card tag

Page title

400
28
-0.022em

Section headings

400
28
-0.022em

Wordmark

900
28
-0.022em

Project picker

400
28
-0.045em

Layout

Sections sit between side gutters that widen with the window. Cards go in a grid that fits as many columns of at least 16em as it can, and a card can span more than one.

Full row

This card spans every column, and the grid narrows around it.

corp-card--triple

Two columns

This one spans two columns once there’s room for two.

corp-card--double

One column

And this is the default.

corp-card

A grid can also pair its cards, or split them two to one. This control switches the grid below it.

Grid

Auto

Fits as many columns as there’s room for.

corp-grid

Pair

Puts two cards side by side.

corp-grid--pair

Split

Gives the first card twice the width of the second.

corp-grid--split

Spacing

Every size on the page is a multiple of one base unit, which grows with the window. Type scale multiplies the base itself, so text, padding and gaps all move together.

Side gutters set the space either side of each section, and Section spacing sets the space above it, this section included. Prose width caps the length of a line of prose, in characters.

Layout

1×
1×
4em
120ch

Cards

A card is the basic container. At rest it’s bare, and on hover or focus it lights up in the accent along with everything inside it: checkboxes invert, and the selected option of a control turns dark.

Surfaces

A card can also rest on a surface. Each of these uses a different one.

Bare

No background until you hover.

corp-card

Tint

The text color at the tint percentage. Hover still lights it up.

corp-card--tint

Accent tint

The accent at the percentage set by the Accent tint slider.

corp-card--accent-tint

Accent

Lit all the time, as if it were hovered.

corp-card--accent

Hover

With data-hover, a card shows another surface on hover instead of lighting up. Try each of these.

Accent

The default: lights up completely.

data-hover="accent"

Accent tint

Fades in a little of the accent.

data-hover="accent-tint"

Tint

Fades in the tint.

data-hover="tint"

Bare

Rests on a tint and clears it on hover.

data-hover="bare"

None

Stays exactly as it is.

data-hover="none"

Prose cards

A card whose content is prose can carry long text, lists and code. The controls here restyle every prose card on the page.

A prose card

This card’s content sits in corp-prose, which makes it a prose card. Pick another surface next door and this card changes with it.

An accent card is a lit card that stays lit.

<article class="corp-card corp-card--tint">

Card surfaces

Prose cards
Card gaps
0em

Link cards

A card that links somewhere gets an arrow, which nudges up and to the right on hover. These are the projects Corporate was made for.

remote

A remote desktop streaming app for Windows.

Rust DirectX WebRTC

corpse

A fast sample browser.

Rust egui WinAPI COM

reform

An experimental VST3 plugin that works with wavecycles of sound.

Rust egui nih-plug

emreddit.com

Reddit embeds for shared links.

Rust h2 actix

stratus

A desktop audio project built with iced and rodio.

Rust iced rodio

kernel-rs

Experiments with Rust and the Windows kernel.

Rust WinAPI WDK

Image cards

An image at the top of a card is cropped to a 2:1 strip, whatever its own shape.

A waveform with tall, tightly spaced peaks that decay into a thin line.

A wide image

A 3:1 waveform loses a little from each side.

1200 × 400

Two bright frequency traces curve across a dark spectrogram.

A tall image

A 4:5 spectrogram keeps only a band from its middle.

640 × 800

Controls

Controls share the cards’ flat style: square corners, no shadows, and a solid fill when they’re on. Sliders show their value on the right, and every slider on this page is live.

Checkboxes

A checked box fills with the accent and shows a tick. Inside a lit card the colors swap.

Segmented controls

A segmented control picks one of a few options. The options wrap onto another line when there isn’t room.

Two options
Three options
Five options

Hover

Everything that lights up on hover shares one set of hover surfaces, picked with data-hover. The controls here set one for each kind of thing on the page, including these options. The demo cards in the Cards section keep their own.

Hover surfaces

  • Accent lights up completely, and is the default.
  • Accent tint fades in a little of the accent.
  • Tint fades in the text color.
  • Bare clears any surface the thing rests on.
  • None leaves it as it is.

Anything that’s on all the time, like an accent card or a selected option, keeps its fill whatever the hover.

Hover

Cards
Prose cards
Nav and footer links
Segmented options

Long-form

Long writing goes in corp-prose, which spaces out paragraphs, lists, quotes, code and tables. This section is one.

Lists

  • Unordered lists use accent markers.
    • Nested lists switch to small squares.
    • Their markers are muted.
  • Task lists use the same checkboxes as everything else.
  1. Ordered lists count in the accent.
  2. They nest the same way.

Quotes

A quote gets a rule down its side and a muted color, so it reads as someone else’s words.

Code

Code blocks sit on a tint and get a copy button on hover.

.corp-card--tint { background: var(--tint-fill); }

Longer blocks keep their line breaks and indentation.

// Prose cards wear whichever surface is picked in the Cards section.
for (const card of document.querySelectorAll('.corp-card:has(> .corp-prose)')) {
  card.classList.add('corp-card--tint');
}

A line that’s too long scrolls sideways instead of wrapping.

.corp-card:is(.corp-card--accent, :is(:not([data-hover]), [data-hover="accent"]):is(:hover, :focus-visible)) .corp-prose thead { background: var(--detail); color: var(--check-ink); }

A rule like the one above splits a piece into parts. Headings outside cards get a button on hover that copies a link to them.2

Images

Figures fill their column at their own shape, with the caption underneath in mono.

Footnotes

  1. Footnotes collect at the end of the page, and each one links back to where it was cited.
  2. The copied link is the full page URL with the heading’s fragment on the end.