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.

Text

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.

Headline
XXL
Serif

Heading

Headline
XXL
Sans

Heading

Headline
XL
Serif

Heading

Headline
XL
Sans

Heading

Headline
L

Heading

Headline
M

Heading

Headline
S
Heading
Headline
XS
Heading
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.
Text XSS
This is some text inside of a div block.
Eyebrow
This is some text inside of a div block.
Eyebrow Filled
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 - Primary
Background - Secondary
Background - Tertiary
Background - Quaternary
Background - Neutral 1
Background - Neutral 2
Background - Bonus 1
Background - Bonus 2
Text - Primary
This is some text inside of a div block.
Text - Secondary
This is some text inside of a div block.
Text - Tertiary
This is some text inside of a div block.
Text - Quaternary
This is some text inside of a div block.
Text - Denim
This is some text inside of a div block.
Text - Black
This is some text inside of a div block.
Text - White
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
Small
Contact
Button
Large
Button Text
Button
Arrow
Button Text
Button
Small
Arrow
Button Text
Button
Large
Arrow
Button Text
Button
Secondary
Button Text
Button
Small
Secondary
Button Text
Button
Large
Secondary
Button Text
Button
Arrow
Secondary
Button Text
Button
Small
Arrow
Secondary
Button Text
Button
Large
Arrow
Secondary
Button Text
Button
Tertiary
Button Text
Button
Small
Tertiary
Button Text
Button
Large
Tertiary
Button Text
Button
Arrow
Tertiary
Button Text
Button
Small
Arrow
Tertiary
Button Text
Button
Large
Arrow
Tertiary
Button Text
Button
Transparent
Read more
Button
Transparent
Small
Button Text