6 lines
265 B
TypeScript
6 lines
265 B
TypeScript
|
|
// Paints the generated patterns into CSS custom properties before the first screen.
|
||
|
|
export default defineNuxtPlugin(() => {
|
||
|
|
const root = document.documentElement
|
||
|
|
for (const [name, value] of Object.entries(patternVars())) root.style.setProperty(name, value)
|
||
|
|
})
|