Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
mcbetz
6y ago
0 comments
Save
Share
You can do this with Tailwind as well:
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; }
0 comments
2 comments · 2 top-level
top
newest
oldest
terenceng2010
6y ago
This 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
6y ago
In that secenario why even use tailwind? Why not just normal css?
j
/
k
navigate · click thread line to collapse