News for hackers. Stuff that matters.
Re:Building React and Vue Support for Tailwind UI by leadingthenet on Monday April 12, 2021 @06:29PM (#26785984)
> How do you remember the names of all your classes?

You don't.

https://tailwindcss.com/docs/extracting-components

Re:Building React and Vue Support for Tailwind UI by welder on Monday April 12, 2021 @06:33PM (#26786013)
So, the dev never reads/modifies the extracted component that still uses hard-to-read hard-to-typecheck classes? Doesn't seem like a good solution.
Re:Building React and Vue Support for Tailwind UI by gervwyk on Monday April 12, 2021 @10:45PM (#26787616)
It’s a great solution. Every class only maps to one css property setting, and they are very well named.

Thus not much more difficult to read and remember than css key value pairs.

Why would you typecheck component class names? If so, its all strings, seems pretty easy less error prone than inline styles.

Re:Building React and Vue Support for Tailwind UI by aniforprez on Tuesday April 13, 2021 @01:14AM (#26788329)
Actually each class does NOT always map to a single property. In what I consider to be its greatest strength each class is actually designed to do some very specific thing that can actually require multiple CSS properties and settings. For eg the breakpoint classes are fairly complex but allow you incredible flexibility in building responsive UIs