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
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
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
Did this prompt work?
Keep exploring
More like this
Build a Button and Form Field States Reference Sheet in a Single HTML File
Get a polished, single-file reference sheet that shows button and text field states side by side, with a live playground and contrast ratios computed from design tokens.
Build a Color Blindness Simulator That Previews a Palette on a Dashboard Card
A single HTML file that redraws a realistic dashboard card under protanopia, deuteranopia, tritanopia and grayscale and flags color pairs that become hard to tell apart.
Build a Drag-to-Arrange Brand Mood Board with Color, Texture and Type Tiles
A prompt that produces a single HTML mood board of color, texture and type tiles built from CSS and SVG, rearrangeable by mouse, touch and keyboard.
Build a Draggable Color Harmony Wheel With Live UI Preview in One HTML File
A ready-to-paste prompt that builds a draggable canvas color wheel. It plots complementary, triadic and analogous schemes live and previews each one on a mini website mockup.
Build a Light/Dark Mode Toggle Demo Page with Smooth Theme Switching
A single HTML page with a polished light/dark theme switch built on CSS custom properties that defaults to the system theme, honors reduced motion, and uses no storage.
Build a Live Accessible Color Palette Builder with a WCAG Contrast Matrix
Get a single HTML palette builder that tests every text-on-background pair, shows AA/AAA badges live, and suggests the nearest passing shade for failures.
- Build a Logo Lockup and Clear-Space Guideline Sheet with an Original SVG Mark
- Build a Modular Type Scale Specimen with Adjustable Ratio and Base Size
- Build a Multi-Step Onboarding Wizard with Stepper and Inline Validation
- Build a Playful Animated 404 Error Page with SVG Art and Site Search
- Build a Responsive Navigation Bar With Mega Menu and Mobile Drawer in HTML
- Build a Responsive Three-Tier Pricing Section with Monthly/Yearly Toggle