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.
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.
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!
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.
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.).