body {
font-family: var(--font-family);
}
'--font-family': `"Electrolux Sans", system-ui, -apple-system,BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans,sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol,Noto Color Emoji`,
the sizes won't be correct. If you hardcode the font family on the body it does work though.
If you use CSS variables to define the font like:
then later you define something like:
the sizes won't be correct. If you hardcode the font family on the body it does work though.