Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Type safe typography ratio

Please explain how this is better than expressing typographic scales with CSS variables and calc()?



You'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.


> 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.


Ok 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.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: