0.1.2 • Published 3 years ago
@goatnotes/goatui v0.1.2
goatui
Typography
The typography package contiains a number of bases classes, from which other components are built on-top.
The first key component the typography package exposes is the AutoResizer
class, which is meant to be rendered inside another text-component (i.e. a h1
or a p
). Semantically it is a span, however, the implementation is such that the span will automatically adjust it's font-size between a maximum and minimum font-sze based on the screen width.
Then comes a class of components which effectively wrap the AutoResizer: Heading
and Paragrap
', which are exactly what they sound like, but they implement the auto-resize feature themselves.