-
Beta Was this translation helpful? Give feedback.
Answered by
pocho50
Dec 6, 2025
Replies: 1 comment
-
|
Hi, maybe it's a bit late, but I’m sharing how I was able to get it working. I’m using Nuxt 4.2.1 app/assets/app.css: @import "tailwindcss";
@plugin "flyonui" {
themes: light --default;
}
@source "../../node_modules/flyonui/flyonui.js";
@import "flyonui/variants.css";app/plugins/flyonui.client.ts: import "flyonui/flyonui";
export default defineNuxtPlugin((nuxtApp) => {
const router = useRouter();
let isHydrated = false;
nuxtApp.hook("page:finish", () => {
isHydrated = true;
if (window.HSStaticMethods) {
window.HSStaticMethods.autoInit();
}
});
router.afterEach(async () => {
if (isHydrated) {
setTimeout(() => {
if (window.HSStaticMethods) {
window.HSStaticMethods.autoInit();
}
}, 0);
}
});
});I hope this helps. ` |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yagnikvamja
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hi, maybe it's a bit late, but I’m sharing how I was able to get it working.
I’m using Nuxt 4.2.1
app/assets/app.css:
app/plugins/flyonui.client.ts: