Repository navigation
fix(example): add missing Tailwind import to shared ui styles - #10579
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
|
@sahyl is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Author
|
Hi! This is my first contribution — happy to improve anything if needed. Thanks for taking a look 🙏 |
|
+1 encountering this issue after setting up from the example; this fix works for me. |
Contributor
Author
|
My first PR — fun learning experience. Appreciate the review and merge! excited to contribute more soon 🙌 |
anthonyshew
pushed a commit
that referenced
this pull request
Oct 13, 2025
### Description Update the Tailwind v4 Guide to detect the classes used in the shared UI package. By default Tailwind detects classes in the current working directory. To detect classes used in the `@repo/ui` packages we need to **either** include add `@import 'tailwindcss';` in that package's `style.css` **or** add the ui package as a source. While the former was done in the [with-tailwind example](#10579), it can lead to duplicate classes and [conflicts](#10657). You can find Tailwind's documentation about this here: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-registering-sources. In order for Tailwind to pick up the classes used in the `@repo/ui` package the web styles need
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.
This PR fixes vercel/turborepo#10566 by adding the missing Tailwind import to
shared-styles.cssin thepackages/uidirectory of thewith-tailwindexample.What was the problem?
Shared components like
CardorButtonhad Tailwind classes, but styles were not applied because Tailwind layers were never included.What changed?
Added:
to packages/ui/shared-styles.css.
Result
Tested locally using:
UI components are now styled correctly.
Closes #10566