Generate Styles for Email #1124
iamhectorsosa
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I hope this catches someone's attention! I'm using React.email to build a small library of styled components that are consistent under a design system. I'm looking into how could I integrate
vanilla-extract
into it.In my head this would look something like this:
Using
@vanilla-extract/recipes
is such a great DX but I'm wondering if there is any way to compile the CSS generated and inject it into this composition. The biggest roadblock here is that I need to compile the styles into CSS and populate them before React.email's compiler parses this into HTML. Any suggestions would be welcomed.So far the only thing that seems to be working for this setup is using
@vanilla-extract/dynamic
to assign vars using itsassignInlineVars
method, but this would only give me some sort of control over theme management using variables.Beta Was this translation helpful? Give feedback.
All reactions