Foundations

Spacing

KitFront starter kits include ready spacing for containers, sections, content, and reusable section headings. Choose the tab that matches your starter.

Container

Bootstrap container values are defined in assets/css/core.css and applied to .container and Bootstrap container variants.

ItemToken / ClassValue
Max Width--kf-container-width1600px
Large Screenswidthcalc(100% - 140px)
Tabletwidthcalc(100% - 80px)
Mobilewidthcalc(100% - 16px)

Section spacing

.kf-section uses responsive top and bottom padding variables.

ItemToken / ClassValue
Large Desktop--kf-section-padding-large-desktop100px
Desktop--kf-section-padding-desktop80px
Tablet--kf-section-padding-tablet65px
Mobile--kf-section-padding-mobile50px

Content spacing

Default heading and paragraph spacing comes from global margin variables.

ItemToken / ClassValue
Heading Margin--kf-heading-margin-bottom24px
Paragraph Margin--kf-paragraph-margin-bottom24px

Section heading layout

.kf-section-heading controls common section title spacing, alignment, and split heading layout.

ItemToken / ClassValue
Max Widthmax-width800px
Inner Gapgap12px
Default Marginmargin-bottom80px
Less Marginmargin-bottom50px
Tablet Marginmargin-bottom60px
Mobile Marginmargin-bottom40px
Split Gapgap80px
Split Description Offsetpadding-top36px

Customize spacing

Update the spacing variables and layout rules in assets/css/core.css. Sections using KitFront classes will follow those values.

Section Used

...

Sections copied so far!