menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Tailwind: ...
source image

Dev

3w

read

400

img
dot

Image Credit: Dev

Tailwind: Combine custom css with @components directive

  • The challenge was to create a reusable component with Tailwind's @components directive while applying custom CSS.
  • The custom CSS included two classes: .text-shadow and .tap-highlight.
  • After searching for a solution and not finding one, the developer added the utility classes through the addUtilities function from the Tailwind plugin.
  • By importing tailwindcss/plugin and adding the utility classes, the issue was resolved.

Read Full Article

like

24 Likes

For uninterrupted reading, download the app