Zum Inhalt springen
Kitbay
Skill

bootstrap-component

MITAktualisiert am 11. Nov. 2026175.039GitHub-Sterne

One of the skills the Bootstrap team keeps in the Bootstrap repository, for building the CSS and markup of a Bootstrap 6 component.

Was der Skill vermittelt

One of the skills the Bootstrap team keeps in the Bootstrap repository, for building the CSS and markup of a Bootstrap 6 component. It walks the agent through a nine-step checklist: naming the component, creating a Sass partial with an overridable token map, writing the base class inside a cascade layer, adding modifiers, variants and sizes, wiring theme colours, writing accessible, keyboard-friendly and right-to-left-safe markup, registering the partial, documenting it on the docs site, and checking the result with the repository's lint, build and docs scripts. A closing section covers people using Bootstrap in their own project, showing how to add a custom component in a custom layer or retune existing ones through CSS variables.

Funktionen

  • Create a Bootstrap 6 component's Sass partial and token map
  • Add modifier, variant and size classes
  • Wire components to theme colour variables
  • Add custom components in a user project's custom layer