WIP jordan

This commit is contained in:
Jordan Weingarten
2026-04-16 11:11:44 -05:00
parent ff2d7b18b5
commit 67482f6629
163 changed files with 50627 additions and 728 deletions

View File

@@ -0,0 +1,11 @@
/** Apply saved theme before paint to reduce flash (pairs with useAppTheme). */
export default defineNuxtPlugin(() => {
try {
const t = localStorage.getItem('policy-ui.theme.v1')
if (t && ['light', 'purple', 'dark', 'dark-purple'].includes(t)) {
document.documentElement.setAttribute('data-theme', t)
}
} catch {
/* ignore */
}
})