typetura
. You can change the selectors that Typetura identifies as a context by adding a configuration before the Typetura script runs.typetura
.article
, section
, main
, aside
, and the various headline styles are also contexts.<Typetura.Context></Typetura.Context>
.--tt-bind
property. So if it’s 72° F, you can query that temperature and use it as a context by adding the style --tt-bind: 72;
to the parent element. Typetura always starts at a value of 0
, so you may need to offset your values to match this, and a maximum can be set with --tt-max
. If we want our Typetura styles to max out at 100° F, then we would write it like --tt-max: 100;
.