v2.0.1

Design System

Here you will find everything you need to create interfaces, from basics to complex components and prebuilt templates. Back to previous design system

Current screen size
1280px / 867px

Helpers

Helpers are small, single-purpose utility classes you can add to any element to tweak text alignment, visibility, accessibility, image ratios or corner radius without writing custom CSS. Source: src/scss/0-settings/_helpers.scss.

Text alignment

Left

Using .t-left forces the text inside the element to align to the left.

.t-left
This text is aligned to the left.

Center

Using .t-center forces the text inside the element to align to the center.

.t-center
This text is aligned to the center.

Right

Using .t-right forces the text inside the element to align to the right.

.t-right
This text is aligned to the right.

Text color success, warning and error

Using .t-success, .t-warning or .t-error forces the text inside the element to follow the right color code.

This text has the success color.
This text has the warning color.
This text has the error color.

Display & position

Block

Using .block sets display: block on the element, useful on inline elements such as <span> or <a>.

.block
A span, forced to behave like a block.

Relative position

Using .p-rel sets position: relative on the element, typically to serve as a positioning context for an absolutely positioned child.

.p-rel
absolute child

Visibility

Hide

Using .hide sets display: none and opacity: 0 on the element, removing it from view and from the layout flow regardless of breakpoint. *There's an hidden element below the visible one. Check the DOM.

.hide
Visible content
Hidden content (still in the markup, not visible)

Responsive hide (mobile / desktop)

The large breakpoint is the toggle point for these: .hide--mobile (and its --flex/--revert variants, restoring display: flex or the inherited display above large) hides the element below the large breakpoint and shows it above; .hide--desktop (and its --flex variant) does the opposite, hiding the element from the large breakpoint upward. Resize the window to see these toggle.

.hide--mobile and .hide--desktop
Only visible from the "large" breakpoint upward (.hide--mobile)
Only visible below the "large" breakpoint (.hide--desktop)

Accessibility

Screen-reader only

Using .u-sr-accessible visually hides the element (moved off-screen, clipped to 1x1px) while keeping it readable by assistive technology. Used for labels that must exist for accessibility but shouldn't show up visually, such as in the select field.

.u-sr-accessible
Visible label This text only exists for screen readers.

Image ratios

16:9

Using .image-16-9 on a wrapper around a <figure>><img> forces the image to a 16:9 ratio, covering its container.

.image-16-9

3:4

Using .image-3-4 on a wrapper around a <figure>><img> forces the image to a 3:4 ratio, covering its container.

.image-3-4

Blank image placeholder

Using .image-blank (paired with a <figure> containing an icon <span>) shows a centered placeholder icon on a flat background, for use before an image is uploaded.

.image-blank

Border radius

All corners

Using .all-r rounds all 4 corners of the element (default: --m). Add --l, --m or --s to pick the radius size.

--s
--m
--l

Single corners

.t-l-r, .t-r-r, .b-r-r and .b-l-r round a single corner (top-left, top-right, bottom-right, bottom-left) instead of all 4, each also accepting the --l/--m/--s size modifiers. Useful when an element sits flush against another on some sides (e.g. a card image butting up against its text block).

.t-l-r
.t-r-r
.b-r-r
.b-l-r