Cozy-UI Styleguide

Cozy-UI Styleguide

4.1 Typography

Titles & texts styles. NB: You can use any class with any HTML tag.

Example

Heading 1

Heading 2

Heading 3

Heading 4

Basic text

Caption text

Upper cased text

Lower cased text (default)

<h1 class="u-title-h1">Heading 1</h1>
<h2 class="u-title-h2">Heading 2</h2>
<h3 class="u-title-h3">Heading 3</h3>
<h4 class="u-title-h4">Heading 4</h4>
<p class="u-text">Basic text</p>
<p class="u-caption">Caption text</p>
<p class="u-uppercase">Upper cased text</p>
<p class="u-lowercase">Lower cased text (default)</p>

Examples

Default styling

.u-bdrs-1

1st step of border-radius (2px)

.u-bdrs-2

2nd step of border-radius (3px)

.u-bdrs-3

3rd step of border-radius (4px)

.u-bdrs-4

4th step of border-radius (8px)

.u-bdrs-circle

Round element with border-radius (100%)

<div class="[modifier class]  u-bg-dodgerBlue" style="width:4rem; height:4rem; "></div>

Examples

Default styling

.u-bdw-0

1st step of border-width (0px)

.u-bdw-1

2nd step of border-width (2px)

<div class="[modifier class]  u-bg-dodgerBlue" style="width:4rem; height:4rem; border-color:red; border-style: solid "></div>

4.3 Cursor

Utilities that change cursor when hovering an element.

Examples

Default styling

.u-c-default

Force default cursor

.u-c-help

help cursor for help and/or tips

.u-c-pointer

pointer cursor showing the element is clickable

.u-c-wait

wait cursor to express that an action is pending

.u-c-not-allowed

not allowed cursor, often used on a disabled element, to express your inhability to make an action

<a href="https://cozy.io" class="[modifier class]">I'm a link</a>

4.4 Hide

Utilities that show or hide an element for a giving viewport size.

Examples

Default styling

I'm visible! 🎉

.u-visuallyhidden

Element is visually hidden but still readable by screen-readers

I'm visible! 🎉

.u-hide

Element is totally hidden (even for screen readers)

I'm visible! 🎉

.u-hide--desk

Element is hidden on desktop (>768px)

I'm visible! 🎉

.u-hide--tablet

Element is hidden on tablet (>1024px)

I'm visible! 🎉

.u-hide--mob

Element is hidden on mobile (<1023px)

I'm visible! 🎉

<p class="[modifier class]">I'm visible! 🎉</p>

Examples

Default styling

🎶 Gimme some margin 🎵

.u-m-auto

Auto margin on all sides

🎶 Gimme some margin 🎵

.u-m-0

No margins on all sides

🎶 Gimme some margin 🎵

.u-m-half

Margins on all sides with half a line (8px)

🎶 Gimme some margin 🎵

.u-m-1

Margins on all sides with 1 line (16px)

🎶 Gimme some margin 🎵

.u-m-1-half

Margins on all sides with 1 line an a half (24px)

🎶 Gimme some margin 🎵

.u-m-2

Margins on all sides with 2 lines (32px)

🎶 Gimme some margin 🎵

.u-m-2-half

Margins on all sides with 1 line an a half (40px)

🎶 Gimme some margin 🎵

.u-m-3

Margins on all sides with 2 lines (48px)

🎶 Gimme some margin 🎵

.u-mv-auto

Auto vertically margins

🎶 Gimme some margin 🎵

.u-mv-0

No vertically margins

🎶 Gimme some margin 🎵

.u-mv-half

Vertically margins with half a line (8px)

🎶 Gimme some margin 🎵

.u-mv-1

Vertically margins with 1 line (16px)

🎶 Gimme some margin 🎵

.u-mv-1-half

Vertically margins with 1 line an a half (24px)

🎶 Gimme some margin 🎵

.u-mv-2

Vertically margins with 2 lines (32px)

🎶 Gimme some margin 🎵

.u-mv-2-half

Vertically margins with 1 line an a half (40px)

🎶 Gimme some margin 🎵

.u-mv-3

Vertically margins with 2 lines (48px)

🎶 Gimme some margin 🎵

.u-mh-auto

Auto horizontally margins

🎶 Gimme some margin 🎵

.u-mh-0

No horizontally margins

🎶 Gimme some margin 🎵

.u-mh-half

Horizontally margins with half a line (8px)

🎶 Gimme some margin 🎵

.u-mh-1

Horizontally margins with 1 line (16px)

🎶 Gimme some margin 🎵

.u-mh-1-half

Horizontally margins with 1 line an a half (24px)

🎶 Gimme some margin 🎵

.u-mh-2

Horizontally margins with 2 lines (32px)

🎶 Gimme some margin 🎵

.u-mh-2-half

Horizontally margins with 1 line an a half (40px)

🎶 Gimme some margin 🎵

.u-mh-3

Horizontally margins with 2 lines (48px)

🎶 Gimme some margin 🎵

.u-mt-auto

Margin Top auto

🎶 Gimme some margin 🎵

.u-mt-0

No margin Top

🎶 Gimme some margin 🎵

.u-mt-half

Margin Top with half a line (8px)

🎶 Gimme some margin 🎵

.u-mt-1

Margin Top with 1 line (16px)

🎶 Gimme some margin 🎵

.u-mt-1-half

Margin Top with 1 line an a half (24px)

🎶 Gimme some margin 🎵

.u-mt-2

Margin Top with 2 lines (32px)

🎶 Gimme some margin 🎵

.u-mt-2-half

Margin Top with 1 line an a half (40px)

🎶 Gimme some margin 🎵

.u-mt-3

Margin Top with 2 lines (48px)

🎶 Gimme some margin 🎵

.u-mb-auto

Margin Bottom auto

🎶 Gimme some margin 🎵

.u-mb-0

No margin Bottom

🎶 Gimme some margin 🎵

.u-mb-half

Margin Bottom with half a line (8px)

🎶 Gimme some margin 🎵

.u-mb-1

Margin Bottom with 1 line (16px)

🎶 Gimme some margin 🎵

.u-mb-1-half

Margin Bottom with 1 line an a half (24px)

🎶 Gimme some margin 🎵

.u-mb-2

Margin Bottom with 2 lines (32px)

🎶 Gimme some margin 🎵

.u-mb-2-half

Margin Bottom with 1 line an a half (40px)

🎶 Gimme some margin 🎵

.u-mb-3

Margin Bottom with 2 lines (48px)

🎶 Gimme some margin 🎵

.u-ml-auto

Margin Left auto

🎶 Gimme some margin 🎵

.u-ml-0

No margin Left

🎶 Gimme some margin 🎵

.u-ml-half

Margin Left with half a line (8px)

🎶 Gimme some margin 🎵

.u-ml-1

Margin Left with 1 line (16px)

🎶 Gimme some margin 🎵

.u-ml-1-half

Margin Left with 1 line an a half (24px)

🎶 Gimme some margin 🎵

.u-ml-2

Margin Left with 2 lines (32px)

🎶 Gimme some margin 🎵

.u-ml-2-half

Margin Left with 1 line an a half (40px)

🎶 Gimme some margin 🎵

.u-ml-3

Margin Left with 2 lines (48px)

🎶 Gimme some margin 🎵

.u-mr-auto

Margin Right auto

🎶 Gimme some margin 🎵

.u-mr-0

No margin Right

🎶 Gimme some margin 🎵

.u-mr-half

Margin Right with half a line (8px)

🎶 Gimme some margin 🎵

.u-mr-1

Margin Right with 1 line (16px)

🎶 Gimme some margin 🎵

.u-mr-1-half

Margin Right with 1 line an a half (24px)

🎶 Gimme some margin 🎵

.u-mr-2

Margin Right with 2 lines (32px)

🎶 Gimme some margin 🎵

.u-mr-2-half

Margin Right with 1 line an a half (40px)

🎶 Gimme some margin 🎵

.u-mr-3

Margin Right with 2 lines (48px)

🎶 Gimme some margin 🎵
<div style="background-color:dimgrey; border: 1px solid black;"><div style="padding:.5rem; background-color:gainsboro;" class="[modifier class]">🎶 Gimme some margin 🎵 </div></div>

Examples

Default styling

🎼 Gimme some padding 💃

.u-p-auto

Auto paddings on all sides

🎼 Gimme some padding 💃

.u-p-0

No paddings on all sides

🎼 Gimme some padding 💃

.u-p-half

Paddings on all sides with half a line (8px)

🎼 Gimme some padding 💃

.u-p-1

Paddings on all sides with 1 line (16px)

🎼 Gimme some padding 💃

.u-p-1-half

Paddings on all sides with 1 line an a half (24px)

🎼 Gimme some padding 💃

.u-p-2

Paddings on all sides with 2 lines (32px)

🎼 Gimme some padding 💃

.u-p-2-half

Paddings on all sides with 1 line an a half (40px)

🎼 Gimme some padding 💃

.u-p-3

Paddings on all sides with 2 lines (48px)

🎼 Gimme some padding 💃

.u-pv-auto

Auto vertically paddings

🎼 Gimme some padding 💃

.u-pv-0

No vertically paddings

🎼 Gimme some padding 💃

.u-pv-half

Vertically paddings with half a line (8px)

🎼 Gimme some padding 💃

.u-pv-1

Vertically paddings with 1 line (16px)

🎼 Gimme some padding 💃

.u-pv-1-half

Vertically paddings with 1 line an a half (24px)

🎼 Gimme some padding 💃

.u-pv-2

Vertically paddings with 2 lines (32px)

🎼 Gimme some padding 💃

.u-pv-2-half

Vertically paddings with 1 line an a half (40px)

🎼 Gimme some padding 💃

.u-pv-3

Vertically paddings with 2 lines (48px)

🎼 Gimme some padding 💃

.u-ph-auto

Auto horizontally paddings

🎼 Gimme some padding 💃

.u-ph-0

No horizontally paddings

🎼 Gimme some padding 💃

.u-ph-half

Horizontally paddings with half a line (8px)

🎼 Gimme some padding 💃

.u-ph-1

Horizontally paddings with 1 line (16px)

🎼 Gimme some padding 💃

.u-ph-1-half

Horizontally paddings with 1 line an a half (24px)

🎼 Gimme some padding 💃

.u-ph-2

Horizontally paddings with 2 lines (32px)

🎼 Gimme some padding 💃

.u-ph-2-half

Horizontally paddings with 1 line an a half (40px)

🎼 Gimme some padding 💃

.u-ph-3

Horizontally paddings with 2 lines (48px)

🎼 Gimme some padding 💃

.u-pt-auto

Padding Top auto

🎼 Gimme some padding 💃

.u-pt-0

No padding Top

🎼 Gimme some padding 💃

.u-pt-half

Padding Top with half a line (8px)

🎼 Gimme some padding 💃

.u-pt-1

Padding Top with 1 line (16px)

🎼 Gimme some padding 💃

.u-pt-1-half

Padding Top with 1 line an a half (24px)

🎼 Gimme some padding 💃

.u-pt-2

Padding Top with 2 lines (32px)

🎼 Gimme some padding 💃

.u-pt-2-half

Padding Top with 1 line an a half (40px)

🎼 Gimme some padding 💃

.u-pt-3

Padding Top with 2 lines (48px)

🎼 Gimme some padding 💃

.u-pb-auto

Padding Bottom auto

🎼 Gimme some padding 💃

.u-pb-0

No padding Bottom

🎼 Gimme some padding 💃

.u-pb-half

Padding Bottom with half a line (8px)

🎼 Gimme some padding 💃

.u-pb-1

Padding Bottom with 1 line (16px)

🎼 Gimme some padding 💃

.u-pb-1-half

Padding Bottom with 1 line an a half (24px)

🎼 Gimme some padding 💃

.u-pb-2

Padding Bottom with 2 lines (32px)

🎼 Gimme some padding 💃

.u-pb-2-half

Padding Bottom with 1 line an a half (40px)

🎼 Gimme some padding 💃

.u-pb-3

Padding Bottom with 2 lines (48px)

🎼 Gimme some padding 💃

.u-pl-auto

Padding Left auto

🎼 Gimme some padding 💃

.u-pl-0

No padding Left

🎼 Gimme some padding 💃

.u-pl-half

Padding Left with half a line (8px)

🎼 Gimme some padding 💃

.u-pl-1

Padding Left with 1 line (16px)

🎼 Gimme some padding 💃

.u-pl-1-half

Padding Left with 1 line an a half (24px)

🎼 Gimme some padding 💃

.u-pl-2

Padding Left with 2 lines (32px)

🎼 Gimme some padding 💃

.u-pl-2-half

Padding Left with 1 line an a half (40px)

🎼 Gimme some padding 💃

.u-pl-3

Padding Left with 2 lines (48px)

🎼 Gimme some padding 💃

.u-pr-auto

Padding Right auto

🎼 Gimme some padding 💃

.u-pr-0

No padding Right

🎼 Gimme some padding 💃

.u-pr-half

Padding Right with half a line (8px)

🎼 Gimme some padding 💃

.u-pr-1

Padding Right with 1 line (16px)

🎼 Gimme some padding 💃

.u-pr-1-half

Padding Right with 1 line an a half (24px)

🎼 Gimme some padding 💃

.u-pr-2

Padding Right with 2 lines (32px)

🎼 Gimme some padding 💃

.u-pr-2-half

Padding Right with 1 line an a half (40px)

🎼 Gimme some padding 💃

.u-pr-3

Padding Right with 2 lines (48px)

🎼 Gimme some padding 💃
<div style="background-color:gainsboro; display: inline-block;" class="[modifier class]"><span style="background-color:bisque;">🎼 Gimme some padding 💃</span></div>

4.7 Spacing

Classes to add spacing between the children elements.

Examples

Default styling

First children
Second children
Third children

.u-stack-xs

Adds extra small spacing between its children

First children
Second children
Third children

.u-stack-s

Adds small spacing between its children

First children
Second children
Third children

.u-stack-m

Adds medium spacing between its children

First children
Second children
Third children

.u-stack-l

Adds large spacing between its children

First children
Second children
Third children

.u-stack-xl

Adds extra large spacing between its children

First children
Second children
Third children

.u-stack-xxl

Adds extra extra large spacing between its children

First children
Second children
Third children
<div class="[modifier class]">
    <div class="u-card">First children</div>
    <div class="u-card">Second children</div>
    <div class="u-card">Third children</div>
</div>

Examples

Default styling

A message with an intention

.u-success

Success text, can be used to indicate that everything is OK.

A message with an intention

.u-warning

Warning text, something seems to be wrong.

A message with an intention

.u-error

Error text, something is definitely wrong. Use with parcimony.

A message with an intention

.u-info

Info text, can be used to add informations.

A message with an intention

<p class="[modifier class]">A message with an intention</p>

4.8.2 Colored text

Utilities that give text a color from the existing palette. In general, try to use variables with semantic names instead of variables with names referring to colors. This will help to support theming.

Examples

Default styling

Hello World!

.u-primaryColor

primaryColor color

Hello World!

.u-primaryColorLight

primaryColorLight color

Hello World!

.u-primaryContrastTextColor

primaryContrastTextColor color

Hello World!

.u-black

block color

Hello World!

.u-white

white color

Hello World!

.u-paleGrey

paleGrey color

Hello World!

.u-silver

silver color

Hello World!

.u-coolGrey

coolGrey color

Hello World!

.u-slateGrey

slateGrey color

Hello World!

.u-charcoalGrey

charcoalGrey color

Hello World!

.u-dodgerBlue

dodgerBlue color

Hello World!

.u-weirdGreen

weirdGreen color

Hello World!

.u-pomegranate

pomegranate color

Hello World!

.u-monza

monza color

Hello World!

.u-overlay

overlay color

Hello World!

.u-lightishPurple

lightishPurple color

Hello World!

<p class="[modifier class]">Hello World!</p>

Examples

Default styling

Aliquam etiam natoque

.u-lh-tiny

Sets a tiny line-height (1)

Aliquam etiam natoque

.u-lh-xsmall

Sets a xsmall line-height (1.1)

Aliquam etiam natoque

.u-lh-small

Sets a small line-height (1.2)

Aliquam etiam natoque

.u-lh-medium

Sets a medium line-height (1.3)

Aliquam etiam natoque

.u-lh-large

Sets a large line-height (1.4)

Aliquam etiam natoque

.u-lh-xlarge

Sets a large line-height (1.5)

Aliquam etiam natoque

<p style="background-color: silver;" class="[modifier class]">Aliquam etiam natoque</p>

Examples

Default styling

Aliquam etiam natoque phasellus habitant interdum a hendrerit ac aliquet

.u-fz-tiny

Sets a tiny font-size (12px)

Aliquam etiam natoque phasellus habitant interdum a hendrerit ac aliquet

.u-fz-xsmall

Sets a xsmall font-size (13px)

Aliquam etiam natoque phasellus habitant interdum a hendrerit ac aliquet

.u-fz-small

Sets a small font-size (14px)

Aliquam etiam natoque phasellus habitant interdum a hendrerit ac aliquet

.u-fz-medium

Sets a medium font-size (16px)

Aliquam etiam natoque phasellus habitant interdum a hendrerit ac aliquet

.u-fz-large

Sets a large font-size (18px)

Aliquam etiam natoque phasellus habitant interdum a hendrerit ac aliquet

<p class="[modifier class]">Aliquam etiam natoque phasellus habitant interdum a hendrerit ac aliquet</p>

Examples

Default styling

Facilisis eget nam turpis id adipiscing facilisi odio ut fames, aliquet laoreet felis habitasse tincidunt litora leo senectus.

.u-fs-normal

Sets a normal font style

Facilisis eget nam turpis id adipiscing facilisi odio ut fames, aliquet laoreet felis habitasse tincidunt litora leo senectus.

.u-fs-italic

Sets an italic font style

Facilisis eget nam turpis id adipiscing facilisi odio ut fames, aliquet laoreet felis habitasse tincidunt litora leo senectus.

<p class="[modifier class]">Facilisis eget nam turpis id adipiscing facilisi odio ut fames, aliquet laoreet felis habitasse tincidunt litora leo senectus.</p>

Examples

Default styling

Facilisis eget nam turpis id adipiscing facilisi odio ut fames, aliquet laoreet felis habitasse tincidunt litora leo senectus.

.u-fw-normal

Sets a normal font weight

Facilisis eget nam turpis id adipiscing facilisi odio ut fames, aliquet laoreet felis habitasse tincidunt litora leo senectus.

.u-fw-bold

Sets a bold font weight

Facilisis eget nam turpis id adipiscing facilisi odio ut fames, aliquet laoreet felis habitasse tincidunt litora leo senectus.

<p class="[modifier class]">Facilisis eget nam turpis id adipiscing facilisi odio ut fames, aliquet laoreet felis habitasse tincidunt litora leo senectus.</p>

Examples

Default styling

Facilisis eget nam turpis id adipiscing facilisi odio ut fames, aliquet laoreet felis habitasse tincidunt litora leo senectus.

.u-ta-left

Sets a left alignment

Facilisis eget nam turpis id adipiscing facilisi odio ut fames, aliquet laoreet felis habitasse tincidunt litora leo senectus.

.u-ta-right

Sets a right alignment

Facilisis eget nam turpis id adipiscing facilisi odio ut fames, aliquet laoreet felis habitasse tincidunt litora leo senectus.

.u-ta-center

Sets a center alignment

Facilisis eget nam turpis id adipiscing facilisi odio ut fames, aliquet laoreet felis habitasse tincidunt litora leo senectus.

.u-ta-justify

Sets a justify alignment

Facilisis eget nam turpis id adipiscing facilisi odio ut fames, aliquet laoreet felis habitasse tincidunt litora leo senectus.

<p class="[modifier class]">Facilisis eget nam turpis id adipiscing facilisi odio ut fames, aliquet laoreet felis habitasse tincidunt litora leo senectus.</p>

Examples

Default styling

Augusta Ada King-Noel, Countess of Lovelace (née Byron; 10 December 1815 – 27 November 1852) was an English mathematician and writer, chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognise

.u-ellipsis

Ellipsis at the end

Augusta Ada King-Noel, Countess of Lovelace (née Byron; 10 December 1815 – 27 November 1852) was an English mathematician and writer, chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognise

<p class="[modifier class]">
   Augusta Ada King-Noel, Countess of Lovelace (née Byron; 10 December 1815 – 27 November 1852) was an English mathematician and writer, chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognise
</p>

Examples

Default styling

Augusta Ada King-Noel, Countess of Lovelace (née Byron; 10 December 1815 – 27 November 1852) was an English mathematician and writer, chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognise

.u-spacellipsis

Ellipsis at the end but keeps breaking spaces

Augusta Ada King-Noel, Countess of Lovelace (née Byron; 10 December 1815 – 27 November 1852) was an English mathematician and writer, chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognise

<p class="[modifier class]">
   Augusta Ada King-Noel, Countess of Lovelace (née Byron; 10 December 1815 – 27 November 1852) was an English mathematician and writer, chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognise
</p>

Examples

Default styling

Augusta Ada King-Noel, Countess of Lovelace (née Byron; 10 December 1815 – 27 November 1852) was an English mathematician and writer, chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognise that the machine had applications beyond pure calculation, and published the first algorithm intended to be carried out by such a machine. As a result, she is often regarded as the first to recognise the full potential of a "computing machine" and the first computer programmer.

.u-midellipsis

Ellipsis in the middle

Augusta Ada King-Noel, Countess of Lovelace (née Byron; 10 December 1815 – 27 November 1852) was an English mathematician and writer, chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognise that the machine had applications beyond pure calculation, and published the first algorithm intended to be carried out by such a machine. As a result, she is often regarded as the first to recognise the full potential of a "computing machine" and the first computer programmer.

<p class="[modifier class]">
   <span>Augusta Ada King-Noel, Countess of Lovelace (née Byron; 10 December 1815 – 27 November 1852) was an English mathematician and writer, chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognise</span>
   <span>that the machine had applications beyond pure calculation, and published the first algorithm intended to be carried out by such a machine. As a result, she is often regarded as the first to recognise the full potential of a "computing machine" and the first computer programmer.</span>
</p>

Examples

Default styling

.u-bxz

Sets the box-sizing of an element to border-box

<div class="[modifier class] u-w-4 u-p-1 u-bg-silver"></div>

Examples

Default styling

Content of a card

.u-card

Adds a rounded outline

Content of a card
<div class="[modifier class]">
    Content of a card
</div>

Examples

Default styling

Suspendisse mauris Nulla ex aptent Nullam praesent

.u-dn

Display none

Suspendisse mauris Nulla ex aptent Nullam praesent

.u-di

Display inline

Suspendisse mauris Nulla ex aptent Nullam praesent

.u-db

Display block

Suspendisse mauris Nulla ex aptent Nullam praesent

.u-dib

Display inline-block

Suspendisse mauris Nulla ex aptent Nullam praesent

.u-dit

Display inline-table

Suspendisse mauris Nulla ex aptent Nullam praesent

.u-dt

Display table

Suspendisse mauris Nulla ex aptent Nullam praesent

.u-dtc

Display table-cell

Suspendisse mauris Nulla ex aptent Nullam praesent

.u-dt-row

Display table-row

Suspendisse mauris Nulla ex aptent Nullam praesent

.u-dt-row-group

Display table-row-group

Suspendisse mauris Nulla ex aptent Nullam praesent

.u-dt-column

Display table-column

Suspendisse mauris Nulla ex aptent Nullam praesent

.u-dt-column-group

Display table-column-group

Suspendisse mauris Nulla ex aptent Nullam praesent
<div class="[modifier class]" style="margin: 1rem; padding: .125rem .25rem; background-color:gainsboro; border: 1px solid black;">
    <span>Suspendisse mauris</span>
    <span>Nulla ex aptent</span>
    <span>Nullam praesent</span>
</div>

Examples

Default styling

Content of a card

.u-elevation-1

Adds a box shadow

Content of a card
<div class="[modifier class]">
    Content of a card
</div>

Examples

Default styling

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex

Display a flex element

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-inline-flex

Display an inline-flex element

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-none

Undisplay a flex element

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.
<div class="[modifier class]" style="background-color:dimgrey; border: 1px solid black;">
    <div style="padding:.5rem; background-color:gainsboro;">Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.</div>
    <div style="padding:.5rem; background-color:gainsboro;">Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.</div>
    <div style="padding:.5rem; background-color:gainsboro;">Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.</div>
</div>

Examples

Default styling

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-column

Set the direction to column

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-row

Set the direction to row

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-column-reverse

Set the direction to column-reverse

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-row-reverse

Set the direction to row-reverse

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.
<div class="u-flex [modifier class]" style="background-color:dimgrey; border: 1px solid black;">
    <div style="padding:.5rem; background-color:gainsboro;">Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.</div>
    <div style="padding:.5rem; background-color:gainsboro;">Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.</div>
    <div style="padding:.5rem; background-color:gainsboro;">Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.</div>
</div>

Examples

Default styling

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-wrap

Set the wrapping to true

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-nowrap

Set the wrapping to false

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-wrap-reverse

Set the reverse wrapping to true

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.
<div class="u-flex [modifier class]" style="background-color:dimgrey; border: 1px solid black;">
    <div style="padding:.5rem; background-color:gainsboro; flex-basis: calc(50% -1rem);">Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.</div>
    <div style="padding:.5rem; background-color:gainsboro; flex-basis: calc(50% -1rem);">Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.</div>
    <div style="padding:.5rem; background-color:gainsboro; flex-basis: calc(50% -1rem);">Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.</div>
</div>

Examples

Default styling

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-items-start

Flex items aligned to flex-start

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-items-end

Flex items aligned to flex-end

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-items-center

Flex items aligned to center

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-items-baseline

Flex items aligned to baseline

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-items-stretch

Flex items aligned to stretch

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.
<div class="u-flex u-flex-nowrap [modifier class]" style="background-color:dimgrey; border: 1px solid black; height: 100px";>
    <div style="padding:.5rem; background-color:gainsboro;">Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.</div>
    <div style="padding:.5rem; background-color:gainsboro;">Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.</div>
    <div style="padding:.5rem; background-color:gainsboro;">Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.</div>
</div>

Examples

Default styling

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-justify-start

Set main axis alignment of flex items to flex-start

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-justify-end

Set main axis alignment of flex items to flex-end

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-justify-center

Set main axis alignment of flex items to center

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-justify-between

Set main axis alignment of flex items to space-between

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-justify-around

Set main axis alignment of flex items to space-around

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-content-start

Set container lines alignment to flex-start

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.
<div class="u-flex u-flex-nowrap [modifier class]" style="background-color:dimgrey; border: 1px solid black; height: 100px";>
    <div style="padding:.5rem; background-color:gainsboro; flex: 0 1 20%">Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.</div>
    <div style="padding:.5rem; background-color:gainsboro; flex: 0 1 20%">Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.</div>
    <div style="padding:.5rem; background-color:gainsboro; flex: 0 1 20%">Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.</div>
</div>

Examples

Default styling

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-content-start

Set container lines alignment to flex-start

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-content-end

Set container lines alignment to flex-end

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-content-center

Set container lines alignment to center

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-content-between

Set container lines alignment to space-between

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-content-around

Set container lines alignment to space-around

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-content-stretch

Set container lines alignment to stretch

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.
<div class="u-flex u-flex-wrap u-flex-items-start [modifier class]" style="background-color:dimgrey; border: 1px solid black; height: 300px";>
    <div style="padding:.5rem; background-color:gainsboro; flex: 0 0 100%">Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.</div>
    <div style="padding:.5rem; background-color:gainsboro; flex: 0 0 100%">Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.</div>
    <div style="padding:.5rem; background-color:gainsboro; flex: 0 0 100%">Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.</div>
</div>

Examples

Default styling

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-self-start

Specific flex item aligned to flex-start

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-self-end

Specific flex item aligned to flex-end

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-self-center

Specific flex item aligned to center

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-self-baseline

Specific flex item aligned to baseline

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.

.u-flex-self-stretch

Specific flex item aligned to stretch

Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.
<div class="u-flex u-flex-nowrap u-flex-items-start" style="background-color:dimgrey; border: 1px solid black; height: 300px";>
    <div style="padding:.5rem; background-color:gainsboro; flex: 0 0 30%">Suspendisse mauris montes elementum varius lectus ullamcorper per, ac praesent maximus curabitur parturient vitae.</div>
    <div class="[modifier class]" style="padding:.5rem; background-color:gainsboro; flex: 0 0 30%">Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.</div>
    <div style="padding:.5rem; background-color:gainsboro; flex: 0 0 30%">Nullam praesent iaculis phasellus vel turpis taciti facilisis, fermentum bibendum himenaeos class efficitur urna, per nam ut parturient enim dapibus.</div>
</div>

Examples

Default styling

item
1
2
3
4
5
6
7
8
9

.u-flex-order-0

Set flex item order to 0

item
1
2
3
4
5
6
7
8
9

.u-flex-order-1

Set flex item order to 1

item
1
2
3
4
5
6
7
8
9

.u-flex-order-2

Set flex item order to 2

item
1
2
3
4
5
6
7
8
9

.u-flex-order-3

Set flex item order to 3

item
1
2
3
4
5
6
7
8
9

.u-flex-order-4

Set flex item order to 4

item
1
2
3
4
5
6
7
8
9

.u-flex-order-5

Set flex item order to 5

item
1
2
3
4
5
6
7
8
9

.u-flex-order-6

Set flex item order to 6

item
1
2
3
4
5
6
7
8
9

.u-flex-order-7

Set flex item order to 7

item
1
2
3
4
5
6
7
8
9

.u-flex-order-8

Set flex item order to 8

item
1
2
3
4
5
6
7
8
9

.u-flex-order-last

Set flex item order to the last position (99999)

item
1
2
3
4
5
6
7
8
9
<div class="u-flex u-flex-nowrap u-flex-items-start" style="background-color:dimgrey; border: 1px solid black;">
    <div class="u-title-h1 [modifier class]" style="padding:.5rem; background-color:red; flex: 0 0 5%">item</div>
    <div class="u-title-h1" style="order:1 ;padding:.5rem; background-color:gainsboro; flex: 0 0 5%">1</div>
    <div class="u-title-h1" style="order:2 ;padding:.5rem; background-color:gainsboro; flex: 0 0 5%">2</div>
    <div class="u-title-h1" style="order:3 ;padding:.5rem; background-color:gainsboro; flex: 0 0 5%">3</div>
    <div class="u-title-h1" style="order:4 ;padding:.5rem; background-color:gainsboro; flex: 0 0 5%">4</div>
    <div class="u-title-h1" style="order:5 ;padding:.5rem; background-color:gainsboro; flex: 0 0 5%">5</div>
    <div class="u-title-h1" style="order:6 ;padding:.5rem; background-color:gainsboro; flex: 0 0 5%">6</div>
    <div class="u-title-h1" style="order:7 ;padding:.5rem; background-color:gainsboro; flex: 0 0 5%">7</div>
    <div class="u-title-h1" style="order:8 ;padding:.5rem; background-color:gainsboro; flex: 0 0 5%">8</div>
    <div class="u-title-h1" style="order:9 ;padding:.5rem; background-color:gainsboro; flex: 0 0 5%">9</div>
</div>

Examples

Default styling

Tincidunt at porttitor augue ac
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Cubilia pharetra faucibus

.u-flex-auto

Make a flex item fill the space

Tincidunt at porttitor augue ac
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Cubilia pharetra faucibus

.u-flex-grow-0

Flex item doesn't grow

Tincidunt at porttitor augue ac
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Cubilia pharetra faucibus

.u-flex-grow-1

Flex item grows

Tincidunt at porttitor augue ac
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.
Cubilia pharetra faucibus
<div class="u-flex u-flex-nowrap u-flex-items-start" style="background-color:dimgrey; border: 1px solid black;">
    <div style="padding:.5rem; background-color:gainsboro;">Tincidunt at porttitor augue ac</div>
    <div class="[modifier class]" style="padding:.5rem; background-color:bisque;">Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum.</div>
    <div style="padding:.5rem; background-color:darkkhaki;">Cubilia pharetra faucibus</div>
</div>

Examples

Default styling

Tincidunt at porttitor augue ac
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum commodo parturient condimentum.
Cubilia pharetra faucibus commodo parturient condimentum inceptos montes nisl egestas facilisis.

.u-flex-shrink-0

Flex item doesn't shrink

Tincidunt at porttitor augue ac
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum commodo parturient condimentum.
Cubilia pharetra faucibus commodo parturient condimentum inceptos montes nisl egestas facilisis.

.u-flex-shrink-1

Flex item shrinks

Tincidunt at porttitor augue ac
Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum commodo parturient condimentum.
Cubilia pharetra faucibus commodo parturient condimentum inceptos montes nisl egestas facilisis.
<div class="u-flex u-flex-nowrap u-flex-items-start" style="background-color:dimgrey; border: 1px solid black;">
    <div style="padding:.5rem; background-color:gainsboro;">Tincidunt at porttitor augue ac</div>
    <div class="[modifier class]" style="padding:.5rem; background-color:bisque;">Nulla ex aptent eleifend tempus mauris habitant imperdiet porta, ac mattis lobortis felis per dictum commodo parturient condimentum.</div>
    <div style="padding:.5rem; background-color:darkkhaki;">Cubilia pharetra faucibus commodo parturient condimentum inceptos montes nisl egestas facilisis.</div>
</div>

Examples

Default styling

  • Suspendisse mauris
  • Nulla ex aptent
  • Nullam praesent

.u-nolist

Remove the bullet point from a list

  • Suspendisse mauris
  • Nulla ex aptent
  • Nullam praesent
<ul class="[modifier class]">
    <li>Suspendisse mauris</li>
    <li>Nulla ex aptent</li>
    <li>Nullam praesent</li>
</ul>

Examples

Default styling

Nulla ex aptent

.u-pos-absolute

Absolute position

Nulla ex aptent

.u-pos-relative

Relative position

Nulla ex aptent

.u-pos-fixed

Fixed position (relative to the viewport)

Nulla ex aptent

.u-pos-sticky

Sticky position

Nulla ex aptent

.u-pos-static

Static position

Nulla ex aptent
<div style="position: relative; margin: 1rem; padding: .125rem .25rem; background-color:gainsboro; border: 1px solid black;">
    <div class="[modifier class]" style="background-color:green;">Nulla ex aptent</div>
</div>

Examples

Default styling

.u-top-0

Top 0

.u-top-xs

Top XS

.u-top-s

Top S

.u-top-m

Top M

.u-top-l

Top L

.u-top-xl

Top XL

.u-top-xxl

Top XXL

.u-bottom-0

Bottom 0

.u-bottom-xs

Bottom XS

.u-bottom-s

Bottom S

.u-bottom-m

Bottom M

.u-bottom-l

Bottom L

.u-bottom-xl

Bottom XL

.u-bottom-xxl

Bottom XXL

.u-left-0

Left 0

.u-left-xs

Left XS

.u-left-s

Left S

.u-left-m

Left M

.u-left-l

Left L

.u-left-xl

Left XL

.u-left-xxl

Left XXL

.u-right-0

Right 0

.u-right-xs

Right XS

.u-right-s

Right S

.u-right-m

Right M

.u-right-l

Right L

.u-right-xl

Right XL

.u-right-xxl

Right XXL

<div style="position: relative; margin: 1rem; padding: .125rem .25rem; background-color:gainsboro; border: 1px solid black; height: 100px;">
    <div class="u-pos-absolute u-w-1 u-h-1 [modifier class]" style="background-color:green;"></div>
</div>

Examples

Default styling

 

.u-w-auto

Cancel width

 

.u-w-half

Apply width half step in scale (0.5rem = 8px)

 

.u-w-1

Apply width 1st step in scale (1rem = 16px)

 

.u-w-1-half

Apply width 1st step + half in scale (1.5rem = 24px)

 

.u-w-2

Apply width 2nd step in scale (2rem = 32px)

 

.u-w-2-half

Apply width 2nd step + half in scale (2.5rem = 40px)

 

.u-w-3

Apply width 3rd step in scale (4rem = 64px)

 

.u-w-4

Apply width 4th step in scale (8rem = 128px)

 

.u-w-5

Apply width 5th step in scale (16rem = 256px)

 

.u-w-6

Apply width 6th step in scale (32rem = 512px)

 

.u-w-7

Apply width 7th step in scale (48rem = 768px)

 

.u-w-8

Apply width 8th step in scale (64rem = 1024px)

 

.u-w-9

Apply width 9th step in scale (96rem = 1536px)

 

.u-w-100

Apply width 100%

 

.u-h-auto

Cancel height

 

.u-h-half

Apply height half step in scale (0.5rem = 8px)

 

.u-h-1

Apply height 1st step in scale (1rem = 16px)

 

.u-h-1-half

Apply height 1st step + half in scale (1.5rem = 24px)

 

.u-h-2

Apply height 2nd step in scale (2rem = 32px)

 

.u-h-2-half

Apply height 2nd step + half in scale (2.5rem = 40px)

 

.u-h-3

Apply height 3rd step in scale (4rem = 64px)

 

.u-h-4

Apply height 4th step in scale (8rem = 128px)

 

.u-h-5

Apply height 5th step in scale (16rem = 256px)

 

.u-h-6

Apply height 6th step in scale (32rem = 512px)

 

.u-h-7

Apply height 7th step in scale (48rem = 768px)

 

.u-h-8

Apply height 8th step in scale (64rem = 1024px)

 

.u-h-9

Apply height 9th step in scale (96rem = 1536px)

 

.u-h-100

Apply height 100%

 
<div class="[modifier class]" style="display: inline-block;background-color:gainsboro; border: 1px solid black;">&nbsp;</div>

Examples

Default styling

 

.u-miw-auto

Cancel min-width

 

.u-miw-half

Apply min-width half step in scale (0.5rem = 8px)

 

.u-miw-1

Apply min-width 1st step in scale (1rem = 16px)

 

.u-miw-1-half

Apply min-width 1st step + half step in scale (1.5rem = 24px)

 

.u-miw-2

Apply min-width 2nd step in scale (2rem = 32px)

 

.u-miw-2-half

Apply min-width 2nd step + half step in scale (2.5rem = 40px)

 

.u-miw-3

Apply min-width 3rd step in scale (4rem = 64px)

 

.u-miw-4

Apply min-width 4th step in scale (8rem = 128px)

 

.u-miw-5

Apply min-width 5th step in scale (16rem = 256px)

 

.u-miw-6

Apply min-width 6th step in scale (32rem = 512px)

 

.u-miw-7

Apply min-width 7th step in scale (48rem = 768px)

 

.u-miw-8

Apply min-width 8th step in scale (64rem = 1024px)

 

.u-miw-9

Apply min-width 9th step in scale (96rem = 1536px)

 

.u-miw-100

Apply min-width 100%

 

.u-mih-auto

Cancel min-height

 

.u-mih-half

Apply min-height half step in scale (0.5rem = 8px)

 

.u-mih-1

Apply min-height 1st step in scale (1rem = 16px)

 

.u-mih-1-half

Apply min-height 1st step + half step in scale (1.5rem = 24px)

 

.u-mih-2

Apply min-height 2nd step in scale (2rem = 32px)

 

.u-mih-2-half

Apply min-height 2nd step + half step in scale (2.5rem = 40px)

 

.u-mih-3

Apply min-height 3rd step in scale (4rem = 64px)

 

.u-mih-4

Apply min-height 4th step in scale (8rem = 128px)

 

.u-mih-5

Apply min-height 5th step in scale (16rem = 256px)

 

.u-mih-6

Apply min-height 6th step in scale (32rem = 512px)

 

.u-mih-7

Apply min-height 7th step in scale (48rem = 768px)

 

.u-mih-8

Apply min-height 8th step in scale (64rem = 1024px)

 

.u-mih-9

Apply min-height 9th step in scale (96rem = 1536px)

 

.u-mih-100

Apply min-height 100%

 
<div class="[modifier class]" style="display: inline-block;background-color:gainsboro; border: 1px solid black; min-width: 20px;">&nbsp;</div>

Examples

Default styling

 

.u-maw-auto

Cancel max-width

 

.u-maw-1

Apply max-width 1st step in scale (1rem = 16px)

 

.u-maw-2

Apply max-width 2nd step in scale (2rem = 32px)

 

.u-maw-3

Apply max-width 3rd step in scale (4rem = 64px)

 

.u-maw-4

Apply max-width 4th step in scale (8rem = 128px)

 

.u-maw-5

Apply max-width 5th step in scale (16rem = 256px)

 

.u-maw-6

Apply max-width 6th step in scale (32rem = 512px)

 

.u-maw-7

Apply max-width 7th step in scale (48rem = 768px)

 

.u-maw-8

Apply max-width 8th step in scale (64rem = 1024px)

 

.u-maw-9

Apply max-width 9th step in scale (96rem = 1536px)

 

.u-maw-100

Apply max-width 100%

 

.u-mah-auto

Cancel max-height

 

.u-mah-1

Apply max-height 1st step in scale (1rem = 16px)

 

.u-mah-2

Apply max-height 2nd step in scale (2rem = 32px)

 

.u-mah-3

Apply max-height 3rd step in scale (4rem = 64px)

 

.u-mah-4

Apply max-height 4th step in scale (8rem = 128px)

 

.u-mah-5

Apply max-height 5th step in scale (16rem = 256px)

 

.u-mah-6

Apply max-height 6th step in scale (32rem = 512px)

 

.u-mah-7

Apply max-height 7th step in scale (48rem = 768px)

 

.u-mah-8

Apply max-height 8th step in scale (64rem = 1024px)

 

.u-mah-9

Apply max-height 9th step in scale (96rem = 1536px)

 

.u-mah-100

Apply max-height 100%

 
<div class="[modifier class]" style="background-color:gainsboro; border: 1px solid black;">&nbsp;</div>

Examples

Default styling

.u-bg-black

block color

.u-bg-white

white color

.u-bg-paleGrey

paleGrey color

.u-bg-silver

silver color

.u-bg-coolGrey

coolGrey color

.u-bg-slateGrey

slateGrey color

.u-bg-charcoalGrey

charcoalGrey color

.u-bg-dodgerBlue

dodgerBlue color

.u-bg-pomegranate

pomegranate color

.u-bg-monza

monza color

.u-bg-lightishPurple

lightishPurple color

.u-bg-weirdGreen

weirdGreen color

.u-bg-overlay

overlay color

.u-bg-primaryColor

primaryColor color

.u-bg-primaryBackgroundLight

primaryBackgroundLight color

.u-bg-errorBackground

errorBackground color

.u-bg-neutralBackgroundLight

neutralBackgroundLight color

<div class="[modifier class]" style="display: inline-block; width: 10rem; height: 2rem; border: 1px solid black;"></div>

Examples

Default styling

.u-o-100

opacity: 1

.u-o-90

opacity: .9

.u-o-80

opacity: .8

.u-o-70

opacity: .7

.u-o-60

opacity: .6

.u-o-50

opacity: .5

.u-o-40

opacity: .4

.u-o-30

opacity: .3

.u-o-20

opacity: .2

.u-o-10

opacity: .1

.u-o-05

opacity: .05

.u-o-025

opacity: .025

.u-o-0

opacity: 0

<div class="[modifier class]" style="display: inline-block; width: 10rem; height: 2rem; border: 1px solid black;"></div>

Example

Will be shaked
<div class="">
    Will be shaked
</div>

Examples

Default styling

Non habitant lobortis hac maecenas eleifend donec parturient, lacinia aenean ac varius mattis purus scelerisque, congue montes dapibus tempor semper proin. Ullamcorper malesuada proin nec accumsan fermentum ac suspendisse posuere, lectus tristique tortor lorem faucibus primis sodales.

.u-ov-visible

Sets a visible overflow

Non habitant lobortis hac maecenas eleifend donec parturient, lacinia aenean ac varius mattis purus scelerisque, congue montes dapibus tempor semper proin. Ullamcorper malesuada proin nec accumsan fermentum ac suspendisse posuere, lectus tristique tortor lorem faucibus primis sodales.

.u-ov-hidden

Sets an hidden overflow

Non habitant lobortis hac maecenas eleifend donec parturient, lacinia aenean ac varius mattis purus scelerisque, congue montes dapibus tempor semper proin. Ullamcorper malesuada proin nec accumsan fermentum ac suspendisse posuere, lectus tristique tortor lorem faucibus primis sodales.

.u-ov-scroll

Sets a scroll overflow

Non habitant lobortis hac maecenas eleifend donec parturient, lacinia aenean ac varius mattis purus scelerisque, congue montes dapibus tempor semper proin. Ullamcorper malesuada proin nec accumsan fermentum ac suspendisse posuere, lectus tristique tortor lorem faucibus primis sodales.

.u-ov-auto

Sets an auto overflow

Non habitant lobortis hac maecenas eleifend donec parturient, lacinia aenean ac varius mattis purus scelerisque, congue montes dapibus tempor semper proin. Ullamcorper malesuada proin nec accumsan fermentum ac suspendisse posuere, lectus tristique tortor lorem faucibus primis sodales.
<div style="border:1px solid var(--dividerColor);" class="u-mb-2 u-p-half u-w-5 u-h-4 [modifier class]">Non habitant lobortis hac maecenas eleifend donec parturient, lacinia aenean ac varius mattis purus scelerisque, congue montes dapibus tempor semper proin. Ullamcorper malesuada proin nec accumsan fermentum ac suspendisse posuere, lectus tristique tortor lorem faucibus primis sodales.</div>

4.22 Filter

Applies graphical effects like grayscale to an element. Filters are commonly used to adjust the rendering of images, backgrounds, and borders.

Examples

Default styling

.u-filter-gray-100

filter: grayscale(1)

<img class="[modifier class]" src="https://cozy.io/fr/images/cozy-logo_white.png" alt="" width="50" heigh="50">