ui-component

Installation
SKILL.md

UI Component

HTML

  • Use semantic HTML elements wherever possible; e.g. display time with <time datetime="...">.
  • Use <button> for buttons and <a> for links. If a button must look like a link (or vice versa), achieve that with styles — never swap the elements.
  • Links that open external resources in a new tab must have rel="noopener noreferrer".

CSS

  • Follow the BEM methodology — the principles, not the class naming. Key rule: a block must not affect its surroundings, i.e. no external geometry (margins, size-affecting borders) or positioning on the block itself.
  • CSS Modules:
    • The root element's class must be named .root.
    • Use simple camelCase class names (easy to access from JS), not BEM naming:
Installs
16
First Seen
Jul 9, 2026