docs: add Tailwind CSS integration guide#13291
Merged
Conversation
Add documentation for using UI5 Web Components with Tailwind CSS, addressing the preflight CSS reset conflict reported in #8179. - New guide at docs/3-frameworks/04-Tailwind.md with setup options for both Tailwind v3 and v4 (disable preflight or targeted restore) - FAQ entry linking to the guide Closes #8179
Collaborator
|
🧹 Preview deployment cleaned up: https://pr-13291--ui5-webcomponents.netlify.app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/3-frameworks/04-Tailwind.md) explaining how to configure Tailwind CSS to work with UI5 Web ComponentsContext
Addresses #8179 — Tailwind's preflight CSS reset sets
border-width: 0on all elements via*, which overrides:hoststyles on UI5 components that intentionally place borders on the host element for easy customizability.What the guide covers
*styles win over shadow DOM:hoststylesall: revert-layerrestore for affected components (v3 + v4)borderon:host)Test plan
cd packages/website && yarn buildpassesCloses #8179