The Styleguide of
Typography
*Headings
Heading Visual Type Scale
Heading Visual Type Scale
Heading Visual Type Scale
Heading Visual Type Scale
Heading Visual Type Scale
Heading Visual Type Scale
*Headings Classes
*Paragraph Classes
Paragraph (p-leading) - 36px / 1.4-
Paragraph (p-body) - 22px / 1.4-
Paragraph (p-body .regular) - 22px / 1.4-
Paragraph (p-body .bold) - 22px / 1.4-
Paragraph (p-body .extra) - 28px / 1.4-
Paragraph (p-small) - 18px / 1.4-
Paragraph (p-tiny) - 12px / 1.6-
Subtitle - 16px / 1.6-
Overline - 14px / 1.4-
Overline .small - 12px / 1.4-
Text Link - 22px / 1.4-Paragraph
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.
Note: The paragraph font size should be set on the root ' All Paragraphs)' tag.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.
Note: The paragraph font size should be set on the root ' All Paragraphs)' tag.
This is an H1 heading inside rich text
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.
This is an H2 heading inside rich text
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!
This is an H3 heading inside 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.
This is an H4 heading inside rich text
This is an H5 heading inside rich text
This is an H6 heading inside rich text
This is an H1 heading inside rich text
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.
This is an H2 heading inside rich text heading inside rich text
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!
This is an H3 heading inside 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.
This is an H4 heading inside rich text
This is an H5 heading inside rich text
This is an H6 heading inside rich text
Colors
*Brand palette
Primary
Primary
Primary
Secondary
Secondary
Secondary
*Functional palette
Success
Success
Success
Danger
Danger
Danger
Warning
Warning
Warning
Info
Info
Info
*Neutral palette
bg-light-mode
Black
950
900
800
700
600
500
400
300
200
100
50
White
Text-primary
Text secondary
*States
Hover
Focus
Disabled
Secondary Hover
Focus
Disabled
*Elevation
Elevation 1
Elevation 2
Elevation 3
Elevation 4
Prevent styles clean up
*Text alignment classes
text-left
text-center
text-right
*Other global classes
modal open
modal-close
How to Structure your page content?
- .main-wrapper - Use a <main> tag
- .section-[section__name] - Use a <section> tag
- .page-spacing__small / medium / large - padding: top & bottom; margin: left & right - Auto; width: 100%
- .container-small / medium / large - padding: left & right; margin: left & right - Auto; MAX width: 100em.; width: 100%
- .hero__parent
- .hero__child
Name classes using BEM(Block Element Modifier)
add an element: Ctrl + E or K
add a class: Ctrl + Enter
Navbar
For example: nav__logo-wrapper ; nav__logo-img
Button
Combo classes
If you have a text element and you reuse it in another section, but you want it to be different style, just add a combo class to it.
For example: class body; combo class: is--bgtext-primary
Note! If your element already has a predefined value, the combo class won't work.