Skip to main content

FAQ

Find answers to commonly asked questions.

Help make our documentation better

Did you have a question that got answered? Click the "edit this page" link and make note of you Q&A.

Styling not being applied when using styled() from @emotion/styled

If you are exporting your component wrapped with style(ComponentName)(styles) and you are not seeing your styling come through, start by adding a basic background color to the root of your styles.css.ts file to ensure there is no issues with css targeting. If targeting is not the issues, ensure your first element returned from your component is receiving className prop and setting className={className} or similar. Emotion Styled engine relies on applying classNames to the root element in order to apply styles.