Build an SVG Line Icon Set Preview Sheet with Size and Stroke Controls
You get a single HTML page that shows 24 original line icons, lets you change their size, stroke weight and background, and copies clean SVG markup with one click.
The prompt
Act as a senior product designer who also writes clean front-end code. Build a single-page icon preview sheet called "Fieldline Icons": an original set of 24 consistent line icons drawn as inline SVG on a 24-unit grid (home, search, user, bell, mail, calendar, clock, heart, star, sliders, trash, pencil, download, upload, lock, camera, map pin, chat, leaf, sun, moon, cloud, link, bookmark). Every icon uses no fill, a currentColor stroke, and round caps and joins, so the set reads as one family.
1. Controls bar: size buttons for 16, 20, 24, 32 and 48 px, a stroke slider from 1 to 3 in 0.25 steps with a live readout, a Light/Dark ground toggle, and a filter by icon name.
2. Show the icons in a responsive grid of labeled tile buttons that fits 360-1280px and works with the keyboard.
3. Clicking a tile or pressing Enter on it copies that icon's SVG markup, at the current size and stroke, and shows a polite status message. If clipboard access is blocked, select the code text instead.
4. A detail panel shows the selected icon at 16, 24, 32 and 48 px on both light and dark grounds, plus its markup in a code block with a Copy button.
5. Use a small palette (warm paper, ink, one green accent, near-black) and visible focus rings. Turn off motion when prefers-reduced-motion is set.
6. Use no external files, fonts, storage or alerts.
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
- Fixing a 24-unit grid, currentColor stroke and round joins makes all 24 icons look like one family.
- Generating the copied markup from the live state means the pasted SVG always matches the size and stroke on screen.
- A select-the-code fallback keeps copying usable when sandboxed frames block the clipboard API.
Paste into ChatGPT, Claude or Gemini. Save the returned code as an .html file and open it in any browser, or view it in the chat's preview or canvas panel. Click an icon to copy its SVG.
Common edits
- Swap the 24 icon names for your product's own glyphs (cart, invoice, chart) and change the green accent to your brand color.
- Add a color picker that sets the stroke color, or a 'Download all' button that builds one SVG sprite sheet.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
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 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
Generates a single HTML brand-guidelines page showing horizontal, stacked and icon lockups with clear-space overlays, a minimum-size checker and misuse examples.
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 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
- Build a Modular Type Scale Specimen with Adjustable Ratio and Base Size
- 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
- Build a SaaS Landing Page Hero with a CSS-Drawn Product Mockup