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
Title motion
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
| Token | Made from | Used for |
|---|---|---|
--accent | Hue, saturation and value | Hovered cards, table headers, selected options |
--background | Paper plus the background tint | The page behind everything |
--detail | The accent, or the text color on an accent surface | Markers, checkboxes, rules and focus rings |
--muted | A dimmer text color | Quotes and struck text |
--tint-fill | The text color at the tint percentage | Code, table rows and tinted cards |
--on-accent | A color that reads on the accent | Text on hovered and accent cards |
Color
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
Page title
Section headings
Wordmark
Project picker
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.
Two columns
This one spans two columns once there’s room for two.
One column
And this is the default.
A grid can also pair its cards, or split them two to one. This control switches the grid below it.
Auto
Fits as many columns as there’s room for.
Pair
Puts two cards side by side.
Split
Gives the first card twice the width of the second.
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
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.
Tint
The text color at the tint percentage. Hover still lights it up.
Accent tint
The accent at the percentage set by the Accent tint slider.
Accent
Lit all the time, as if it were hovered.
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.
Accent tint
Fades in a little of the accent.
Tint
Fades in the tint.
Bare
Rests on a tint and clears it on hover.
None
Stays exactly as it is.
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
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.
corpse
A fast sample browser.
reform
An experimental VST3 plugin that works with wavecycles of sound.
emreddit.com
Reddit embeds for shared links.
stratus
A desktop audio project built with iced and rodio.
kernel-rs
Experiments with Rust and the Windows kernel.
Image cards
An image at the top of a card is cropped to a 2:1 strip, whatever its own shape.
A wide image
A 3:1 waveform loses a little from each side.
A tall image
A 4:5 spectrogram keeps only a band from its middle.
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.
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
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.
- Ordered lists count in the accent.
- 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.