easy_svg_stroke_css()
Returns the CSS that gives stroked icons their stroke back.
Function · Easy SVG · Status: Internal · Defined in includes/icons.php
Internal: not part of the promised public surface. It may change without notice.
Usage
easy_svg_stroke_css(): string
Example
wp_add_inline_style( 'my-theme', easy_svg_stroke_css() );
Description
Rules target path and polygon inside .esvg-stroke: fill none, stroke currentColor, widths via esvg-sw-*, and round caps and joins. No !important, so a theme can still restyle an icon.
Return value
returnstring
CSS.
Related
Was this page helpful?