Build an Interactive 60-30-10 Brand Color Ratio Poster in One HTML File

Get a single HTML page where sliders change the 60-30-10 color proportions and a ratio bar and sample landing page redraw live to show color balance.

You getone complete HTML file in a single code block, then 3 short ideas to extend it.

The prompt

Prompt
Act as a senior brand designer who also writes clean, accessible front-end code. Build Proportion Studio, an interactive poster that teaches the 60-30-10 color rule for brand palettes. The page shows a proportional color bar and a sample landing page mockup that both redraw live as the user changes how much of the layout each color owns.

Rules:
1. Controls: a Dominant slider (30-95%) and an Accent slider (0-40%). Secondary is the remainder and is shown as a number. Clamp values so the three always total 100. Add preset buttons for 60/30/10, 70/20/10, 50/35/15, 80/15/5 and a deliberately broken 40/25/35.
2. Include three original brand palettes as toggle buttons (a coffee roaster, a freelancer bank, a night food festival), each with its own realistic headline, subhead, CTA text and three feature cards.
3. The mockup must visibly respond: secondary drives the nav, the image panel width and the footer depth. Accent drives CTA size, a headline highlight bar, badges and card borders, and floods the cards past 22%.
4. Show a live verdict (Balanced, Accent is shouting, No clear base, and so on) in an aria-live region.
5. Choose text color on every swatch by WCAG contrast. Keep a clear type scale and a two-column layout above 900px that stacks down to 360px. Disable transitions under prefers-reduced-motion.
6. No external assets, storage or network calls.

Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.

Example output

One HTML file. Save it and open it in any browser.Open full screen

Example: Proportion Studio, a live 60-30-10 color poster.

Pick one of three brand palettes: Harbor & Pine coffee, Tidewater banking or Night Market festival. Then drag the Dominant and Accent sliders. The ratio bar and the sample landing page resize their color areas instantly, and a verdict explains what changed. Try the 40 · 25 · 35 (broken) preset to watch the accent take over the cards and nav, then click 60 · 30 · 10 to restore balance.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Two sliders plus a derived remainder guarantee the three shares always total 100, so the bar and mockup never disagree.
  • Mapping each share to concrete layout parts (nav, image panel, CTA, cards) makes the ratio visible instead of abstract.
  • Contrast-picked text colors and a live verdict keep every palette readable and explain each change in plain words.

Paste into ChatGPT, Claude or Gemini. Save the returned code as proportion-studio.html and open it in any browser, or view it in the chat's preview or canvas panel.

Common edits

  • Swap the three palettes for your own brand hex codes and landing page copy to test your real colors.
  • Add a fourth slider-free 'neutral' color for text and borders, or export the current ratio as CSS custom properties.

Prompt details

By
Prompts-GPT editors
Published
How prompts are written and checked

Did this prompt work?

Keep exploring

More in Design