Simple text fitting, supports shadow DOM
npm i fitter-js
new Fitter({
min: 12, // px
max: 32, // px
element: '.js-fitter' // selector string or node
});
let fitter = new Fitter({
shadowRoot: yourShadowRoot
});
fitter.fit();
fitter.set({ min: 10 });