---
title: "Discussion on \"How and When To Use @apply in Tailwind\" | Hashnode"
description: "Discussion on \"How and When To Use @apply in Tailwind\". If you've used CSS for long, you're likely used to creating CSS components for reusable styles. A big drawback of Tailwind appears to be code duplication — imagine having to add in all the classes for a button hundreds of times in an application: bac..."
url: "https://hashnode.com/posts/how-and-when-to-use-apply-in-tailwind/63041749ff6e7b36fa46afc0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How and When To Use @apply in Tailwind](https://webartisan.info/how-and-when-to-use-apply-in-tailwind?utm_source=hashnode&utm_medium=feed)

If you've used CSS for long, you're likely used to creating CSS components for reusable styles. A big drawback of Tailwind appears to be code duplication — imagine having to add in all the classes for a button hundreds of times in an application: bac...

Aug 22, 2022 · 7 min read · webartisan.info  
Read the article

-   [#tailwind-css](https://hashnode.com/tag/tailwind-css)
-   [#apply](https://hashnode.com/tag/apply)
-   [#vuejs](https://hashnode.com/tag/vuejs)
-   [#php](https://hashnode.com/tag/php)

## Written by

[JD Lien](https://hashnode.com/@jdlien)

@jdlien · Edmonton, Alberta, Canada

  
[View profile](https://hashnode.com/@jdlien)

I teach people how to be awesome devs.

I have been developing websites professionally since 1999 and have used a number of technologies and watched the evolution of the web since its early days. I write about PHP, Laravel, Tailwind, and topics about improving your career as a developer.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
