css-first
Installation
SKILL.md
CSS First
Solve interface work with semantic HTML and CSS before proposing JavaScript. Prefer modern, standards-based CSS when it matches the user's target browsers and preserve the core experience with progressive enhancement when support is incomplete.
Workflow
- Identify the visual or interaction intent and inspect the project's framework, browser targets, writing modes, and existing conventions.
- Search
css-demos/INDEX.mdfor a matching pattern. - When support or recency matters, fetch the current Baseline record using
references/live-mdn-fetch.md. Treat checked-in labels as dated snapshots, not permanent facts. - Rank solutions by semantic fit, accessibility, interoperability, and maintenance cost. Prefer logical properties and native CSS capabilities.
- If the selected feature is Limited Availability or has no WebStatus record, show
a usable fallback and gate the enhancement with
@supportswhen practical. - Verify syntax and behavior in a real browser when the environment provides one.