Pular para o conteúdo
Kitbay
Skill

bootstrap-component

MITAtualizado em 11 de nov. de 2026175.039Estrelas no GitHub

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

O que a skill ensina

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.

O que faz

  • 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