Skip to content

fix(shine-border): restore animation and update Tailwind config usage #709

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Nuu-maan
Copy link

Fixes #707

This PR addresses the missing shine-border animation by:

✅ Fixes

  • Ensured @keyframes shine and --animate-shine are included in styles/globals.css
  • Confirmed that globals.css is properly imported in app/layout.tsx
  • Updated tailwind.config.mjs to include all relevant content paths so motion-safe:animate-shine is preserved
  • Added optional disableMask prop to ShineBorder to make debugging easier (can be toggled to test if masking is hiding the shine)

📖 Docs Suggestion

The current docs for shine-border should include:

// tailwind.config.mjs
export default {
  theme: {
    extend: {
      animation: {
        shine: "shine var(--duration) infinite linear",
      },
      keyframes: {
        shine: {
          "0%": { backgroundPosition: "0% 0%" },
          "50%": { backgroundPosition: "100% 100%" },
          "100%": { backgroundPosition: "0% 0%" },
        },
      },
    },
  },
}

Copy link

vercel bot commented Jun 30, 2025

@Nuu-maan is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

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

Successfully merging this pull request may close these issues.

[bug]:/docs/components/shine-border
1 participant