Stroke

    Use 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.

    Useful for styling icon sets like that are drawn entirely with strokes.

    Control which stroke utilities Tailwind generates by customizing the theme.stroke section in your tailwind.config.js file:

    By default, only responsive variants are generated for stroke utilities.

    For example, this config will also generate hover and focus variants:

    Disabling

    If you don’t plan to use the stroke utilities in your project, you can disable them entirely by setting the property to false in the corePlugins section of your config file: