Skip to content

[WIP] Migrate to tailwindcss v4 #8

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

Merged
merged 3 commits into from
Jan 26, 2025
Merged

[WIP] Migrate to tailwindcss v4 #8

merged 3 commits into from
Jan 26, 2025

Conversation

JingMatrix
Copy link
Owner

Here are two breaking changes:

  1. Adding @reference is an obligation

See its docs at https://tailwindcss.com/docs/functions-and-directives#reference-directive

  1. Config files should be loaded manually

JavaScript config files are still supported for backward compatibility, but they are no longer detected automatically in v4.

See https://tailwindcss.com/docs/upgrade-guide#using-a-javascript-config-file

Here are two breaking changes:

1. Adding @reference is an obligation

See its docs at https://tailwindcss.com/docs/functions-and-directives#reference-directive

2. Config files should be loaded manually

JavaScript config files are still supported for backward compatibility, but they are no longer detected automatically in v4.

See https://tailwindcss.com/docs/upgrade-guide#using-a-javascript-config-file
Copy link

netlify bot commented Jan 26, 2025

Deploy Preview for jianyu-ma ready!

Name Link
🔨 Latest commit d4eb3b2
🔍 Latest deploy log https://app.netlify.com/sites/jianyu-ma/deploys/679660d20c727300080c6add
😎 Deploy Preview https://deploy-preview-8--jianyu-ma.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 site configuration.

@JingMatrix
Copy link
Owner Author

JingMatrix commented Jan 26, 2025

However, as one can see from the preview page, https://deploy-preview-8--jianyu-ma.netlify.app/en/contact, the css style of this element

document.querySelector("#VPContent > div > div > div > div > div > div > input")

is overwritten by the default theme.

@JingMatrix JingMatrix marked this pull request as ready for review January 26, 2025 17:03
@JingMatrix JingMatrix merged commit 81cd435 into main Jan 26, 2025
4 checks passed
@JingMatrix JingMatrix deleted the tailwind branch March 19, 2025 22:23
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.

1 participant