Open mckelveygreg opened 1 year ago
I did some more investigating because I noticed that there were tests for this situation.
I looks like there may be 2 issues:
sm:w-1
), all classes get hoisted to the <head>
instead of being inline.example
<div className="w-1.5" />
<Text className="text-sm sm:text-md" />
turns into
<html>
<head></head>
<body>
<div style=\\"width:0.375rem\\"></div>
<p style=\\"font-size:0.875rem;line-height:1.25rem;margin:16px 0\\"></p>
</body>
</html>
Currently, the inline styles default to the
Text
component take precedence over tailwind styles that I'm passing to it.My workaround