Emotion Styling Guide
A guide to styling React applications using Emotion's flexible CSS-in-JS approaches with both css prop and styled APIs.
Usage
Ask about Emotion styling patterns, the css prop, theming, or SSR configuration.
Examples
- "Create a component using Emotion's css prop"
- "How do I set up SSR with Emotion?"
- "Build a theme system with Emotion's ThemeProvider"
Guidelines
- Choose css prop for simple inline-like styles
- Use styled for reusable component abstractions
- Configure the JSX pragma or babel plugin for css prop support
- Use the cache provider for SSR streaming
- Prefer object styles for TypeScript type safety