Closed SirZach closed 1 year ago
Will close as this isn't actually an issue.
Cool thanks for sharing. Have you tried adding your tailwind styles like so?
body.write(
`<!DOCTYPE html><html><head>
<link rel="stylesheet" href="${tailwindStylesHref}" />
${head}
</head><body><div id="root">`
);
I did but MUI injects its script tags to the top of head
after the app has initialized
that's odd 🤔 really hope we'll get rid of this workaround soon 🤞 and glad you fond a way to make it work for you!
I'm using both
tailwind
and emotion stylemui
components and ran into an issue usingremix-island
where the generatedtailwind
CSS was getting appended to the bottom ofhead
andmui
style tags were at the top and getting overwritten by tailwind. I wrote this little function to relocate the tailwind script tag and sharing here in case anyone else is experiencing the same or similar problems:Where in
root.tsx
the tailwind link is set up like