-
Notifications
You must be signed in to change notification settings - Fork 0
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
Prepare Tailwind config to be used within demosplan-core #294
Conversation
- enable preflight (= reset/normalize) - set everything important because preflight and other declarations are rendered within the same file, so we can either include tailwind at first (having arbitrary selectors overriding its utilities), or last (having its preflight declarations override stuff) - add some tweaks where demosplan utility classes do not have their counterparts in tailwind
# Conflicts: # src/components/core/DpDataTable/DpTableRow.vue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one Question, not a concern.
extend: {} | ||
extend: { | ||
flexShrink: { | ||
2: '2' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of curiosity: Why that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of the box, tailwind supports flex-shrink 0 or 1. However in one place in demosplan we use flex-shrink: 2, and this is the official way of extending tailwind utility classes.
This PR changes the Tailwind config so that it includes "Preflight", the opinionated normalize of Tailwind. So, we can drop normalize in demosplan-core.
Also, it adds
yarn build:css
to the prepack steps, so that a complete tailwind build is always included in the package.Lastly, it changes some util classes to be of the tailwind syntax, in preparation of them being dropped from demosplan-core.