Skip to content
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

Add support for Tailwind v4 CSS theme override #12

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

vnphanquang
Copy link
Contributor

This PR adds a build target to tailwind/index.css, intended to support Tailwind V4 (currently in beta), which allows theme override using CSS syntax.

More information here: https://tailwindcss.com/docs/v4-beta#overriding-the-default-theme.

Note

Even though Tailwind V4 is in beta, I believe the syntax for theme override is unlikely to change, so this PR should be future proof. But if they do change I'm happy to follow-up.


Also, I noticed there is no pipeline for CHANGELOG generation and automatic publication. Happy to open a follow-up PR to set up changesets if you think that's helpful.

I have not bumped version or added to CHANGELOG.md either. Please let me know if you want me to do that in this PR as well.

Thanks!

@11bit
Copy link
Member

11bit commented Nov 25, 2024

@vnphanquang Thank you for the contribution! I have one question. Prior to v4, there were special colors inherit, current, transparent, black, white. We add them here to make Harmony a drop-in replacement. Is it still a thing in v4?

@vnphanquang
Copy link
Contributor Author

vnphanquang commented Nov 25, 2024

@11bit that's a very nice catch! As of beta.2, inherit, current, transparent will be available by default, but we do need to add black and white back in the theme override, which I did in a new commit 3e20f1a. Thanks for checking!

Copy link
Member

@11bit 11bit left a comment

Choose a reason for hiding this comment

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

🔥

@11bit
Copy link
Member

11bit commented Nov 25, 2024

Tnanks @vnphanquang!

Also, I noticed there is no pipeline for CHANGELOG generation and automatic publication. Happy to open a follow-up PR to set up changesets if you think that's helpful.

It would be very nice ❤️

@11bit 11bit merged commit bb2dd2d into evilmartians:main Nov 25, 2024
1 check passed
@vnphanquang
Copy link
Contributor Author

Tnanks @vnphanquang!

Also, I noticed there is no pipeline for CHANGELOG generation and automatic publication. Happy to open a follow-up PR to set up changesets if you think that's helpful.

It would be very nice ❤️

Thanks @11bit for the quick merge. A follow-up is at #14. Please feel free to give feedback. Cheers!

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.

2 participants