How do I use a hero template in Claude Code?
Paste the template code into your Claude Code session and tell it what to build around the design. Save the template in your repo, for example as design/template.html, and point to it from CLAUDE.md so Claude Code reads it at the start of every session.
What does Claude Code turn the template into?
Code in whatever stack your project already uses, from plain HTML to Next.js or SvelteKit.
How do I stop Claude Code changing the design?
Without a rule in CLAUDE.md, later sessions drift back to generic spacing and colours. A follow-up prompt that helps: "Rebuild this section in our stack using design/template.html. Keep its spacing, type sizes and colours exactly; change only the text."
What makes a good hero section?
Says the result in one line: the headline tells visitors what they get, not what the product is called. One main button: a single filled call to action, with a quieter second option at most. Shows the product: a real screen, demo or image beats an abstract illustration.
Any Claude Code tips for hero sections?
Keep the template file in your repo, so later sessions can compare the hero with the original when you change it.