Guides

Customise Moon Templates for Your Project

Every BrowserMoon template is self-contained HTML and CSS. Changing colours, swapping copy, or converting to React takes minutes. Three levels of customisation.

Intermediate · 6 min read
· CSS, Customisation

Every BrowserMoon template is self-contained: the fonts, the styles, the layout, and the responsive breakpoints are all in one file. There are no external stylesheets to override, no framework to install, and no build step. That means customisation starts the moment you copy the code. Whether you edit it by hand in a text editor or paste it into a vibe coding tool like Lovable, Bolt, Claude Code, Replit, Cursor, or ChatGPT Codex, the result is the same: you change a value and the design changes with it.

What is inside a BrowserMoon vibe coding template

Every template has three layers. Understanding them makes customisation faster.

The style block at the top defines the colours, fonts, and spacing as CSS variables. The primary colour, the background, the text colour, and the font family are all declared in one place. Change one variable and it updates everywhere the template uses it.

The HTML structure in the middle defines the layout: how the headline sits above the subheading, how the CTA button aligns, how the grid distributes its columns. This is where responsive breakpoints live.

The content at the bottom is the text, images, and links. Headlines sit in h1 or h2 tags. Body text is in p tags. Buttons are in div or a tags inside the CTA area.

Changing copy and brand colours

For the fastest customisation, replace the text and the primary colour. Find the colour value in the style block (often a hex code like #004FFF or a CSS variable like var(--accent)) and replace it with your brand colour using find and replace. Then update the headline, the subheading, and the button text with your own copy.

This takes under five minutes and covers most of what makes a template feel like yours. The typography, the spacing, and the responsive behaviour all stay intact.

Changing typography and spacing

To swap the font, replace the CDN import URL at the top of the style block with your preferred font's URL. Update the font-family declaration in the body rule to match. BrowserMoon templates use Geist Sans by default, loaded from a CDN link at the top of the template.

To scale the type, change the base font-size on the body element. All type sizes defined in em units scale proportionally with it. A base of 16px makes the text larger across the entire template without touching individual elements.

Converting a BrowserMoon template to React, Tailwind, or Svelte

Paste the template into Claude Code, Cursor, or Bolt and include one instruction: "Convert this to a React component. Use Tailwind for the styles. Keep the layout and spacing exactly as designed."

The vibe coding tool translates the inline styles to Tailwind classes, wraps the HTML in a React component with proper JSX syntax, and preserves the design values. Claude Code and Cursor also match your existing Tailwind config if the project has one.

For Svelte, replace "React component" with "Svelte component" in the instruction. For plain Tailwind without a framework, ask for "HTML with Tailwind classes."

Which vibe coding tool for which type of edit

For plain text and colour changes: a text editor is fastest. Open the code, find the value, replace it.

For responsive adjustments, layout changes, or adding interactive elements: paste the template into Lovable, Bolt, or Replit and describe the change in plain language. These tools handle CSS edits and structural changes without you writing code.

For integrating a template into an existing codebase with Tailwind, shadcn/ui, or an existing design system: use Claude Code or Cursor. Both read your project files and match the conversion to your existing conventions.

For a deeper look at which design decisions have the most impact on whether a vibe-coded app or website looks professional, the vibe coder's design guide covers typography, colour, spacing, and component style with specific values and reasoning.

Frequently asked questions

Do I need to know how to code to customise a BrowserMoon template?

No. Paste the template into any vibe coding tool like Lovable, Bolt, or Claude Code and describe what you want to change in plain language. The tool handles the code.

How do I change the colours in a Moon vibe coding template?

Find the primary colour value in the style block and use find and replace to swap it with your brand colour. The change applies everywhere the colour appears in the template.

Can I convert a BrowserMoon template to React and Tailwind?

Yes. Paste the template into Claude Code, Cursor, or Bolt and ask it to convert. The tool translates the inline styles to Tailwind classes and wraps the HTML in a React component.

Can I mix templates from different BrowserMoon designs on one page?

Yes. Copy each template separately and combine them in your project or vibe coding tool. BrowserMoon templates use consistent spacing and typography, so different templates sit together cleanly.

How do I make a Moon template fully responsive for mobile and iPhone?

Most BrowserMoon templates include responsive breakpoints by default. For further adjustments, paste the template into a vibe coding tool and ask it to add breakpoints at 768px and 480px for mobile and tablet.

What if a vibe coding tool overwrites my customised template?

Save your customised version to a named file before making further edits. Reference that file in your prompts to keep the tool working from the right version.

Templates to start from

Ready to copy a section?

Browse all vibe coding templates.

Browse Moon

More guides

Related articles