Générateur de texte avec contour CSS
Créez des effets de texte avec contour grâce à -webkit-text-stroke. Aperçu en direct avec remplissage transparent, uni ou en dégradé, plus une ombre portée optionnelle. Copiez le CSS en un clic.
STROKE
-webkit-text-stroke est pris en charge par tous les navigateurs modernes malgré le préfixe. Associez-le à color: transparent (ou à background-clip: text pour un dégradé) pour obtenir des lettres creuses. En dessous de 24px, le contour peut casser la lisibilité — gardez l'épaisseur sous 2px pour les petites tailles.
Comment utiliser
Créez des effets de texte avec contour grâce à -webkit-text-stroke. Aperçu en direct avec remplissage transparent, uni ou en dégradé, plus une ombre portée optionnelle. Copiez le CSS en un clic.
- 1Type the text you want to outline. Short headlines (3–10 characters) read best; the effect gets noisy on long sentences.
- 2Pick a font and weight. Bold weights (700–900) and display fonts like Impact or Arial Black give the cleanest stroke — thin fonts have too little room for the line to sit.
- 3Set the stroke width. 1–3px works for headline sizes (60–120px). Bigger strokes start to overlap and lose the open silhouette.
- 4Choose a fill mode. Transparent gives the classic hollow look. Solid is for two-tone (e.g. yellow letters with black outline). Gradient bleeds a fill into the open glyph — great for hero text.
- 5Toggle the drop shadow if the text needs to lift off a busy background. Then click Copy — the CSS goes straight into your stylesheet.
Fonctionnalités
- Live preview at any font size, weight, and family — see exactly what your headline will look like before shipping
- Three fill modes (transparent, solid, gradient) plus optional drop shadow — covers every common outlined-text recipe
- Outputs both -webkit-text-stroke and text-stroke for cross-browser support
- Works with any web font — drop the CSS variable into your design system and the effect inherits
- Pure client-side — no server processing, no signup, no tracking