Repository navigation
fix(ui-components): correct the setup of tailwind default styles - #45369
Merged
Merged
Conversation
|
👀 Review this PR in a CodeSee Review Map |
huyenltnguyen
force-pushed
the
fix/tailwind-styles
branch
from
March 7, 2022 10:04
87a1382 to
70828a7
Compare
huyenltnguyen
commented
Mar 7, 2022
huyenltnguyen
force-pushed
the
fix/tailwind-styles
branch
from
March 7, 2022 10:11
70828a7 to
aefb697
Compare
huyenltnguyen
marked this pull request as ready for review
March 7, 2022 10:53
4 tasks done
ahmaxed
approved these changes
Mar 15, 2022
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.

Checklist:
Update index.md)mainbranch of freeCodeCamp.I realized that I setup a Tailwind config wrong.
Tailwind provides us 3 default stylesheets:
base,components, andutilities. They should be grouped in a single file, which I already did, and the file isglobal.css, but I'm currently importing it to the stylesheet of each component in theui-componentslibrary.While I believe the correct setup should be having that single stylesheet minified and included in the library bundle instead. Then it is the responsibility of the consumer apps to import that stylesheet as well in. Something like this:
This PR updates the setup and I'm also renaming the
global.cssfile tobase.cssas I think it is more appropriate.References: