/graphic-design:html-graphicsfrom graphic-design
Design graphics in HTML and CSS and export them as pixel-exact PNG/JPEG or vector PDF - event and gig posters, flyers, social posts, carousels and stories, ads and banners, thumbnails, link previews, magazine and album covers, invitations, infographics. Covers drawn lettering (warped, dripping, extruded, hand-bounced titles), expressive composition, and print-era looks (halftone, photocopy, riso, duotone, torn paper, cut-out stickers, text behind or around the subject, grain and grunge) as well as clean typographic layouts. Use when the user wants a graphic built with HTML/CSS, or when a static graphic is mostly type, layout, image treatment and texture. Ships a renderer that flags fallback fonts, faux bold/italic, clipped, overflowing, overlapping or tiny text and soft or broken images, plus an image-treatment script.
Ships in graphic-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Build each graphic as an HTML file with one fixed-size .artboard per output image, render it with headless Chromium, look at the result, and iterate. HTML gives real typography (kerning, variable fonts, text-wrap: balance), real layout, live filters, one source for many sizes, and vector PDF. Pre-processing in Python adds what browsers do badly: halftone, photocopy, riso, cut-outs, torn edges, textures.
The bar is a poster a working designer would be proud of: a strong image with a treatment, drawn display type woven into the image, a composition with tension, texture, and confident small type. Fonts set in straight centred lines over a centred image read as a template: references/type-and-composition.md is how to get past that, and the style library in styles/ gives each visual style a spec, CSS tokens and a reference poster.
| Path | What |
|---|---|
scripts/render.cjs | Renderer and checker (Node + Playwright) |
scripts/lettering.cjs | Drawn titles: glyph outlines warped (arch, bulge, wave, rise, perspective), jittered, dripped, outlined, extruded; per-letter copies for interlocking (Node + opentype.js) |
scripts/use-style.cjs | Copies a style's CSS and the bundled-font stylesheet into a project's style/ folder, so the HTML links them locally wherever the project lives |
scripts/treat.py | Image treatments, silhouette contours and textures (Python, Pillow + numpy; rembg optional) |
templates/artboard.html | Starting file: tokens, artboard, guides |
templates/filters.html | SVG filter library: rough, wobble, distress, speckle, ink-bleed, sticker, threshold, duotone, posterize, misregister, neon, torn |
references/type-and-composition.md | Composition archetypes, thumbnail process, expressive type moves, display fonts by mood. Read for every piece |
styles/ | Style library: one folder per style with style.md (spec), tokens.css, example.html and preview.jpg. Catalog in styles/README.md, all previews in styles/catalog.jpg |
references/poster-styles.md | What every expressive poster shares, and which style suits which brief. Read for any poster, flyer, cover or event graphic |
references/imagery.md | Where images come from (licensing), treatments, cut-outs |
references/css-techniques.md | Composition, type, colour, texture, shape and image techniques with snippets |
references/formats.md | Sizes and safe areas for social, ads, covers, print |
$H means this skill's folder: ${CLAUDE_SKILL_DIR}. Set it once in each shell (H="${CLAUDE_SKILL_DIR}"). Every command in this skill, its references and the style specs is written against it (L=$H/scripts/lettering.cjs, T=$H/scripts/treat.py, shared photos in $H/styles/_shared/photos/). Relative paths in this file (styles/, references/, templates/) are inside $H.
Run commands from the user's working directory and keep each job in projects/<project>/ there. This works the same in a clone of graphic-design (where $H is .claude/skills/html-graphics) and when the skills are installed as a plugin.
references/formats.md), the real copy, brand assets, how many options. For print, run print-production first and build the artboard in mm with bleed.references/imagery.md): the user's assets, AI generation, or public-domain collections. Never invent a photo source or use one without a licence.styles/README.md (the brief table in references/poster-styles.md helps), read its style.md in full and link it into the project with node "$H/scripts/use-style.cjs" <id> projects/<project> (see Build). If the user names or shows a look that isn't in the library, take the closest style and say what you change. Then write a short plan: palette (4–6 hex), display face and how the title will be drawn, the image treatment, and the one bold move. For new work, offer 2–3 directions. Check the plan against the generated-design defaults listed in frontend-design and change anything generic.scripts/treat.py (image, cut-out, contour, textures) and scripts/lettering.cjs (title) into projects/<project>/assets/, at the final pixel size (artboard × export scale).references/type-and-composition.md, with only the image and the title. Render with --sheet, pick the strongest, and say why. Never go straight to the centred title / image / info stack.node "$H/scripts/use-style.cjs" <id> projects/<project> (none for no library style: you still get the bundled fonts). Copy templates/artboard.html to projects/<project>/<piece>.html; it links style/fonts.css, and with a library style add style/_base.css and style/tokens.css after it. Paste templates/filters.html after <body> when you need filters. Follow the build rules below.node "$H/scripts/render.cjs" projects/<project>/<piece>.html --sheet. Open the PNG with Read. Fix every WARN, or confirm it's intended and mark it (data-allow-overlap, data-ignore). Critique against the composition critique in type-and-composition.md, the finishing pass in poster-styles.md and the critique checklist in the design-studio skill. Do at least two passes; the first render is never the last.vw, vh or percentages of the page.--safe on the artboard (1–4 lengths like margin). The renderer warns about text inside it.poster-styles.md.assets/fonts.css (registered automatically) or Google Fonts via <link> with every weight and the ital axis you use. Never rely on fonts installed on the machine.window.layout = async () => {...} and call it on load; the renderer reruns it after fonts load. The snippet is in css-techniques.md.assets/, with enough pixels for the export scale (the renderer warns when one is upscaled). Logos and icons as inline SVG, never emoji.templates/filters.html svg once per file and tune the commented numbers. Chrome won't load filters from another file.paint-order: stroke on SVG text). The renderer can't measure contrast over images, so look.When the user asks to see a style ("show me Art Deco", "what does riso look like", "send me a reference"), send styles/<id>/preview.jpg with SendUserFile; for "what styles do we have", send styles/catalog.jpg and list the names from styles/README.md. Each example is a working HTML file, so a reference can be re-rendered or adapted.
To add a style (or a client's house style), copy the format of an existing folder, fill every section of style.md, build an original example.html, and run python3 "$H/scripts/previews.py" <id> to render its preview and refresh the catalog.
node "$H/scripts/render.cjs" <file.html> [more.html] [options]
| Goal | Flags |
|---|---|
| Social post or ad at exact size | (none): --scale 1 |
| Retina web image or email header | --scale 2 |
| Compressed photo ad | --format jpeg --quality 85 |
| Sticker or overlay with transparency | --transparent |
Print raster (then print-production) | --dpi 300 (150 for posters over A2) |
| Vector PDF per artboard (live text, embedded fonts) | --pdf |
| One PDF of all artboards (carousel, deck) | --pdf-pages |
| Review several artboards at once | --sheet |
| Only some artboards | --only cover,slide-2 |
| Keep guides visible | --guides |
Outputs go to export/ next to the HTML, named <file>-<data-name>.png. Checks: fonts not loaded (fallback), faux bold or italic, text outside the artboard, text clipped by a container, text inside the safe margin, overlapping text, text under the minimum size (artboard width / 72), broken or upscaled images, failed requests, script errors. --strict exits 1 on warnings.
Text boxes are measured from the glyphs' ink, so tight display leading is fine. SVG text gets font checks only.
Chrome rounds PDF page sizes up to whole points (≤ 0.35 mm). That lands in the bleed for print, but for exact print raster use --dpi and print-production.
node "$H/scripts/lettering.cjs" --help. Examples and the effect table are in references/type-and-composition.md. Use it for the title of nearly every expressive poster; plain HTML text for the small print.
python3 "$H/scripts/treat.py" <command> --help for every option.
halftone, photocopy, duotone, riso, cutout, outline, torn, contour, texture grain|paper|dust|folds|grunge. See references/imagery.md for the command table and blend modes. riso also prints a finished flat two-ink poster: design in two inks with multiply overlaps, render, then run it on the PNG.
The scripts' dependencies are declared at the root of the skill set, R="$H/../../.." (the repo root in a clone, the plugin folder when installed as a plugin).
render.cjs or lettering.cjs fails with Cannot find module 'playwright' (or opentype.js), or Chromium is missing, install once and rerun: npm install --prefix "$R" then npx --prefix "$R" playwright install chromium. A globally installed Playwright works too. Tell the user what you are installing.pip install -r "$R/requirements.txt" when treat.py, previews.py or print-production reports a missing module. For cut-outs, also pip install rembg onnxruntime (the model downloads on first use).assets/fonts.css or Google Fonts, and load every weight and italic you set.assets/. In cloud sessions, the network policy may block the host; tell the user which host to allow.@media rules, or JS that ran before fonts loaded (use window.layout).--scale or --dpi.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ledsav/graphic-design --plugin graphic-design14 skills in this plugin
/algorithmic-artCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations./banner-designDesign banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with optional generated or supplied visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter/X, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage./brandBrand voice, visual identity, messaging frameworks, asset management, brand consistency. Activate for branded content, tone of voice, marketing assets, brand compliance, style guides./canvas-designCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations./designComprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads./design-studioStart here for any graphic design request - logo, wordmark, brand identity, poster, flyer, gig or event poster, social post, carousel, story, ad, banner, thumbnail, cover, invitation, business cards, stationery, icons, presentation or pitch deck, art print, generative art, GIF, or anything that will be printed. Routes the job to the right design skill and sets the studio process (brief, direction, make, look, deliver) and the critique checklist every piece must pass.