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.
| Item | Class | Rule |
|---|---|---|
| Section Class | .kf-section | padding: 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.
| Screen | Token | Default |
|---|---|---|
| Large Desktop | --kf-section-padding-large-desktop | 100px |
| Desktop | --kf-section-padding-desktop | 80px |
| Tablet | --kf-section-padding-tablet | 65px |
| Mobile | --kf-section-padding-mobile | 50px |
--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.
| Style | Class | Rule |
|---|---|---|
| Brand 1 | .kf-bg-brand-1 | background: var(--kf-brand-color-1); color: var(--kf-white); |
| Brand 2 | .kf-bg-brand-2 | background: var(--kf-brand-color-2); color: var(--kf-white); |
| Light 1 | .kf-bg-light-1 | background: var(--kf-bg-light-1); color: var(--kf-body-text); |
| Light 2 | .kf-bg-light-2 | background: var(--kf-bg-light-2); color: var(--kf-body-text); |
| Light 3 | .kf-bg-light-3 | background: var(--kf-bg-light-3); color: var(--kf-body-text); |
| Dark 1 | .kf-bg-dark-1 | background: var(--kf-bg-dark-1); color: var(--kf-white); |
| Dark 2 | .kf-bg-dark-2 | background: var(--kf-bg-dark-2); color: var(--kf-white); |
| Gradient 1 | .kf-bg-gradient-1 | background: var(--kf-bg-gradient-1); color: var(--kf-white); |
| Gradient 2 | .kf-bg-gradient-2 | background: 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.
Common section class
Tailwind sections use .kf-section from src/assets/css/input.css for responsive vertical spacing and clipped horizontal overflow.
| Item | Class | Utilities |
|---|---|---|
| Section Class | .kf-section | py-12.5 md:py-16.25 lg:py-20 2xl:py-25 overflow-x-clip |
<section class="kf-section">
...
</section>Section spacing
In the Tailwind starter, .kf-section is defined inside @layer utilities with Tailwind utility classes.
| Screen | Class | Value |
|---|---|---|
| Mobile | py-12.5 | 50px |
| Tablet | md:py-16.25 | 65px |
| Desktop | lg:py-20 | 80px |
| Large Desktop | 2xl:py-25 | 100px |
.kf-section {
@apply py-12.5 md:py-16.25 lg:py-20 2xl:py-25 overflow-x-clip;
}Change these utilities in src/assets/css/input.css to update section spacing across Tailwind sections.
Section-specific classes
Tailwind sections are styled mostly with utility classes in the HTML. Some sections still include a section-specific class for JavaScript or unique targeting.
Background utilities
Tailwind sections use background and text utilities. Add or replace these classes on the section element to change color.
| Style | Classes | Result |
|---|---|---|
| Brand 1 | bg-kf-brand-color-1 text-white | Brand background with white text |
| Brand 2 | bg-kf-brand-color-2 text-white | Secondary brand background with white text |
| Light 1 | bg-kf-bg-light-1 text-kf-body-text | Light background with body text |
| Light 2 | bg-kf-bg-light-2 text-kf-body-text | Light background with body text |
| Light 3 | bg-kf-bg-light-3 text-kf-body-text | Light background with body text |
| Dark 1 | bg-kf-bg-dark-1 text-white | Dark background with white text |
| Dark 2 | bg-kf-bg-dark-2 text-white | Dark background with white text |
| Gradient 1 | bg-linear-to-br from-kf-gradient-1-start to-kf-gradient-1-end text-white | Brand gradient with white text |
| Gradient 2 | bg-linear-to-br from-kf-gradient-2-start to-kf-gradient-2-end text-white | Brand gradient with white text |
<section class="kf-section bg-kf-bg-light-1 text-kf-body-text">
...
</section>
<section class="kf-section bg-kf-bg-dark-1 text-white">
...
</section>These utilities come from @theme tokens in src/assets/css/input.css.
