Skip to content
Discussion options

You must be logged in to vote

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) {

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yagnikvamja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants