fix: restore Marquee animation and Tailwind v4 compatibility #83
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I believed this was fixed in PR #82, but it still isn’t working perfectly. Submitting another PR to address the remaining issues.
Description
This PR focuses on fixing Tailwind v4 compatibility issues in the
Marqueecomponent.During migration, Tailwind’s new CSS-first compiler caused animation variables and custom property scopes to behave inconsistently.
This update reorganizes animation tokens and CSS variable definitions to ensure smooth marquee motion and reliable variable overrides.
Changes
@themeblock into@theme inlinefor Tailwind v4 compatibility.gap-[var(--gap)]withgap-(--gap)to align with the new Tailwind v4 shorthand syntax.@sourcepaths to include all component files, ensuring custom utilities like[--duration:10s]are correctly extracted.marquee,marquee-reverse, andmarquee-verticalkeyframes into the same@theme inlineblock to maintain variable linkage.marquee-reverse,marquee-vertical-reverse) for full parity with horizontal and vertical motions.Motivation
--duration,--gap) remain functional after migration.@theme inlineguarantees local variable resolution within the same compilation context.[--duration:10s]and similar overrides at the component level to properly cascade.Summary by CodeRabbit
New Features
Refactor