[docs-infra] Add Tailwind CSS Prettier plugin
I have often got the impression that using Tailwind CSS without Prettier, VS Code, and all the tools that are part of the developer lifecycle isn't truly using Tailwind CSS, it's part of the whole point, e.g. https://x.com/adamwathan/status/1796582408621523320/quotes. Since Base UI uses this plugin, I believe we must standardize to use it in all our codebase. We are unlikely to have a lot of Tailwind CSS code in this repository, but the X repositories will likely have more.
Opportunity noticed in https://github.com/mui/base-ui/pull/1183.
One point of caution:
time pnpm prettier:all
Before: 71.66s user 5.94s system 148% cpu 52.204 total
After: 88.86s user 13.81s system 135% cpu 1:15.66 total
It's very noticeable (+44%) but not a huge concern. We rarely prettier the whole codebase.
Netlify deploy preview
- docs/data/base/getting-started/quickstart/quickstart.md
- docs/data/base/guides/working-with-tailwind-css/working-with-tailwind-css.md
Bundle size report
No bundle size changes (Toolpad) No bundle size changes
Generated by :no_entry_sign: dangerJS against fa386f392d79ed2708fcf52fa4c35907f75dffe9