4 ms·
You can do this with Tailwind as well: https://tailwindcss.com/docs/extracting-components https://tailwindcss.com/docs/extracting-components // in JS, then bui
by mcbetz 7y ago
You can do this with Tailwind as well:
https://tailwindcss.com/docs/extracting-components https://tailwindcss.com/docs/extracting-components
// in JS, then build
.btn-blue {
@apply bg-blue-500 text-white font-bold py-2 px-4 rounded;
}
- terenceng2010 7y agoThis feature makes it a very progressive library for various stages of development. Inline earlier, then gradually extracting the style for reuse in later stage. Besides, their documentation is really good for one to learn those newer css concept.
- SahAssar 7y agoIn that secenario why even use tailwind? Why not just normal css?