fix: restore Marquee animation and Tailwind v4 compatibility#83
fix: restore Marquee animation and Tailwind v4 compatibility#83naymurdev merged 1 commit intoui-layouts:mainfrom
Conversation
WalkthroughThis pull request refactors CSS theme organization and extends marquee animation capabilities. It moves animation variable declarations to an inline theme scope, introduces reverse marquee animations with corresponding keyframes, and updates gap utility syntax from Tailwind arbitrary values to a new format across components and documentation. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code graph analysis (1)apps/ui-layout/components/ui/marquee.tsx (1)
🔇 Additional comments (5)
Comment |
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