menu

emotion

Emotion is a css-in-js library focused on performance and developer experience

Channels
# All channels
view-forward
# General
view-forward
# Development
view-forward
# Help
view-forward
# Off Topic
view-forward
Team
Posts
Members
Info

Is it possible to make the Global feature respect component scoping?

I'm using emotion in a react app. I like the Global feature because I don't have to manually insert emotion styling into each element via the css prop anymore. The one Global element takes care of styling everything. But the problem is that global applies to every single…

thumbsup
0
message-simple
1

Emotion rendering modals from an iframe into the parent doesn't include styles.

I found someone's example on using Emotion with iframes. I simply created a Portal element and rendered Header in there to show the issue I'm having right now: https://codesandbox.io/s/scopeprovider-and-frameprovider-jfg02 The document.body refers to the parent's document. This…

thumbsup
2
message-simple
2

CSS vs Object Styles

This might seem like an obvious question to some but is there a nice comparison of the pros and cons of using CSS or object styles? Both make sense to me to use for different reasons. Interested to see a side-by-side comparison on multiple levels (usage patterns, performance,…

thumbsup
1
message-simple
1

React Native - @emotion/primitives or @emotion/native

I'm starting a new project in React Native, to develop an iOS + Android app. Nothing fancy like Sketch or react-native-web. I'm struggling to see the difference between the two packages emotion/primitives and emotion/native, can anybody tell me what they are? Even their…

thumbsup
1
message-simple
5

Slack link not working on website

402 Payment declined. Any other way to get in there? :)

thumbsup
0
message-simple
0

Approach to Testing Themed Components in Enzyme with Emotion 10

With the update to version 10, channel and createBroadcast have been removed from the emotion-theming API, likely due to the change in using context. I think this is a good change, but I have relied on those API functions in the past to provide theme to Enzyme shallow and mount…

thumbsup
2
message-simple
5

Feedback https://github.com/muhajirdev/monad-ui

Hey guys, I am developing this https://github.com/muhajirdev/monad-ui. I'd love to hear some feedback from you

thumbsup
2
message-simple
1

Why I love writing css with emotion

I'm sure I'm preaching to the choir here, but I wrote a little something explaining why Emotion is my preferred css-in-js solution over something like Styled-components. https://benmcmahen.com/why-i-choose-emotion/

thumbsup
2
message-simple
1

Is there a build of emotion as a single file?

thumbsup
0
message-simple
0

"Functions that are interpolated..." tagged template literal question

I'm trying to create a simple helper for writing media queries but I can't seem to get my head round how tagged template literals are supposed to work, and I keep running into the same error from Emotion What I want to achieve is this: Based off of a simple object of…

thumbsup
0
message-simple
1