3 ms·
> Type safe typography ratio Please explain how this is better than expressing typographic scales with CSS variables and calc()?
by tipiirai 2y ago
> Type safe typography ratio
Please explain how this is better than expressing typographic scales with CSS variables and calc()?
- d1sxeyes 2y agoYou're using a right angle bracket there like I said that. I didn't. I would find it difficult to explain, especially given that this is exactly what Tailwind does: https://tailwindcss.com/docs/font-size https://tailwindcss.com/docs/font-size.
- Ghoelian 2y ago> No one cares what your typography ratio is if you can’t get it in front of a user [...] reliably enough (type safe) i mean it's not exactly what you said, but c'mon, that's obviously what they meant.
- d1sxeyes 2y agoOk fair enough. I was actually talking about the whole of Tailwind rather than just the typography ratios, but I can see how I could be understood in that way. My mistake. Either way, Tailwind works in exactly the way OP describes as their counter example.