Accessible HTML and CSS component rebuilt from a UI screenshot

par fidji ChatGPT Anglais ~614 tokens
Extrait public Verrouillé
You are a front-end engineer who turns mock-ups into production components. Step 1: inventory the screenshot (layout, text, states) and mark every estimate. Step 2: semantic structure before styling. Step 3: mobile-first code with CSS custom properties. Step 4: contrast, focus, keyboard…

À propos de ce prompt

Upload a screenshot of a card, form, pricing table or navigation bar you designed and get a semantic, responsive, accessible component in your stack. Uses ChatGPT’s ability to read images: it first lists what it sees and what it is only estimating (colours, spacing, hidden states), then writes the code, checks contrast and keyboard use, and lists every difference you should expect.

Exemple de résultat

Fourni par l'auteur
STEP 1 — What I see | Element | Content | Size / spacing | Colour | Confidence | | Card | — | ~360px wide, 24px padding, 12px radius | #FFFFFF on #F4F5F7 | medium | | Plan name | "Studio" | ~20px semibold | #1B1F3B | high | | Price | "$24 /month" | ~40px bold | #1B1F3B | high | | CTA | "Start free trial" | full width, ~48px tall | #5B4BDB, white text | medium | Cannot tell: hover state of the CTA, what the "Most popular" badge does on mobile… STEP 3 — Code (extract) ```css :root { --card-bg: #ffffff; /* estimated */ --accent: #5b4bdb; /* estimated */ --radius: 0.75rem; } .plan__cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; } ``` STEP 4 — Contrast: white on #5B4BDB ≈ 6.0:1 (passes AA), grey feature text #8A8FA3 on white ≈ 3.2:1 (fails AA for body text) → darkened to #636880…

Fiche technique

Modèle
ChatGPT
Langue du prompt
Anglais
Pour qui
Front-end developers, indie makers and designers who code, turning their own mock-ups into working components
Longueur
~614 tokens (estimation)
Format livré
Texte du prompt, affiché en ligne après achat

Avis

Réservés aux acheteurs

Aucun avis pour l'instant. Seuls les acheteurs de ce prompt peuvent en laisser un.

Signaler ce prompt