Closed bstro closed 6 years ago
The jquery function? I really can't see how things would be impossible without it, I've never even seen it before.
I am referring to prop
from style-elements
, the precursor to this library. In the specific case that prompted this ticket, I haven't found a way to use relative font sizes without it, which is how I like to do fluid typography.
You can do inline styles using Element.htmlAttribute (Html.style "font-size" "1.2rem")
.
What do you usually do for fluid typography? Do you mean using em/rem
or are you talking about scaling the font with the window size?
I was referring to fluid typography using em/rem
as described here – but I'm thinking I might be able to accomplish something very similar by subscribing to the window dimensions and recalculating font sizes that way.
Ah, ok cool. Yeah, that's the way to go!
Really missing the
prop
function from style-elements. Has this been replaced by anything else? Very many things become impossible without it!