You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am making a tool which is like a sandbox where the user can enter jsx on the left and the right will output the render. Currently, the tool sees that tailwind is imported and goes to the node_modules/tailwindcss/package.json and sees the style field leading to the index.css. I then create a @scope (.render_div){ [paste index.css] } and render that into the document. The scope is working, but none of the node render properly (e.g. className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-b from-[#2e026d] to-[#15162c] text-white" has no effect). I assume that this is because I'm not reading the proper css file? How do I fix this? Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am making a tool which is like a sandbox where the user can enter jsx on the left and the right will output the render. Currently, the tool sees that tailwind is imported and goes to the node_modules/tailwindcss/package.json and sees the style field leading to the index.css. I then create a
@scope (.render_div){ [paste index.css] }
and render that into the document. The scope is working, but none of the node render properly (e.g. className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-b from-[#2e026d] to-[#15162c] text-white" has no effect). I assume that this is because I'm not reading the proper css file? How do I fix this? Thanks!Beta Was this translation helpful? Give feedback.
All reactions