emotion

style as a function of state

Github星跟蹤圖

Need support upgrading to Emotion 10? See the migration guide

Backers on Open Collective Sponsors on Open Collective npm version
Build Status
codecov
core size
core gzip size
react size
react gzip size
slack
spectrum

Emotion is a performant and flexible CSS-in-JS library. Building on many other CSS-in-JS libraries, it allows you to style apps quickly with string or object styles. It has predictable composition to avoid specificity issues with CSS. With source maps and labels, Emotion has a great developer experience and great performance with heavy caching in production.

? Demo Sandbox

? Docs

Frequently viewed docs:

Quick Start

Get up and running with a single import.

npm install --save @emotion/core
/** @jsx jsx */
import { jsx } from '@emotion/core'

let SomeComponent = props => {
  return (
    <div
      css={{
        color: 'hotpink'
      }}
      {...props}
    />
  )
}

Do I Need To Use the Babel Plugin?

The babel plugin is not required, but enables some optimizations and customizations that could be beneficial for your project.

Look here ? emotion babel plugin feature table and documentation

Demo Sandbox

Demo Code Sandbox

Examples

Ecosystem

In the Wild

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! ? [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]











主要指標

概覽
名稱與所有者emotion-js/emotion
主編程語言JavaScript
編程語言JavaScript (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2017-05-27 04:23:45
推送於2025-06-26 10:49:17
最后一次提交
發布數1306
最新版本名稱@emotion/styled@11.14.1 (發布於 2025-06-26 10:49:16)
第一版名稱v0.0.2 (發布於 2017-05-27 23:33:49)
用户参与
星數17.8k
關注者數94
派生數1.1k
提交數1.9k
已啟用問題?
問題數1728
打開的問題數290
拉請求數1098
打開的拉請求數64
關閉的拉請求數286
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?