Closed Rettend closed 3 months ago
some examples of prettier being primitive (it just watches the line length):
(the closing </span>
is broken at the >
)
most can be fixed manually and then format will not break them, this is broken:
this way you have better access to the props:
forgot that you also used a pretty custom font, so just downloading woff and adding font-display: swap should do it. fontsource is for the other common fonts
@ashlsun tools that i like, they all provide better UX and DX.
Minor impact
.ttf
fonts are system fonts and should not be used on the web, the more compressed.woff2
is the web font format. generally, using 3rd parties is bad as it involves extra roundtrips (much worse actually: extra DNS lookups and SSL handshakes) and google also tracks your users. local woff2 fonts are okay but you need a few lines of css to optimize loading, fontsource just does it.Major impactmoved to #30