Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix theme.json generation to handle :host selector in app.css theme layer #3216

Merged
merged 1 commit into from
Feb 2, 2025

Conversation

stuart-james
Copy link
Contributor

Previously, wordpressThemeJson checked that themeContent starts with :root{, but Tailwind wraps theme layer in :root, :host, causing an early return. Remove '{' to support :host selector and add trim() for non-minified app.css.

…app.css

- Previously, wordpressThemeJson checked that themeContent starts with  `:root{`
- Tailwind outputs `:root, :host {`, causing an early return.
- Remove '{' and add trim() to support non-minified app.css.
@Log1x Log1x merged commit c0eb48e into roots:tailwind-v4 Feb 2, 2025
1 check passed
@Log1x
Copy link
Member

Log1x commented Feb 2, 2025

ty!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants