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

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

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

Example: Fieldline Icons, a 24-glyph line icon preview sheet.

The page opens with a grid of 24 labeled icons and a controls bar. Switch sizes from 16 to 48 px, drag the stroke slider from 1 to 3, and flip the grid between light and dark grounds. Type in the filter box (try cloud) to narrow the set. Click or press Enter on any tile to copy its SVG. The side panel previews it at four sizes on both grounds.

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

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
How prompts are written and checked

Did this prompt work?

Keep exploring

More in Design