{
 "kind": "tool",
 "slug": "emotion",
 "path": "tools/emotion/",
 "name": "Emotion",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Styling and CSS",
   "tools/styling/"
  ]
 ],
 "lead": "CSS-in-JS library for styling React components with scoped styles and theming.",
 "chips": [
  {
   "label": "Styling and CSS",
   "path": "tools/styling/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @emotion/react"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/emotion-js/emotion"
  },
  {
   "label": "Website",
   "href": "https://github.com/emotion-js/emotion/tree/main#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/emotion-js/emotion"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Oct 23, 2026",
   "note": "Latest GitHub release Nov 4, 2025. ",
   "src": "https://github.com/emotion-js/emotion"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "116 projects",
   "status": "info",
   "sub": "#3 of 53 in its category",
   "note": "Dependency in 116 public GitHub projects set up for AI coding agents that we scanned (1.9%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Community skills",
   "status": "info",
   "sub": "6 skills by others",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Emotion does",
   "parts": [
    {
     "t": "prose",
     "text": "Emotion ships as a framework-agnostic <code>css</code>/<code>cx</code> package that needs no setup, and a separate React package whose <code>css</code> prop comes with theming and server rendering the docs describe as zero-config."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Emotion popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "77",
       "of": "/ 100",
       "l": "Gid Score, #151 overall"
      },
      {
       "n": "29.3M",
       "l": "downloads a week, npm"
      },
      {
       "n": "18K",
       "l": "GitHub stars"
      },
      {
       "n": "116",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Emotion is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Emotion is a dependency in 116 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (2.4% of the 4,867 JavaScript/TypeScript ones), #3 of 53 in styling and css.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 495; those are left out of every share on this page.",
      "The most used alternative in our scan is styled-components (19 projects).",
      "Projects that use it most often also use React (97.4%), React Hook Form (52.6%), Material UI (50.9%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "69 projects, 2.3%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "60 projects, 1.8%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "53 projects, 2.2%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "12 projects, 2.6%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "9 projects, 2.6%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "6 projects, 1.3%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "5 projects, 1.8%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "5 projects, 3.6%",
       "v": "Kiro",
       "path": "agents/kiro/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 97.4% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 52.6% of its projects",
       "v": "React Hook Form",
       "path": "tools/react-hook-form/"
      },
      {
       "l": "In 50.9% of its projects",
       "v": "Material UI",
       "path": "tools/mui/"
      },
      {
       "l": "In 46.6% of its projects",
       "v": "date-fns",
       "path": "tools/date-fns/"
      },
      {
       "l": "In 43.1% of its projects",
       "v": "Framer Motion",
       "path": "tools/framer-motion/"
      },
      {
       "l": "In 55.2% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 42.2% of its projects",
       "v": "next-themes",
       "path": "tools/next-themes/"
      },
      {
       "l": "In 91.4% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Emotion in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "A css prop that goes past inline style",
       "v": "The docs say the <code>css</code> prop is like <code>style</code> but also handles vendor prefixes, nested selectors and media queries. You can style elements directly, without first defining styled components."
      },
      {
       "l": "Theme values inside the css prop",
       "v": "The <code>css</code> prop also accepts a function. That function is called with your theme, which gives you shared values where you write the styles."
      },
      {
       "l": "Zero-config SSR and theming in @emotion/react",
       "v": "For the React package, the docs list server-side rendering \"with zero configuration\" and theming that \"works out of the box\". They also mention ESLint plugins that check patterns and configuration."
      },
      {
       "l": "@emotion/css needs no build changes",
       "v": "The docs say the framework-agnostic package needs no extra setup, no Babel plugin and no other config changes. It still supports vendor prefixes, nested selectors and media queries."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "SSR takes extra work with @emotion/css",
       "v": "The docs say server-side rendering with the framework-agnostic package \"requires additional work to set up\". They list zero-config SSR as a feature of <code>@emotion/react</code>."
      },
      {
       "l": "React package: best with a configurable build",
       "v": "<code>@emotion/react</code> requires React. The docs call it \"Best when using React with a build environment that can be configured.\""
      },
      {
       "l": "styled comes with the React package",
       "v": "The install command in the docs for <code>@emotion/styled</code> also installs <code>@emotion/react</code>."
      }
     ]
    },
    {
     "t": "h3",
     "text": "README quick start: the css prop"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Jsx",
       "code": "/** @jsx jsx */\nimport { jsx } from '@emotion/react'\n\nlet SomeComponent = props => {\n  return (\n    <div css={{ color: 'hotpink' }} {...props} />\n  )\n}"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Emotion",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "Open Collective: https://opencollective.com/emotion"
       ]
      },
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "react-modernization: Upgrade React applications to latest versions, migrate from class components to hooks, and adopt concurrent features. Use when modernizing R",
        "react-native-dev: React Native and Expo development guide covering components, styling, animations, navigation, state management, forms, networking, performan",
        "react-expert: Use when building React 18+ applications in .jsx or .tsx files, Next.js App Router projects, or create-react-app setups. Creates components,",
        "react-vite-dashboard: Convert Stitch designs into production React + Vite dashboards with TanStack Query, accessible tokens from DESIGN.md, and Web3-ready pattern",
        "react-composition-patterns: React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component librarie",
        "react-hook-form: React Hook Form performance optimization for client-side form validation using useForm, useWatch, useController, useFieldArray, the subscrib"
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "@emotion/styled: styled.div component API",
        "@emotion/is-prop-valid: @emotion/is-prop-valid",
        "@emotion/cache: Emotion cache package",
        "@emotion/server: Emotion server rendering package",
        "@emotion/css: Framework-agnostic css and cx",
        "@emotion/babel-plugin: Optional Babel plugin"
       ]
      },
      {
       "title": "More in Styling and CSS",
       "path": "tools/styling/",
       "items": [
        {
         "text": "Tailwind CSS",
         "path": "tools/tailwindcss/"
        },
        {
         "text": "Tailwind Merge",
         "path": "tools/tailwind-merge/"
        },
        {
         "text": "Sass",
         "path": "tools/sass/"
        },
        {
         "text": "tailwind-variants",
         "path": "tools/tailwind-variants/"
        },
        {
         "text": "Fontsource Inter",
         "path": "tools/fontsource-variable-inter/"
        },
        {
         "text": "NativeWind",
         "path": "tools/nativewind/"
        },
        {
         "text": "postcss-import",
         "path": "tools/postcss-import/"
        },
        {
         "text": "Lightning CSS",
         "path": "tools/lightningcss/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Emotion",
       "me": true,
       "facts": [
        "MIT",
        "Gid 77",
        "29.3M/wk"
       ]
      },
      {
       "name": "styled-components",
       "why": "CSS-in-JS library for styling React components with dynamic scoped styles.",
       "path": "tools/styled-components/",
       "facts": [
        "MIT",
        "Gid 75",
        "15.1M/wk"
       ]
      }
     ],
     "more": "Compare Emotion with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @emotion/react"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Emotion\n- In React projects, prefer `@emotion/react`; the docs recommend it for React users \"if possible\".\n- For the `css` prop, follow the README quick start: it shows a `/** @jsx jsx */` pragma and `import { jsx } from '@emotion/react'` at the top of the file.\n- When adding `@emotion/styled`, install it together with `@emotion/react`, as the docs do.\n- Outside React, use `@emotion/css`: call `css` to generate class names and `cx` to compose them.\n- If a project uses `@emotion/css` with server rendering, expect setup work; the docs say SSR there \"requires additional work to set up\".\n- To read theme values in the `css` prop, pass a function; the docs say it is called with the theme.\n- Do not add the Babel plugin by default; the README says it is not required and links a feature table describing what it enables.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @emotion/react"
  ],
  [
   "Category",
   "Styling and CSS"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "@emotion/jest@11.14.2, November 4, 2025"
  ],
  [
   "On GitHub since",
   "May 2017"
  ],
  [
   "Gid Score",
   "77.2"
  ],
  [
   "Rank in category",
   "#3 of 53"
  ],
  [
   "GitHub",
   "emotion-js/emotion"
  ],
  [
   "Last change",
   "Oct 23, 2026"
  ]
 ],
 "good": [
  "Used by feathery.io, frontity.org, abacusfi.com, healthline.com, as listed by the source; we have not checked each one."
 ],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/emotion-js.png"
}