Foundations

Backgrounds

Use background helpers to apply KitFront brand, light, dark, and gradient backgrounds. Choose the tab that matches your starter.

Color background classes

Bootstrap color background classes apply the background color and matching text color.

BackgroundClassDefaultText Color
Brand 1.kf-bg-brand-1#ff2056White
Brand 2.kf-bg-brand-2#fe9a00White
Light 1.kf-bg-light-1#fff1f5Black
Light 2.kf-bg-light-2#fff6e8Black
Light 3.kf-bg-light-3#f5f7f9Black
Dark 1.kf-bg-dark-1#111827White
Dark 2.kf-bg-dark-2#100104White

Color background tokens

These defaults are defined in assets/css/core.css.

BackgroundTokenDefault
Brand 1--kf-brand-color-1#ff2056
Brand 2--kf-brand-color-2#fe9a00
Light 1--kf-bg-light-1#fff1f5
Light 2--kf-bg-light-2#fff6e8
Light 3--kf-bg-light-3#f5f7f9
Dark 1--kf-bg-dark-1#111827
Dark 2--kf-bg-dark-2#100104

Use color backgrounds

Add the class to a section or block.

<section class="kf-section kf-bg-light-1">
  ...
</section>

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

Gradient background classes

Gradient background classes apply the gradient background and white text color.

BackgroundClassDefaultText Color
Gradient 1.kf-bg-gradient-1gradientWhite
Gradient 2.kf-bg-gradient-2gradientWhite

Gradient background tokens

These defaults are defined in assets/css/core.css.

BackgroundTokenDefault
Gradient 1--kf-bg-gradient-1linear-gradient(135deg, #ff2056, #c4003a)
Gradient 2--kf-bg-gradient-2linear-gradient(135deg, #fe9a00, #d97706)

Use gradient backgrounds

Add the gradient class to a section or block.

<section class="kf-section kf-bg-gradient-1">
  ...
</section>
KitFront in action
...

times sections explored and used by developers worldwide.

More developers are exploring KitFront every day — finding the right sections and building faster.

And the number keeps growing.