Write theme variables to get autocomplete while developing. Only works from node.
// src/bin/generateThemeVars.tsimport { theme } from "../theme.js" // import theme instanceimport { writeTheme } from "metamorphisis/node/writeTheme.js"// write relative to filewriteTheme(theme, import.meta.url, "../assets/variables.scss") Copy
// src/bin/generateThemeVars.tsimport { theme } from "../theme.js" // import theme instanceimport { writeTheme } from "metamorphisis/node/writeTheme.js"// write relative to filewriteTheme(theme, import.meta.url, "../assets/variables.scss")
In package.json:
"scripts": { "gen:theme": "pnpm ts-node src/bin/generateThemeVars.ts"} Copy
"scripts": { "gen:theme": "pnpm ts-node src/bin/generateThemeVars.ts"}
node
Write theme variables to get autocomplete while developing. Only works from node.
In package.json: