--- import "@fontsource-variable/jetbrains-mono"; import "@fontsource-variable/roboto-flex"; import { spaces, weights } from "../config/styles"; let styles = ""; styles += ":root{"; spaces.forEach((space, index) => { styles += `--space-${index}:${space}rem;`; }); for (const weight in weights) { styles += `--weight-${weight}:${weights[weight as keyof typeof weights]};`; } styles += "}"; ---