Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tremor with tailwind css 4 #2

Open
shriharip opened this issue Mar 30, 2025 · 0 comments
Open

Tremor with tailwind css 4 #2

shriharip opened this issue Mar 30, 2025 · 0 comments

Comments

@shriharip
Copy link

Pretty much the title. I tried to use it in a project that has tailwind css version 4 (4.0.7) .

I added the npm package . but importing them does not render the charts or components.

my tailwind.config.js is not there and I have made changes to the css file itself as per the docs . Here is the file

@import "tailwindcss";

@plugin "@tailwindcss/forms"
@plugin "@tailwindcss/typography"
@plugin "@headlessui/tailwindcss"

@keyframes hide {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideDownAndFade {
  from {
    transform: translateY(-6px);
    opacity: 0;
  }
  to {
    transform: translateY(0%);
    opacity: 1;
  }
}

@keyframes slideUpAndFade {
  from {
    transform: translateY(0%);
    opacity: 1;
  }
  to {
    transform: translateY(-6px);
    opacity: 0;
  }
}

@keyframes slideLeftAndFade {
  from {
    transform: translateX(-6px);
    opacity: 0;
  }
  to {
    transform: translateX(0%);
    opacity: 1;
  }
}

@keyframes slideRightAndFade {
  from {
    transform: translateX(0%);
    opacity: 1;
  }
  to {
    transform: translateX(6px);
    opacity: 0;
  }
}

@keyframes accordionOpen {
  from {
    height: 0;
  }
  to {
      height: "var(--radix-accordion-content-height)"
  }
}

@keyframes accordionClose {
  from {
    height: "var(--radix-accordion-content-height)"
    opacity: 1;
  }
  to {
    height: 0;
    opacity: 0;
  }
}

@keyframes dialogOverlayShow: {
          from: { opacity: "0" },
          to: { opacity: "1" },
        },

@keyframes dialogContentShow: {
          from: {
            opacity: "0",
            transform: "translate(-50%, -45%) scale(0.95)",
          },
          to: { opacity: "1", transform: "translate(-50%, -50%) scale(1)" },
        },

--animate-hide : hide 150ms cubic-bezier(0.16, 1, 0.3, 1);

--animate-slideDownAndFade : slideDownAndFade 150ms cubic-bezier(0.16, 1, 0.3, 1);
--animate-slideUpAndFade : slideUpAndFade 150ms cubic-bezier(0.16, 1, 0.3, 1);
--animate-slideLeftAndFade : slideLeftAndFade 150ms cubic-bezier(0.16, 1, 0.3, 1);
--animate-slideRightAndFade : slideRightAndFade 150ms cubic-bezier(0.16, 1, 0.3, 1);

--animate-accordionOpen : accordionOpen 150ms cubic-bezier(0.16, 1, 0.3, 1);
--animate-accordionClose : accordionClose 150ms cubic-bezier(0.16, 1, 0.3, 1);

--animate-dialogOverlayShow : dialogOverlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
--animate-dialogContentShow : dialogContentShow 150ms cubic-bezier(0.16, 1, 0.3, 1);

Rest everything is kept same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant