component-authoring

Installation
SKILL.md

Authoring components

Order of operations for any component work:

  1. Tokens first. If the design needs a new value, add it to design-system/tokens.css with a comment saying what it means. Components reference var(--alfrex-…) only — a hard-coded hex or px in a component is a bug.
  2. Class next. Add or extend the .als-* class in design-system/components.css. Follow the existing convention: block .als-card, elements .als-card__head, modifiers .als-btn--ghost.
  3. Preview last. Each component gets components/<name>/index.html — a self-contained page that links the two shared CSS files by relative path and shows the component's real variants with realistic Alfrex data (shipment IDs, panel dimensions, freight money — not lorem ipsum).

Preview file contract

Installs
1
First Seen
8 days ago
component-authoring — dwk-123/alfrex-design