Skip to content

Conversation

@01001101CK
Copy link
Collaborator

What changed?

Migrate site to tailwind v4

Screenshot

@netlify
Copy link

netlify bot commented Oct 31, 2025

Deploy Preview for deltaio-site ready!

Name Link
🔨 Latest commit d0ac670
🔍 Latest deploy log https://app.netlify.com/projects/deltaio-site/deploys/690d1d296d2f910009e9e28c
😎 Deploy Preview https://deploy-preview-564--deltaio-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

- Replace @astrojs/tailwind with @tailwindcss/vite plugin
- Convert JavaScript config to CSS-first approach
- Replace all theme() function calls with CSS variables
- Update 25+ components with new CSS architecture
- Create comprehensive tailwind.css with @theme and @Utility directives
- Fix linting error: remove unused __dirname variable

Signed-off-by: Yufa <[email protected]>
- Update all custom spacing classes (gap-sm, px-sm, py-xs, etc.) to standard Tailwind classes
- Replace custom utilities with standard spacing scale (gap-3, px-3, py-2, etc.)
- Update 15+ components across delta-theme and delta-site packages
- Maintain backward compatibility with custom theme variables
- Fix menu, header, form, footer, and content components
- Ensure all styling works with Tailwind CSS v4

Signed-off-by: Yufa <[email protected]>
- Update global CSS rule to exclude elements with no-underline class
- Add explicit @Utility no-underline definition for Tailwind CSS v4
- Fix menu links and other elements that should not have underlines
- Ensure proper CSS specificity for text-decoration-line: none

Signed-off-by: Yufa <[email protected]>
…port "tailwindcss" and moved all theme configuration into the @theme block using CSS custom properties

- Added extensive @Utility declarations and responsive classes using CSS media queries
- Replace screen() function syntax (deprecated) with standard CSS media queries
- Replaced custom arbitrary value with closest standard Tailwind values

Signed-off-by: Yufa <[email protected]>
…omputedStyle().columnGap sometimes didn't reflect it (especially when conflicting with the Grid component's default column-gap), so we fixed it by adding explicit gap: 2rem in CSS, improving gap parsing to handle both columnGap and gap with unit conversion, and using DOM measurement as the primary method to measure the actual rendered distance between items.

Signed-off-by: Yufa <[email protected]>
Copy link
Collaborator

@jakebellacera jakebellacera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, amazing work! Thank you for doing this. However, the changes should feel like a refactor under the hood, and yet I'm seeing some styling differences due to the behavior of tailwind v4 vs v3. Once you get these fixes addressed, we should be in a good spot to merge!

…d colors with CSS variables, simplify link styling

- Fix Tailwind v4 text utilities, replace hardcoded colors with variables

Signed-off-by: Yufa <[email protected]>
- Moved subtitle-container styles from Section component to global tailwind.css for consistent spacing
- Removed conflicting hero-subtitle-text style from HeroSection component
- Reduced heading specificity in Typography by wrapping selectors with :where() for utility class overrides
- Added text-white utility to tailwind.css for footer menu styling
- Moved text-h4 utility to @layer utilities block for proper Tailwind v4 layering

Signed-off-by: Yufa <[email protected]>
- Use corresponding variable --breakpoint-md instead of max-w-screen-md

Signed-off-by: Yufa <[email protected]>
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.

3 participants