CSS-in-JS library designed for high performance style composition
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Disable ts because it's failing and the fact that it downloads the la… Jan 23, 2019
.github make issue template titles bold to help readability (#1086) Dec 7, 2018
__mocks__ Emotion Native (#759) Jul 28, 2018
docs Add @emotion/core to recommended install script for @emotion/styled (#… Feb 1, 2019
flow-typed/npm renderStyleToString: Skip undefined styles (#1021) Nov 16, 2018
packages Acc publishConfig with access=public to @emotion/babel-plugin-jsx-pra… Feb 4, 2019
playgrounds Publish Nov 5, 2018
scripts Publish Feb 4, 2019
site Publish Feb 4, 2019
test Pass null to insertBefore (#980) Nov 2, 2018
.eslintignore Migrate next packages (#763) Jul 13, 2018
.flowconfig Upgrade flow (#1134) Dec 27, 2018
.flowconfig-ci Upgrade flow (#1134) Dec 27, 2018
.gitignore Update .gitignore Sep 30, 2018
.nvmrc New site with gatsby (#368) Jan 4, 2018
.prettierignore Add package.json to .prettierignore Jan 31, 2018
.prettierrc.yaml Change live code and add precommit hook for prettifying markdown (#782) Aug 1, 2018
.yarnrc Emotion Primitives (#658) Jul 6, 2018
CHANGELOG.md Add medium article Nov 27, 2018
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT.md (#65) Jul 1, 2017
CONTRIBUTING.md Emotion 10 docs (#799) Oct 8, 2018
LICENSE 👩‍🚀 May 27, 2017
README.md Update 'In the wild' list (#1143) Dec 29, 2018
RELEASING.md Update RELEASING.md Nov 14, 2018
babel.config.js Remove react-emotion package (#1035) Nov 25, 2018
codecov.yml Add codecov.yml (#371) Oct 2, 2017
emotion.png update to logo instead of bob ross 😭 Jul 10, 2017
jest.config.js Use preconstruct (#1023) Nov 19, 2018
jest.dist.js Use preconstruct (#1023) Nov 19, 2018
lerna.json Remove unnecessary npmClient setting from lerna.json (#1074) Dec 5, 2018
netlify.toml Change build system and update Jest (#747) Jul 2, 2018
package.json Upgrade flow (#1134) Dec 27, 2018
yarn.lock Upgrade flow (#1134) Dec 27, 2018

README.md

emotion

emotion

The Next Generation of CSS-in-JS

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]