Skip to content

Want to skip the docs? Check out pandamastery.com - the best way to learn Panda CSS

Utility Reference

SVG

Panda provides utilities for styling SVG elements.

Panda provides utilities for styling SVG elements.

Fill

Change the fill color of an SVG element.

<svg className={css({ fill: 'blue.500' })} />
PropCSS PropertyToken Category
fillfillcolors

Stroke

Change the stroke color of an SVG element.

<svg className={css({ stroke: 'blue.500' })} />
PropCSS PropertyToken Category
strokestrokecolors

Stroke Width

Change the stroke width of an SVG element.

<svg className={css({ strokeWidth: '1px' })} />
PropCSS PropertyToken Category
strokeWidthstroke-widthborderWidths

Full reference

Generated from @pandacss/preset-base, so this table always matches the utilities Panda ships.

SVG · 6
PropertyShorthandClassValues
fillfillcolors
strokestkcolors
strokeDasharraystk-dsh
strokeDashoffsetstk-do
strokeLinecapstk-lc
strokeWidthstk-wborderWidths
Edit this page on GitHubView as markdown
Last updated on