Overview

We present here various pieces of the Struct primitives on a single page.


I am a heading

I am a heading

I am a heading

I am a heading

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


I am a heading

I am a heading

I am a heading

I am a heading

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


I am a heading

I am a heading

I am a heading

I am a heading

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


I am a heading

I am a heading

I am a heading

I am a heading

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Type scale D

This type scale keeps the same proportion w.r.t. to the viewport width.

I am a heading

Static binaries

If you consider adopting a programming language, consider one where you can create statically-linked executables. This makes things so much easier.


E.g., compared to Docker

With a statically-linked binary, provisioning a program on a remote host is just uploading it. With Docker, you need to install and maintain docker-engine. Ideally you should have a nice way to provision the remote host with Docker, but then, why not use that nice way to provision other stuff directly ?

Docker is much more than packaging, but it seems a lot of people use it for that purpose.

By the way, statically-linked executables make building Docker images a breeze.

If you use Docker to deploy, you probably want a private registry, which is another piece to maintain. Static binaries are trivial to host on a static site. Or to mirror. And so on. Simplicity goes a long way.


See also: In praise of simplicity


Related: Learn packaging


Box vs u-container

.box is the combination of .bordered, u-container-vertical, and u-container. .u-container and .u-container-vertical (i.e. .box without border) are identical to .inset.


Form

Title

Title

Title

Title

Title



Xxx.


Type scale A

This is the .c-text type scale.

xxrem/xxpx
Step 5
xxrem/xxpx
Step 4
xxrem/xxpx
Step 3
xxrem/xxpx
Step 2
xxrem/xxpx
Step 1
xxrem/xxpx
Step 0
xxrem/xxpx
Step -1
xxrem/xxpx
Step -2

Type scale B

This is the .c-content type scale.

xxrem/xxpx
Step 5
xxrem/xxpx
Step 4
xxrem/xxpx
Step 3
xxrem/xxpx
Step 2
xxrem/xxpx
Step 1
xxrem/xxpx
Step 0
xxrem/xxpx
Step -1
xxrem/xxpx
Step -2

Type scale C

This is the default type scale.

xxrem/xxpx
Step 5
xxrem/xxpx

Step 4

xxrem/xxpx

Step 3

xxrem/xxpx

Step 2

xxrem/xxpx

Step 1

xxrem/xxpx

Step 0

xxrem/xxpx
Step -1
xxrem/xxpx
Step -2

Lorem ipsum dolor sit amet consectetur adipisicing elit sed do.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


u-flow-c-4

This demonstrates the u-flow-c-4 utility that should match a h1 heading in a flow or flow-all.

Step C 4

Step C 4


Spacing

TODO This needs some automated code generation (to generate the right values as above).


Placeholders

Bordered placeholders to visualize layouts.


Lorem ipsum

When working with layouting CSS-based primitives and thus with HTML, it's useful to be able to add some content easily in addition of placeholders. The .lorem class can be used for that (either on h1, ... and p elements, or on an enclosing div).


Container

Inset

Box

Bar

Switcher

Sidebar

Cover


Grid

The grid has 12 columns. The outer gaps are not part of the grid; they come from the surrounding .u-container.

Col. 1Col. 2Col. 3Col. 4Col. 5Col. 6Col. 7Col. 8Col. 9Col. 10Col. 11Col. 12