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
Tailwind package setup #8003
Tailwind package setup #8003
Conversation
Manage this branch in SquashTest this branch here: https://stevedyatailwind-setup-3dr5r.squash.io |
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.
@stevedya there are two big things I don’t see here and we’ll need to make a plan for, either in this PR or out:
- How the Tailwind theme interacts with Sass – do we generate variables, use the built-in theme, or a custom version of that
- How we do logical properties in CSS (we’ll completely disallow this in stylesheets, so ideally would want the same restriction in utility classes).
Additionally for this PR:
- I think you should change at least one template to use Tailwind utility classes. I’d recommend the styleguide’s
base.html
- I would like us to remove some of Wagtail’s existing utilities if they have clear Tailwind equivalents where there would be no possible backwards compat issues (
u-text-weight-normal
,u-text-transform-uppercase
,u-hidden
seem like clear candidates. Perhapsvisuallyhidden
).
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
1b0e426
to
d3ed227
Compare
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.
Thank you @stevedya! I had to re-add the design tokens integration to make sure this was working, and swapped to Tailwind classes in two templates. Nice one!
For the other things I had mentioned, I’ll create follow-up tickets.
Relates to #7981. This is a basic setup of tailwind css to generate utility styles. We may want to merge along with #7978 in order to have the tailwind configuration appropriately configured for wagtail's design system.