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
down-caret

css prop isn't applying styles as expected

Hey everyone! I'm using emotion in a component library built using storybook. When importing this component library into my application, I'm unable to override default styles using the css prop. My component has some default styles using emotion. In my application, I'm importing…

thumbsup
0
message-simple
4

Looking for example projects using emotion + react

I am looking at emotion for my next project. Until now, I was working with scss and using BEM. I want to learn the best practices of how to organize the constants and common variables (design system) inside the project, how to introduce common components and allow expanding the…

thumbsup
0
message-simple
2

Emotion VSCode plugin (idea)

Hi y'all, I've been thinking of making a plugin like https://github.com/tailwindlabs/tailwindcss-intellisense Would anyone be interested in collaborating on it?

thumbsup
1
message-simple
1

Is the slack channel going to be reintroduced or is the community jst here now?

thumbsup
0
message-simple
1

Best place to add css objects in React Class and "jsx is declared" warning

Hello Emotion community, a couple beginner questions I am using in some places old classic React classes. I am also using css objects for the styling (css={nameOfTheVariableObject} …

thumbsup
0
message-simple
3

How to use @emotion/babel-preset-css-prop with Expo?

Hey! I'm trying to use Emotion with Expo + Typescript, since there's no typings for v10, i'm using v11, and i've noticed that adding @emotion/babel-preset-css-prop to babel.config.js i get Unexpected token '{'. Import call expects exactly one argument on Expo app on Android,…

thumbsup
0
message-simple
0

Hover on parent with targeting child

Hi everyone, I can't figure out how to deal with the situation when I need to have a hover effect for children but hover over the parent element. An example is here https://codesandbox.io/s/bold-nightingale-bg1rl?file=/src/App.js Is there something I do wrong?

thumbsup
0
message-simple
0

Does emotion have something similar to StyleSheetManager in SC?

Hi, I need to inject style tag into a specific DOM element. In Styled-Components this can be done using StyleSheetManager: https://styled-components.com/docs/api#stylesheetmanager Can I do the same in emotion?

thumbsup
0
message-simple
1

I used bootstrap classes, and supposed I want to change some values in class…

Eg. if class is .text-danger for text danger color is red …

thumbsup
0
message-simple
0

Class Name generation

I'm working on implementing an infinite scroll feature on a blog. When the user scrolls 2/3rds down on the article then I asynchronously fetch the next article and add the content and styles to the DOM. I'm using Next.js with Emotion 9 create-emotion-server and a global cache.…

thumbsup
0
message-simple
1