emotion

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

MIT License

Downloads
711.7M
Stars
17.3K
Committers
323

Bot releases are visible (Hide)

emotion - @emotion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

emotion - @emotion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

emotion - @emotion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

emotion - @emotion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

emotion - @emotion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

emotion - @emotion/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

emotion - @emotion/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

  • #2896 c02b1214 Thanks @Andarist! - Fixed an issue that prevented using content: "element(name)". This is a valid special value and doesn't need to be quoted.
emotion - @emotion/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

emotion - @emotion/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

emotion - @emotion/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

emotion - @emotion/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

  • #2920 61c66963 Thanks @pvdstel! - Do not log failed rule insertions in the speedy mode for even more vendor-prefixed pseudo-elements/classes like :-ms-expand and :-ms-reveal.
emotion - @emotion/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

emotion - @emotion/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

emotion - @emotion/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

emotion - @emotion/[email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • #2867 89b6dbb3 Thanks @Andarist! - Externalized code referencing React.useInsertionEffect to a separate @emotion/use-insertion-effect-with-fallbacks package. This package should be used in your defined externals if you bundle Emotion for whatever reason. It references useInsertionEffect in a very specific way that allows us to use it conditionally. However, if the code consuming Emotion is bundled as a library with Emotion in it then some bundlers might change the way in which we reference useInsertionEffect and that might create problems for bundlers used to consume the said library code. By externalizing this new package you can still bundle Emotion if you want to without running into this problem as you won't "destroy" the carefully crafted reference to useInsertionEffect in the process.

    Note that we don't recommend bundling Emotion. You should have very specific reasons to do so.

  • Updated dependencies [89b6dbb3]:

emotion - @emotion/[email protected]

Published by github-actions[bot] about 2 years ago

Major Changes

  • #2867 89b6dbb3 Thanks @Andarist! - A wrapper package that uses useInsertionEffect or a specific fallback for it. It comes with two exports: useInsertionEffectAlwaysWithSyncFallback and useInsertionEffectWithLayoutFallback.
emotion - @emotion/[email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • #2867 89b6dbb3 Thanks @Andarist! - Externalized code referencing React.useInsertionEffect to a separate @emotion/use-insertion-effect-with-fallbacks package. This package should be used in your defined externals if you bundle Emotion for whatever reason. It references useInsertionEffect in a very specific way that allows us to use it conditionally. However, if the code consuming Emotion is bundled as a library with Emotion in it then some bundlers might change the way in which we reference useInsertionEffect and that might create problems for bundlers used to consume the said library code. By externalizing this new package you can still bundle Emotion if you want to without running into this problem as you won't "destroy" the carefully crafted reference to useInsertionEffect in the process.

    Note that we don't recommend bundling Emotion. You should have very specific reasons to do so.

  • Updated dependencies [89b6dbb3]:

emotion - @emotion/[email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • #2864 b9b8b749 Thanks @Andarist! - Fixed a regression that could cause a crash when looking for an ignoring comment for unsafe pseudo-classes.
emotion - @emotion/[email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • #2751 0ffd6068 Thanks @Andarist, @kyoncy! - Fix /* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */ not disabling the warning when there are multiple blocks of CSS.
emotion - @emotion/[email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • #2858 005e211d Thanks @Andarist! - Fixed an issue in the styles minifier that caused interpolations to be sometimes included more than once in the output.
Package Rankings
Top 9.92% on Repo1.maven.org
Top 0.36% on Npmjs.org
Top 5.89% on Clojars.org
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
Backers on Open Collective Sponsors on Open Collective npm version Build Status codecov slack