game-village-politics-frontend/app/plugins/patterns.client.ts

6 lines
265 B
TypeScript
Raw Normal View History

// 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)
})