Dynamic font size relative to viewport width.
Try resizing your browser to see font size change
import { fontFluid } from 'gadjet/dist/module/style/font-fluid.js';
fontFluid({
vwMin: number = 300,
vwMax: number = 1200,
fontSizeMin: number = 16,
fontSizeMax: number = 18
}) => string;
{ vwMin: number = 300 }
{ vwMax: number = 1200 }
{ fontSizeMin: number = 16 }
{ fontSizeMax: number = 18 }
import { addStyle, fontFluid } from 'gadjet';
addStyle`
html {
${fontFluid({
vwMin: 300,
vwMax: 1200,
fontSizeMin: 16,
fontSizeMax: 18
})}
}`;