本文へスキップ
Kitbay
スキル

bootstrap-component

MIT2026年11月11日 更新175,039GitHubスター

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

スキルの内容

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.

できること

  • 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