Skip to content

Emotion uses this template literal notation. Is it possible with Theme UI? #1312

Answered by lachlanjc
dungle-scrubs asked this question in Q&A
Discussion options

You must be logged in to vote

Yep! You’ve got it exactly. Theme UI is a layer on top of Emotion, but @emotion/styled is a dependency, so just use styled directly like that. If you’d like to style a component, styled(Badge) etc will work. I use it in production frequently. Theme UI’s Styled is a totally different thing, a React component for using theme styles. variants.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by lachlanjc
Comment options

You must be logged in to vote
1 reply
@hasparus
Comment options

Comment options

You must be logged in to vote
3 replies
@lachlanjc
Comment options

@hasparus
Comment options

@hasparus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants