:root { --body-vw: 18vw; --body-px: 18px; --text-l-vw: 20vw; --text-l-px: 20px; --text-m-vw: 16vw; --text-m-px: 16px; --text-s-vw: 14vw; --text-s-px: 14px; --xxl-vw: 64vw; --xxl-px: 64px; --xl-vw: 56vw; --xl-px: 56px; --l-vw: 42vw; --l-px: 42px; --m-vw: 36vw; --m-px: 36px; --s-vw: 24vw; --s-px: 24px; --xs-vw: 20vw; --xs-px: 20px; } @media only screen and (min-width: 1440px) { body { font-size: calc((var(--body-vw)) / 1440 * 100); } .text-l { font-size: calc((var(--text-l-vw)) / 1440 * 100); } .text-m { font-size: calc((var(--text-m-vw)) / 1440 * 100); } .text-s { font-size: calc((var(--text-s-vw)) / 1440 * 100); } h1, .headline.xxl { font-size: calc((var(--xxl-vw)) / 1440 * 100); } h2, .headline.xl { font-size: calc((var(--xl-vw)) / 1440 * 100); } h3, .headline.l { font-size: calc((var(--l-vw)) / 1440 * 100); } h4, .headline.m { font-size: calc((var(--m-vw)) / 1440 * 100); } h5, .headline.s { font-size: calc((var(--s-vw)) / 1440 * 100); } h6, .headline.xs { font-size: calc((var(--xs-vw)) / 1440 * 100); } } @media only screen and (min-width: 1920px) { body { font-size: calc((var(--body-px)) * 1.3333); } .text-l { font-size: calc((var(--text-l-px)) * 1.3333); } .text-m { font-size: calc((var(--text-m-px)) * 1.3333); } .text-s { font-size: calc((var(--text-s-px)) * 1.3333); } h1, .headline.xxl { font-size: calc((var(--xxl-px)) * 1.3333); } h2, .headline.xl { font-size: calc((var(--xl-px)) * 1.3333); } h3, .headline.l { font-size: calc((var(--l-px)) * 1.3333); } h4, .headline.m { font-size: calc((var(--m-px)) * 1.3333); } h5, .headline.s { font-size: calc((var(--s-px)) * 1.3333); } h6, .headline.xs { font-size: calc((var(--xs-px)) * 1.3333); } }

Knockout setup

Before starting a Knockout project, we must configure its style guide. In this way we will not have to apply the styles to the elements over and over again, but we will have everything defined before starting with that project.

Headline sizes correspond to but are independent of H1-H6 sizes, & can be overridden at tablet & mobile breakpoints. Font sizes convert to VW units above 1440px & back to pixel units at 1920px.

Tip: Type sizes for larger viewports are calculated in the Large Viewport Type embed within the Custom Code symbol. Apply the Desktop sizes to the embedded variables & the custom CSS will make the calculations for you.

Tip: Paragraph word-spacing is set in the Custom Code.

Tip: There are modifier classes for each viewport, but you must switch to tablet view to see tablet classes & mobile view to see mobile classes.

Text

headline-H1

Heading

headline-H2

Heading

headline-H3

Heading

headline-H4

Heading

headline-H5
Heading
headline-H6-caps
Heading
headline-H6
Heading
Tablet viewport icon.
More classes available at tablet viewport
Headline
XXL Tab

Heading

Headline
XL Tab

Heading

Headline
L Tab

Heading

Headline
M Tab

Heading

Headline
S Tab

Heading

Headline
XS Tab

Heading

Mobile viewport icon.
More classes available at mobile viewport
Headline
XXL Mob

Heading

Headline
XL Mob

Heading

Headline
L Mob

Heading

Headline
M Mob

Heading

Headline
S Mob

Heading

Headline
XS Mob

Heading

Text XL
This is some text inside of a div block.
Text L
This is some text inside of a div block.
Text M
This is some text inside of a div block.
Text S
This is some text inside of a div block.
Text XS
This is some text inside of a div block.
Tablet viewport icon.
More classes available at tablet viewport
Text L Tab
This is some text inside of a div block.
Text M Tab
This is some text inside of a div block.
Text S Tab
This is some text inside of a div block.
Mobile viewport icon.
More classes available at mobile viewport
Text L Mob
This is some text inside of a div block.
Text M Mob
This is some text inside of a div block.
Text S Mob
This is some text inside of a div block.

Rich Text

Rich Text

What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Static and dynamic content editing

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

How to customize formatting for each rich text

Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.

Colors

The color suite is based around a 4 color system, but can accommodate bonus colors at the end of the palette. Class names are not intended to be changed. Customization of colors should be done by editing the color swatch, rather editing than the classes directly, in order to avoid breaking how the colors are mapped to elements (Text - Primary, Background - Primary, Button Primary, etc.).

Background Black
Background White
Background Green
Background Lekko
Background Lekko Green
Background Mieterlink
Background - Neutral 1
Background - Neutral 2
Background - Neutral 3
Background - Neutral 4
Background - Neutral 5
Background - Neutral 6
Background - Bonus 1
Background - Bonus 2
Background - Bonus 3
Text Black
This is some text inside of a div block.
Text - White
This is some text inside of a div block.
Text Dark Gray
This is some text inside of a div block.
Text Gray
This is some text inside of a div block.
Text - Quaternary
This is some text inside of a div block.

Buttons

Knockout's button suite relies heavily on inheritance. Basic styles like type and corner radius are defined at the Button class level, so always customize these elements at the broadest level that makes sense.

Button
White
Button
Icon
Link icon black
Button Text
Button
Tertiary
Button Text
Button
Quaternary
Button Text
Button
Transparent
Button Text
Button
Transparent
White
Button
Transparent
Primary
Button Text
Button
Transparent
Secondary
Button Text
Button
Disabled
Button Text
Button
Disabled
Primary
Button Text
Button
Disabled
Primary
Button Text
CTA
Black
Text Link
CTA
White
Link Block