Voltar ao ranking

emotion-js/emotion

JavaScriptemotion.sh

👩‍🎤 CSS-in-JS library designed for high performance style composition

css-in-jsbabel-pluginreactreactjscssemotion
Crescimento de estrelas
Estrelas
18k
Forks
1.1k
Crescimento semanal
Issues
308
5k10k15k
mai. de 2017mai. de 2020jun. de 2023jul. de 2026
Artefatosnpmnpm install emotion
README

Emotion logo

emotion

The Next Generation of CSS-in-JS

Emotion 11 has been released 🚀 See the blog post

Backers on Open Collective Sponsors on Open Collective npm version Build Status codecov @emotion/css size @emotion/css gzip size @emotion/react size @emotion/react gzip size @emotion/styled size @emotion/styled gzip size slack

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/react
/** @jsx jsx */
import { jsx } from '@emotion/react'

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

Sponsors

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

Thinkmill

Backers

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

Contributors

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

Repositórios relacionados
styled-components/styled-components

Fast, expressive styling for React. Server components, client components, streaming SSR, React Native—one API.

TypeScriptnpmMIT Licensereactcss-in-js
styled-components.com
41.1k2.6k
chakra-ui/chakra-ui

Chakra UI is a component system for building SaaS products with speed ⚡️

TypeScriptnpmMIT Licensechakra-uireact
chakra-ui.com
40.5k3.6k
necolas/react-native-web

Cross-platform React UI packages

JavaScriptnpmMIT Licensereactreact-components
necolas.github.io/react-native-web
22.1k1.8k
tamagui/tamagui

Style React fast with 100% parity on React Native, an optional UI kit, and optimizing compiler.

TypeScriptnpmMIT Licensereactreact-native
tamagui.dev
14.1k606
callstack/linaria

Zero-runtime CSS in JS library

TypeScriptnpmMIT Licensecsscss-in-js
linaria.dev
12.3k413
microsoft/frontend-bootcamp

Frontend Workshop from HTML/CSS/JS to TypeScript/React/Redux

TypeScriptnpmCreative Commons Attribution 4.0 Internationalreacttypescript
microsoft.github.io/frontend-bootcamp/
10.8k1.2k
ben-rogerson/twin.macro

🦹‍♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.

TypeScriptnpmMIT Licensetailwindtailwindcss
8k178
styled-system/styled-system

⬢ Style props for rapid UI development

JavaScriptnpmMIT Licensereactcss-in-js
styled-system.com
7.9k495
stitchesjs/stitches

[Not Actively Maintained] CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience.

JavaScriptnpmMIT Licensestitchescss
stitches.dev
7.8k259
vercel/styled-jsx

Full CSS support for JSX without compromises

JavaScriptnpmMIT Licensereactjsx
npmjs.com/styled-jsx
7.8k268
styled-components/polished

A lightweight toolset for writing styles in JavaScript ✨

JavaScriptnpmMIT Licensecss-in-jsstyled-components
polished.js.org
7.7k214
cssinjs/jss

JSS is an authoring tool for CSS which uses JavaScript as a host language.

JavaScriptnpmMIT Licensejscss
cssinjs.org
7.1k389