Settings

Theme

Show HN: Inject TailwindCSS into HTML Templates

github.com

10 points by snehesht 4 years ago · 7 comments

Reader

fatih-erikli 4 years ago

I don't really understand why people would use something like that instead of writing pure css. The amount of the code you're writing is same, plus you need to remember class names.

  • mrwnmonm 4 years ago

    This is exactly why I don't use it. I don't really care if my css is a little bit messy, but I already know almost every css attribute, why I should start memorizing a lot of other names?

  • rado 4 years ago

    Yes. And what happens when an element defined by utility classes only needs to change properties in different context?

    • fatih-erikli 4 years ago

      You just create another class. Or you use "style" attribute if it's not worth for defining a class. This is what cascading styles (css) stand for.

      You have a lot of options and definitely using a different class for each style attribute (what tailwind or bootstrap utilities do) is not one of them.

  • sneheshtOP 4 years ago

    Tailwind has a bit of learning curve but once you start using it, it makes your work a lot easier.

sneheshtOP 4 years ago

I've been trying to use TailwindCSS in email templates, this package is born from one of those experiments.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection