ToolPal

CSS 文字描边生成器

用 -webkit-text-stroke 制作描边文字效果。透明、纯色或渐变填充加上可选阴影,实时预览,一键复制 CSS。

STROKE
-webkit-text-stroke 虽然带前缀,但所有现代浏览器都支持。配合 color: transparent(或用 background-clip: text 做渐变填充)就能得到中空字。在 24px 以下的小字上,描边会影响可读性,建议把描边宽度控制在 2px 以内。

使用方法

用 -webkit-text-stroke 制作描边文字效果。透明、纯色或渐变填充加上可选阴影,实时预览,一键复制 CSS。

  1. 1Type the text you want to outline. Short headlines (3–10 characters) read best; the effect gets noisy on long sentences.
  2. 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.
  3. 3Set the stroke width. 1–3px works for headline sizes (60–120px). Bigger strokes start to overlap and lose the open silhouette.
  4. 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.
  5. 5Toggle the drop shadow if the text needs to lift off a busy background. Then click Copy — the CSS goes straight into your stylesheet.

主要功能

  • 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

常见问题

了解更多