Prompts · Créer un site
Le système de design d'un site existant
Claude relève les couleurs, polices, tailles, espacements et composants d'un site, en fait des variables prêtes à l'emploi, une page de référence et un résumé à garder dans CLAUDE.md.
Le prompt, en français
4 cases sont vides : elles partiront entre crochets, et Claude te posera la question.
Voir la version anglaise, celle qui est copiée
I want the design system of this site, written down: [Le site à analyser : dossier, adresse ou captures].
What I want to do with it: [Ce que tu veux en faire ensuite].
1. Collect
Read the code (or look at the screenshots) and record, together with where you found it:
- the colors (hex codes), grouped by role: background, surface, text, secondary text, accent, borders, states (hover, focus, error);
- the typefaces, their weights, and the type scale (headings, body, small text) with line heights;
- spacing, maximum widths, corner radii, shadows, animation durations and easing curves;
- these elements: [Les éléments à relever], with their different states.
If it is a web address, fetch the HTML and the stylesheets (with a browser tool or `curl`) and tell me if you can't.
If a value is almost repeated (for example #1A1A1A and #1B1B1B), point it out and suggest merging them, without doing it yourself.
If you work from screenshots, say clearly which values are measured and which are estimated.
If it is someone else's site, the goal is to understand and get inspired: we do not reuse their texts, images or logo.
2. Write
- The variables in this format: [Le format voulu pour les variables]. Names by role (`--couleur-texte`, `--espace-m`), not by value (`--gris-clair`). Each variable carries a comment saying where you found its value.
- A `guide-de-style.html` page that shows each color with its contrast ratio on the backgrounds where it is used, each type size, each component and its states.
- A summary of 15 lines at most, to paste into CLAUDE.md, so that future sessions respect this system.
3. Check
- Flag every text and background pair below 4.5:1, and propose a fix close to the original color.
- Flag what is missing for a complete system (a visible focus state, a dark version, a size for small print…) without inventing it for me.
Start by telling me how many pages or files you are going to read, and ask me your questions if the source is ambiguous.
Talk to me in French. The texts of the reference page are in French, with French typography: a non-breaking space before ":", a narrow non-breaking space before ";", "!" and "?", « » quotes.
Done when the variables file, the reference page and the CLAUDE.md summary exist, and every value points back to where you found it.Comment t’en servir
Le plus fiable : ouvre Claude Code dans le dossier du site lui-même, pour qu'il lise le vrai code. Avec seulement des captures, Claude estime les valeurs à l'œil : il te dira lesquelles sont mesurées et lesquelles sont devinées.
Tu obtiens trois choses : un fichier de variables (couleurs, tailles, espacements) nommées par rôle, une page guide-de-style.html à ouvrir dans ton navigateur, et un résumé de quinze lignes à coller dans le CLAUDE.md du projet. Ce résumé est ce qui fait que la prochaine page construite par Claude ressemble au reste du site.
Si tu analyses le site de quelqu'un d'autre, c'est pour comprendre ses choix, pas pour le copier. La formation « Un site sur mesure, pas un site d'IA » montre comment transformer ces choix en ton propre style.
Pour comprendre tout ce que fait ce prompt, et l’adapter : la formation Un site sur mesure, pas un site d'IA.