Customization

Container

Container settings control the maximum content width and side spacing of your website. KitFront handles containers differently for Bootstrap and Tailwind starter kits, so choose the framework you are using.

Container Width

The main container width is controlled by this variable:

Container Width
--kf-container-width
1600px

Increase this value for wider layouts or reduce it for a more compact website.

How Bootstrap Containers Work

KitFront applies the same maximum width to all Bootstrap container classes, then uses calc() to keep consistent spacing from the left and right edges of the screen.

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  max-width: var(--kf-container-width);
  width: calc(100% - 140px);
}

Responsive Side Spacing

The container side spacing changes at smaller breakpoints so content remains comfortable to read across all screen sizes.

BreakpointContainer Width
Large Desktop / Desktopcalc(100% - 140px)
Tablet (< 1200px)calc(100% - 80px)
Mobile (< 768px)calc(100% - 16px)
@media (max-width: 1199.98px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    width: calc(100% - 80px);
  }
}

@media (max-width: 767.98px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    width: calc(100% - 16px);
  }
}

Using Your Own Container Settings

You can update --kf-container-width or adjust the responsive width values inside assets/css/core.css to match your project layout.

If your project requires Bootstrap's default container behavior, you can remove or modify the KitFront container override.