News for hackers. Stuff that matters.
Re:Don't use Tailwind for your Design System by nwienert on Wednesday January 11, 2023 @06:15AM (#34337243)
Tamagui really aims to solve this problem and some of the usability problems of className by putting style props directly on the props. You can nest components and abstract them as you want and still get the Tailwind style shorthands except as TS typed tokens.

No worry about how you reference things or static-ness etc and the final output can be flattened down to just div + css even across module boundaries or when nesting multiple times.

Re:Don't use Tailwind for your Design System by pcthrowaway on Wednesday January 11, 2023 @06:26AM (#34337308)
Interesting.. so is Tamagui using react under the hood, but "hiding" it from you to some extent? Does it provide some helpers for responsiveness?
Re:Don't use Tailwind for your Design System by nwienert on Wednesday January 11, 2023 @07:19AM (#34337595)
It’s just React through and through. It has an optional optimizing compiler that really improves performance even across hard to parse areas like nested conditional logic or spreads of items across module boundaries.