专为高性能样式组合而设计的 CSS-in-JS 库
下一代 CSS-in-JS
> **Emotion 11 已发布 [查看博客文章](https://emotion.sh/docs/emotion-11) [](#sponsors) Emotion 是一款性能出色且灵活的 CSS-in-JS 库。在许多其他 CSS-in-JS 库的基础上,它允许您使用字符串或对象样式快速为应用程序设计风格。它具有可预测的组合,可避免 CSS 中的特定性问题。通过源映射和标签,Emotion 具有出色的开发者体验和出色的性能,在生产环境中进行了大量缓存。 # [ Demo Sandbox](https://codesandbox.io/s/pk1qjqpw67) # [ 文档](https://emotion.sh/docs/introduction) 常用文档: - [简介](https://emotion.sh/docs/introduction) - [安装](https://emotion.sh/docs/install) - [CSS 属性](https://emotion.sh/docs/css-prop) - [定制组件](https://emotion.sh/docs/styled) - [组合](https://emotion.sh/docs/composition) - [嵌套选择器](https://emotion.sh/docs/nested) - [媒体查询](https://emotion.sh/docs/media-queries) - [emotion 网站](site) [[这里演示](https://emotion.sh)] - [next-hnpwa-guide-kit](https://github.com/tkh44/next-hnpwa-guide-kit) [[这里演示](https://hnpwa.life)] - [reactivesearch](https://github.com/appbaseio/reactivesearch), 一个用于 Elasticsearch 的 React UI 库 [[网站](https://opensource.appbase.io/reactivesearch/)] - [circuit-ui](https://github.com/s)@emotion/eslint-plugin 应该支持 eslint 9
支持在不转换或校对源代码的情况下插入外部 CSS
@emotion/babel-plugin 使用了易受攻击的 [email protected] (yaml CVE GHSA-48c2-rrv3-qjmp) — 请升级到 cosmiconfig 9.x
在使用 Turbopack 构建器时,使用 Next.js 15 和 MUI 6 时发生水合错误
缺乏有关快速选项的文档
@emotion/babel-plugin 与 Babel 8 不兼容
关于 ":nth-child" 假类的警告可能需要更改为 ":nth-of-type"
[@emotion/react] React-is 漏洞
故事书链接无法正常工作
向 `React.Fragment` 提供的属性 `%s` 无效。React.Fragment 只能具有 `key` 和 `children` 属性。 style