News for hackers. Stuff that matters.
Re:Pollen – A library of CSS variables inspired by TailwindCSS by rahimnathwani on Monday September 06, 2021 @02:49AM (#28431120)
Even backend frameworks distinguish between templates and components.

For example, Laravel has Blade templates and Blade components. From the documentation on the latter:

"Components and slots provide similar benefits to sections, layouts, and includes"

If you use Tailwind with Blade templates, but don't use {components, sections, layouts, includes}, then you'll have a hard time keeping things consistent. Because you'll define how a button looks over and over in each template. In that case, something like Bootstrap or Pollen would be easier.

But the right way is probably to break your templates into smaller pieces (e.g. components) so you can use Tailwind but still share things like buttons between templates.

Re:Pollen – A library of CSS variables inspired by TailwindCSS by scns on Monday September 06, 2021 @04:04AM (#28431521)
Ah i see, thanks for the clarification, not using Laravel myself.