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

codemod help

hi, might I ask how exactly to use codemod to run @emotion/pkg-renaming and rename (supposedly we have lots of eslint error in the project) and we want to rename/fix only emotion related lines

thumbsup
0
message-simple
0

Minimize the class name hash generated by emotion

Hi! How can I minimize the class name hash generated by emotion? From: To:

thumbsup
0
message-simple
1

Hello guys. Can anyone help me with emotion and twin.macro for Next.js?

thumbsup
0
message-simple
0

Migrating to Emotion is causing a big increase in Layout Shift (with SSR)

Hey all. I just migrated a project from Linaria to Emotion, but am seeing a massive increase in Cumulative Layout Shift, and I'm not sure why. I'm using Next.js and can confirm that critical CSS extraction is working fine after looking at the HTML output. It's my understanding…

thumbsup
0
message-simple
5

Cannot use other components as selector in css helper

Hey guys. Currently trying to use emotion with typescript (and next.js). I'm trying to reference components as selectors in the css helper like so: const navBarStyles = css` display: flex; …

thumbsup
0
message-simple
1

Is there a Vscode extension to highlight css tagged literals

I'm using vscode-styled-components now, but this extension doesn't highlight the css tagged literals.

thumbsup
0
message-simple
0

Emotion 11 breaking in Gatsby

I am using Gatsby with Ghost and everything seems to be working fine until I updated my Emotion plugin to version 11. When I run Gatsby develop for my build, I get the error below. Anyone run into this issue?

thumbsup
0
message-simple
0

Using @emotion/css directly, garbage collection of unused classes?

I'm trying to use @emotion/css directly in a Svelte application, but I was wondering how Emotion knows it should remove a style again when it's not used anymore. Currently if you calculate a class / style based on a svelte prop that changes very often, you end up which a huge…

thumbsup
1
message-simple
0

Why is emotion core recommended for React instead of emotion styled?

The documentation states: To me it seems natural to separate the styled components in a different file and then import them to use in their component, however this does not seem to make sense using only emotion/core since the components are styled directly. So I wonder what are…

thumbsup
0
message-simple
0

Emotion has become very popular, but what about UI component libraries?

Emotion and Emotion Core now have over 4M weekly downloads. However, as a consumer of Emotion, I find myself limited in the ability to use external UI libraries. I'd love to see a UI component library which I can customize and style with Emotion, just as I do with my own…

thumbsup
0
message-simple
11