CSS-in-JS theming for Lexical? #6338
Unanswered
andymerskin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there! Our project uses a CSS-in-JS system called Twin.Macro exclusively, which allows us to use a custom Tailwind configuration with all the goodness of Styled Components + some other features, for those who prefer that flavor of CSS. This means we don't really have access to our generated Tailwind utilities straight in
className
attributes due to the nature of Twin.Macro.This also makes it difficult for us to use our utility classes for theming Lexical since its editor themes appear to only accept className strings for each element, and as far as I can tell, Twin doesn't provide a way to generate a className string from its own helper, example:
For reference, I've asked the folks over at Twin.Macro for advice on how they recommend styling/theming 3rd party libraries as well.
Twin.Macro aside, more generally, how have people approached theming Lexical in projects where CSS-in-JS is more enforced?
Beta Was this translation helpful? Give feedback.
All reactions