Conversation
johnkuney
left a comment
There was a problem hiding this comment.
I tried adding a test div with some tailwind classes and the styles did not come through.
Just added it in the widget component and did yarn build (in react dir) and then yarn dev (in paybutton dir)
Messed with it for a bit to try to get it to work but was not able to get any tailwind styles to come through
|
I was only able to get the tailwind styles (of a test div) to work in the demo if I add an import tailwinds.css in the index.html. Is that the expected behavior? I dont quite follow the tailwind.md....or the commands arent working for me. Should npm run build (in react) and then npm run dev (in paybutton) make any tailwinds styles added to components work in the demo? or does it need the npm run watch:tailwind also? I tried them all I believe |
|
OK - ready again for testing.
|
|
We do have higher prio things to worry about - will come back to this another time. |


Related to #524
Description
Introduces TailwindCSS, including 1 migration (Button.tsx) - with the eventual goal of completely migrating away from Material UI.
Test plan
Make sure nothing major is broken - pay close attention to the Button.tsx changes as there are definitely some things that need to be fixed up. Have a look at the demo/index.html page to see some styling regressions (eg. when the text has to go to 2 lines due to being too long).
Remarks
v3.4 was chosen because v4.x apparently doesn't work as well with microbundle and might be better at least until we've completely migrated away from Material UI.