VOOZH about

URL: https://www.geeksforgeeks.org/css/tailwind-css-stroke/

⇱ Tailwind CSS Stroke - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Stroke

Last Updated : 23 Jul, 2025

This class accepts lots of value in tailwind CSS in which all the properties are covered in class form. It is the stroke class to be applied to the SVG element. In CSS, we used Stroke Property.

Stroke Classes:

  • stroke-current: This class is used to set the stroke color of an SVG to the current text color. This makes it easy to set an element's stroke color by combining this class with an existing text color utility.

Syntax:

<svg class="stroke-current">...</svg>

Example:

Output:

👁 Image
stroke class
Comment
Article Tags: