Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-design

An agent skill that makes AI-generated HTML pages look like they were designed on purpose.

Instead of letting a model improvise CSS (the purple-gradient-hero look), this skill loads a design system distilled from live computed-style teardowns of two masterpieces:

  • apple.com/airpods-pro → the light theme: type scale (96/56/28/17px, weight 600), the tracking rule (−1.5% at display sizes, positive at small sizes), 160px section rhythm, alternating #f5f5f7 backgrounds, 80px stat heroes, pill buttons, one accent color
  • linear.app → the dark theme: #08090a near-black, Inter at weight 510, tracking ≈ −2.2% of font-size, muted single accent
Apple-light (default) Linear-dark (data-theme="dark")
light dark

What's inside

SKILL.md        # the doctrine: token tables, ten rules, two deck registers,
                # density + change-safety contract, portability, common mistakes
template.html   # working starter page — hero, claim sections, stat heroes,
                # cards; fully static (no scripts, no animation — print/headless safe)

Also covered: choosing between a reflowing viewport deck and a fixed 1920×1080 stage, working inside someone else's corporate brand system, and the portability rule that stops shared HTML arriving with broken images.

Use it

With Claude Code / any agent supporting skills: drop the folder into your skills directory (e.g. ~/.claude/skills/html-design/). It triggers whenever the agent builds an HTML page, deck, artifact, or report.

By hand: copy template.html, replace the content, keep the system. Flip to dark by adding data-theme="dark" to <html>.

The one-sentence philosophy

The design IS the type scale and the whitespace. Color and decoration are condiments.

License

MIT

About

Agent skill: HTML design system distilled from live teardowns of apple.com and linear.app — makes AI-generated pages look designed on purpose

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages