Foundations

Section Structure

KitFront sections share spacing, background, and naming patterns. Bootstrap and Tailwind use different files and class styles, so choose the tab that matches your starter.

Common section class

Standard Bootstrap sections use .kf-section from assets/css/core.css for vertical spacing and clipped horizontal overflow.

ItemClassRule
Section Class.kf-sectionpadding: var(--kf-section-padding-large-desktop) 0; overflow-x: clip;
<section class="kf-section features-01">
  ...
</section>

Section spacing

Bootstrap section spacing comes from CSS variables in assets/css/core.css. Each breakpoint has its own token.

ScreenTokenDefault
Large Desktop--kf-section-padding-large-desktop100px
Desktop--kf-section-padding-desktop80px
Tablet--kf-section-padding-tablet65px
Mobile--kf-section-padding-mobile50px
--kf-section-padding-large-desktop: 100px;
--kf-section-padding-desktop: 80px;
--kf-section-padding-tablet: 65px;
--kf-section-padding-mobile: 50px;

Change these tokens to update section spacing across the Bootstrap starter.

Section-specific class

Each Bootstrap section also has its own class, such as features-01, pricing-03, or testimonials-06. Paste the matching section CSS into assets/css/style.css.

Background helpers

Add a background helper class to the section element when you want to change its background quickly.

StyleClassRule
Brand 1.kf-bg-brand-1background: var(--kf-brand-color-1); color: var(--kf-white);
Brand 2.kf-bg-brand-2background: var(--kf-brand-color-2); color: var(--kf-white);
Light 1.kf-bg-light-1background: var(--kf-bg-light-1); color: var(--kf-body-text);
Light 2.kf-bg-light-2background: var(--kf-bg-light-2); color: var(--kf-body-text);
Light 3.kf-bg-light-3background: var(--kf-bg-light-3); color: var(--kf-body-text);
Dark 1.kf-bg-dark-1background: var(--kf-bg-dark-1); color: var(--kf-white);
Dark 2.kf-bg-dark-2background: var(--kf-bg-dark-2); color: var(--kf-white);
Gradient 1.kf-bg-gradient-1background: var(--kf-bg-gradient-1); color: var(--kf-white);
Gradient 2.kf-bg-gradient-2background: var(--kf-bg-gradient-2); color: var(--kf-white);
<section class="kf-section features-01 kf-bg-light-1">
  ...
</section>

<section class="kf-section features-01 kf-bg-dark-1">
  ...
</section>

These helpers use color variables from assets/css/core.css, so token changes update every section that uses them.

Section Used

...

Sections copied so far!