Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: emotion-js/emotion
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: emotion@10.0.17
Choose a base ref
...
head repository: emotion-js/emotion
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: emotion@10.0.23
Choose a head ref

Commits on Sep 6, 2019

  1. Fix typo in TOC - insertGlobal -> injectGlobal

    insertGlobal => injectGlobal
    moroshko authored and Andarist committed Sep 6, 2019
    Copy the full SHA
    ddfbbc2 View commit details

Commits on Sep 10, 2019

  1. Replace bolt-check with manypkg (#1494)

    * Use manypkg and remove some unused packages
    
    * Fix things
    
    * Update manypkg
    emmatown authored Sep 10, 2019
    Copy the full SHA
    c9f3bc4 View commit details

Commits on Sep 11, 2019

  1. Copy the full SHA
    1b38550 View commit details
  2. Add useTheme hook for emotion-theming (#1499)

    * Add useTheme hook for emotion-theming
    
    * Add changeset
    
    * Small fixes to imports and docs
    
    * Update theming.mdx
    tkh44 authored Sep 11, 2019
    Copy the full SHA
    bfb4005 View commit details
  3. Version Packages (#1500)

    github-actions[bot] authored and emmatown committed Sep 11, 2019
    Copy the full SHA
    4134ae2 View commit details
  4. Fix live code examples

    emmatown committed Sep 11, 2019
    Copy the full SHA
    95b37bb View commit details

Commits on Sep 12, 2019

  1. Copy the full SHA
    c81c003 View commit details

Commits on Sep 17, 2019

  1. Copy the full SHA
    ffc7c58 View commit details
  2. Version Packages (#1504)

    github-actions[bot] authored and emmatown committed Sep 17, 2019
    Copy the full SHA
    a8b9a7f View commit details

Commits on Sep 26, 2019

  1. add Global to migration docs, fix some formatting (#1519)

    * add Global to migration docs, fix some formatting
    
    * remove extra jsx line at the bottom of css-prop.mdx
    amytsao authored and emmatown committed Sep 26, 2019
    Copy the full SHA
    a835b89 View commit details

Commits on Oct 1, 2019

  1. babel-plugin-emotion: Fix autoLabel crash on css used in expressi…

    …on assigned to an object pattern (#1526)
    
    * Add failing test
    
    * babel-plugin-emotion: Fix `autoLabel` crash on `css` used in expression assigned to an object pattern
    
    Ensure that the variable declarator's id is an identifier before using its name as the label.
    
    * Update snapshot
    
    * Add a changeset
    ahutchings authored and emmatown committed Oct 1, 2019
    Copy the full SHA
    1b3791d View commit details

Commits on Oct 2, 2019

  1. Move registeredStyles declaration to the point where its first elemen…

    …t can be put directly in the declaration (#1528)
    Andarist authored and emmatown committed Oct 2, 2019
    Copy the full SHA
    2a4dcb1 View commit details
  2. Copy the full SHA
    38bb2b1 View commit details
  3. Version Packages (#1527)

    github-actions[bot] authored and emmatown committed Oct 2, 2019
    Copy the full SHA
    eabb460 View commit details

Commits on Oct 4, 2019

  1. Add Gatsby SSR custom cache example (#1535)

    * Update Gatsby SSR docs
    
    * Update implementation
    zslabs authored and tkh44 committed Oct 4, 2019
    Copy the full SHA
    22dd709 View commit details
  2. TypeScript, not Typescript...! (#1511)

    The official name of the language is 'TypeScript', not 'Typescript'.
    shiatsumat authored and tkh44 committed Oct 4, 2019
    Copy the full SHA
    8ccf8f6 View commit details
  3. Fixed broken link .md - .mdx (#1492)

    Co-authored-by: Kye Hohenberger <662750+tkh44@users.noreply.github.com>
    amitnovick and tkh44 committed Oct 4, 2019
    Copy the full SHA
    96f84cb View commit details
  4. Upgrade to Changesets 2

    emmatown committed Oct 4, 2019
    Copy the full SHA
    85f0692 View commit details
  5. Fix things

    emmatown committed Oct 4, 2019
    Copy the full SHA
    3ff02c3 View commit details

Commits on Oct 5, 2019

  1. Limit scope of <Global /> example (#1536)

    * Limit scope of <Global /> example
    
    * Update per comments
    
    * Update globals.mdx
    zslabs authored and emmatown committed Oct 5, 2019
    Copy the full SHA
    15002ea View commit details
  2. Add missing /* #__PURE__ */ annotation to creation of EmotionCssPropI…

    …nternal (#1537)
    
    * Add missing /* #__PURE__ */ annotation to creation of EmotionCssPropInternal
    
    * Update changes.md
    Andarist authored and emmatown committed Oct 5, 2019
    Copy the full SHA
    7855db4 View commit details
  3. Push source maps & labels to cooked/raw arrays in TS-transpiled tagge…

    …d template expressions (#1538)
    Andarist authored and emmatown committed Oct 5, 2019
    Copy the full SHA
    0eafebb View commit details
  4. Version Packages (#1539)

    github-actions[bot] authored and emmatown committed Oct 5, 2019
    Copy the full SHA
    a07f8a7 View commit details

Commits on Oct 11, 2019

  1. Accept objects as className in styled components (they are stringif…

    …ied) to match React behavior
    
    * Accept objects as className in styled components
    
    * PR feedback - change to else if
    
    * PR Feedback - change condition
    
    * PR feedback - fix other test
    
    * Update .changeset/afraid-dolls-speak.md
    
    Co-Authored-By: Mateusz Burzyński <mateuszburzynski@gmail.com>
    
    * Update .changeset/afraid-dolls-speak.md
    
    Co-Authored-By: Mateusz Burzyński <mateuszburzynski@gmail.com>
    
    * Update .changeset/afraid-dolls-speak.md
    
    Co-Authored-By: Mateusz Burzyński <mateuszburzynski@gmail.com>
    jgroszko and Andarist committed Oct 11, 2019
    Copy the full SHA
    c3f0bc1 View commit details

Commits on Oct 21, 2019

  1. Prepend appended label string with semicolon to avoid problems with d…

    …eclaration blocks without a final semicolon (#1554)
    Andarist authored and emmatown committed Oct 21, 2019
    Copy the full SHA
    1bb3efe View commit details
  2. Accept objects as className in jsx-created components (they are str…

    …ingified) to match React behavior (#1548)
    Andarist authored and emmatown committed Oct 21, 2019
    Copy the full SHA
    2fc75f2 View commit details
  3. Copy the full SHA
    1021195 View commit details
  4. Copy the full SHA
    e766e29 View commit details
  5. Fix things

    emmatown committed Oct 21, 2019
    Copy the full SHA
    96eff9d View commit details
  6. Fix typo in the docs (#1556)

    cstoddart authored and Andarist committed Oct 21, 2019
    Copy the full SHA
    c68648d View commit details
  7. Copy the full SHA
    52ad27c View commit details
  8. Upgrade changesets

    emmatown committed Oct 21, 2019
    Copy the full SHA
    dd54e23 View commit details

Commits on Oct 22, 2019

  1. Copy the full SHA
    4fc5657 View commit details
  2. Copy the full SHA
    dfab765 View commit details
  3. Improve error message for shorthand properties with missing units. (#841

    )
    
    * log error message if no units in shorthand prop
    
    * use jest.fn() in tests
    
    * Add changeset
    nitin42 authored and Andarist committed Oct 22, 2019
    Copy the full SHA
    ae90f00 View commit details
  4. Copy the full SHA
    bcf40cf View commit details

Commits on Oct 23, 2019

  1. Copy the full SHA
    11bea3a View commit details
  2. Copy the full SHA
    57a767e View commit details
  3. Version Packages (#1546)

    github-actions[bot] authored and Andarist committed Oct 23, 2019
    Copy the full SHA
    ce5bd9f View commit details
  4. Copy the full SHA
    95a43a2 View commit details
  5. Upgrade flow (#1566)

    Andarist authored and emmatown committed Oct 23, 2019
    Copy the full SHA
    3faff18 View commit details

Commits on Oct 24, 2019

  1. Add a changeset

    emmatown committed Oct 24, 2019
    Copy the full SHA
    3b7e2f2 View commit details
  2. Version Packages (#1567)

    github-actions[bot] authored and emmatown committed Oct 24, 2019
    Copy the full SHA
    9ff27de View commit details

Commits on Oct 25, 2019

  1. Copy the full SHA
    3927293 View commit details

Commits on Oct 26, 2019

  1. Copy the full SHA
    b3a0f14 View commit details

Commits on Oct 27, 2019

  1. Insert import to @emotion/core after existing imports to avoid orderi…

    …ng issues with polyfills (#1576)
    Andarist authored and emmatown committed Oct 27, 2019
    Copy the full SHA
    539bc0c View commit details
  2. Fixed styled Flow types (#1570)

    * fix: refactor styled-base Flow types to work again
    
    * fix: improve Styled type to accept optional props type
    
    * fix: make styled package return proper types
    
    * fix: missing flow header
    
    * test: test untyped styled component
    
    * chore: fix site types
    
    * docs: comment typo
    FezVrasta authored and Andarist committed Oct 27, 2019
    Copy the full SHA
    9767309 View commit details

Commits on Oct 29, 2019

  1. Copy the full SHA
    1ae9489 View commit details
  2. add "on" amp html property to whitelist (#1584)

    * add "on" amp html property to whitelist
    
    fixes styled-components/styled-components#2689
    
    * add changeset
    quantizor authored and emmatown committed Oct 29, 2019
    Copy the full SHA
    6cdb569 View commit details
  3. Copy the full SHA
    a55f3d4 View commit details
Showing with 3,068 additions and 1,136 deletions.
  1. +0 −247 .changeset/config.js
  2. +30 −0 .changeset/config.json
  3. +3 −2 .flowconfig
  4. +2 −1 .flowconfig-ci
  5. +5 −2 .github/workflows/release.yml
  6. +2 −1 .gitignore
  7. +5 −1 docs/css-prop.mdx
  8. +1 −1 docs/extract-static.mdx
  9. +2 −4 docs/globals.mdx
  10. +3 −3 docs/install.mdx
  11. +25 −0 docs/migrating-to-emotion-10.mdx
  12. +3 −2 docs/nested.mdx
  13. +54 −6 docs/ssr.mdx
  14. +5 −3 docs/styled.mdx
  15. +59 −3 docs/theming.mdx
  16. +2 −2 docs/typescript.mdx
  17. +13 −1 docs/with-props.mdx
  18. +8 −64 package.json
  19. +39 −0 packages/babel-plugin-emotion/CHANGELOG.md
  20. +108 −46 packages/babel-plugin-emotion/__tests__/__snapshots__/css-requires-options.js.snap
  21. +193 −48 packages/babel-plugin-emotion/__tests__/__snapshots__/css.js.snap
  22. +45 −26 packages/babel-plugin-emotion/__tests__/__snapshots__/index.js.snap
  23. +1 −1 packages/babel-plugin-emotion/__tests__/__snapshots__/styled-requires-options.js.snap
  24. +51 −13 packages/babel-plugin-emotion/__tests__/__snapshots__/styled.js.snap
  25. +102 −65 packages/babel-plugin-emotion/__tests__/__snapshots__/vanilla-emotion.js.snap
  26. +6 −0 packages/babel-plugin-emotion/__tests__/css-macro/__fixtures__/label-no-final-semi.js
  27. +12 −0 packages/babel-plugin-emotion/__tests__/css-macro/__fixtures__/label-transpiled-by-ts.js
  28. +14 −0 packages/babel-plugin-emotion/__tests__/css-macro/__fixtures__/object-pattern-variable-declarator.js
  29. +185 −48 packages/babel-plugin-emotion/__tests__/css-macro/__snapshots__/index.js.snap
  30. +24 −0 packages/babel-plugin-emotion/__tests__/css-requires-options.js
  31. +6 −6 packages/babel-plugin-emotion/__tests__/disable-source-map/__snapshots__/index.js.snap
  32. +13 −0 packages/babel-plugin-emotion/__tests__/source-maps/__fixtures__/css-transpiled-by-ts.js
  33. +53 −10 packages/babel-plugin-emotion/__tests__/source-maps/__snapshots__/index.js.snap
  34. +45 −13 packages/babel-plugin-emotion/__tests__/styled-macro/__snapshots__/index.js.snap
  35. +1 −1 packages/babel-plugin-emotion/__tests__/styled-requires-options.js
  36. +102 −65 packages/babel-plugin-emotion/__tests__/vanilla-emotion-macro/__snapshots__/index.js.snap
  37. +5 −5 packages/babel-plugin-emotion/package.json
  38. +27 −0 packages/babel-plugin-emotion/src/utils/checks.js
  39. +3 −1 packages/babel-plugin-emotion/src/utils/get-target-class-name.js
  40. +1 −1 packages/babel-plugin-emotion/src/utils/index.js
  41. +4 −1 packages/babel-plugin-emotion/src/utils/label.js
  42. +4 −1 packages/babel-plugin-emotion/src/utils/source-maps.js
  43. +20 −10 packages/babel-plugin-emotion/src/utils/strings.js
  44. +49 −5 packages/babel-plugin-emotion/src/utils/transform-expression-with-styles.js
  45. +6 −0 packages/babel-plugin-jsx-pragmatic/CHANGELOG.md
  46. +9 −0 packages/babel-plugin-jsx-pragmatic/__tests__/__fixtures__/existing-imports.js
  47. +26 −2 packages/babel-plugin-jsx-pragmatic/__tests__/__snapshots__/index.js.snap
  48. +5 −2 packages/babel-plugin-jsx-pragmatic/package.json
  49. +21 −6 packages/babel-plugin-jsx-pragmatic/src/index.js
  50. +21 −0 packages/babel-preset-css-prop/CHANGELOG.md
  51. +9 −7 packages/babel-preset-css-prop/__tests__/__snapshots__/index.js.snap
  52. +3 −4 packages/babel-preset-css-prop/__tests__/__snapshots__/options-are-used.js.snap
  53. +8 −5 packages/babel-preset-css-prop/package.json
  54. +6 −0 packages/cache/CHANGELOG.md
  55. +3 −3 packages/cache/package.json
  56. +29 −0 packages/core/CHANGELOG.md
  57. +53 −2 packages/core/__tests__/__snapshots__/css.js.snap
  58. +1 −1 packages/core/__tests__/__snapshots__/keyframes.js.snap
  59. +21 −0 packages/core/__tests__/__snapshots__/legacy-class-name.js.snap
  60. +1 −1 packages/core/__tests__/babel/__snapshots__/source-map-server.js.snap
  61. +79 −1 packages/core/__tests__/css.js
  62. +35 −0 packages/core/__tests__/legacy-class-name.js
  63. +66 −11 packages/core/__tests__/warnings.js
  64. +6 −5 packages/core/package.json
  65. +8 −9 packages/core/src/jsx.js
  66. +10 −0 packages/css/CHANGELOG.md
  67. +3 −0 packages/css/macro.js.flow
  68. +6 −5 packages/css/package.json
  69. +1 −1 packages/emotion-server/test/index.test.js
  70. +15 −0 packages/emotion-theming/CHANGELOG.md
  71. +35 −0 packages/emotion-theming/README.md
  72. +46 −0 packages/emotion-theming/__tests__/__snapshots__/use-theme.js.snap
  73. +77 −0 packages/emotion-theming/__tests__/use-theme.js
  74. +4 −3 packages/emotion-theming/package.json
  75. +1 −0 packages/emotion-theming/src/index.js
  76. +7 −0 packages/emotion-theming/src/use-theme.js
  77. +2 −0 packages/emotion-theming/types/index.d.ts
  78. +6 −1 packages/emotion-theming/types/tests.tsx
  79. +9 −0 packages/emotion/CHANGELOG.md
  80. +2 −2 packages/emotion/README.md
  81. +3 −0 packages/emotion/macro.d.ts
  82. +2 −0 packages/emotion/macro.js.flow
  83. +6 −4 packages/emotion/package.json
  84. +5 −5 packages/emotion/test/__snapshots__/css.test.js.snap
  85. +1 −1 packages/emotion/test/__snapshots__/inject-global.test.js.snap
  86. +2 −2 packages/emotion/test/no-babel/warnings.test.js
  87. +1 −1 packages/emotion/test/source-map/__snapshots__/source-map.test.js.snap
  88. +1 −1 packages/emotion/test/warnings.test.js
  89. +6 −0 packages/hash/CHANGELOG.md
  90. +10 −2 packages/hash/package.json
  91. +1 −0 packages/hash/types/index.d.ts
  92. +15 −0 packages/hash/types/tests.ts
  93. +26 −0 packages/hash/types/tsconfig.json
  94. +25 −0 packages/hash/types/tslint.json
  95. +11 −0 packages/is-prop-valid/CHANGELOG.md
  96. +3 −3 packages/is-prop-valid/package.json
  97. +2 −0 packages/is-prop-valid/src/props.js
  98. +3 −3 packages/jest-emotion/test/__snapshots__/printer.test.js.snap
  99. +6 −0 packages/memoize/CHANGELOG.md
  100. +10 −2 packages/memoize/package.json
  101. +3 −0 packages/memoize/types/index.d.ts
  102. +7 −0 packages/memoize/types/tests.ts
  103. +26 −0 packages/memoize/types/tsconfig.json
  104. +25 −0 packages/memoize/types/tslint.json
  105. +9 −0 packages/native/CHANGELOG.md
  106. +4 −4 packages/native/package.json
  107. +15 −0 packages/native/test/native-styled.test.js
  108. +9 −0 packages/primitives-core/CHANGELOG.md
  109. +4 −3 packages/primitives-core/package.json
  110. +21 −1 packages/primitives-core/src/css.js
  111. +25 −0 packages/primitives/CHANGELOG.md
  112. +8 −8 packages/primitives/package.json
  113. +30 −0 packages/serialize/CHANGELOG.md
  114. +4 −4 packages/serialize/package.json
  115. +70 −31 packages/serialize/src/index.js
  116. +1 −1 packages/sheet/__tests__/index.js
  117. +28 −0 packages/styled-base/CHANGELOG.md
  118. +27 −0 packages/styled-base/flow-tests/flow.js
  119. +8 −6 packages/styled-base/package.json
  120. +98 −96 packages/styled-base/src/index.js
  121. +30 −14 packages/styled-base/src/utils.js
  122. +27 −0 packages/styled/CHANGELOG.md
  123. +18 −0 packages/styled/__tests__/__snapshots__/styled.js.snap
  124. +3 −3 packages/styled/__tests__/styled-dom.js
  125. +12 −4 packages/styled/__tests__/styled.js
  126. +18 −2 packages/styled/__tests__/warnings.js
  127. +13 −0 packages/styled/flow-tests/flow.js
  128. +3 −0 packages/styled/macro.js.flow
  129. +10 −7 packages/styled/package.json
  130. +1 −0 packages/styled/src/tags.js
  131. +3 −3 packages/styled/test/__snapshots__/composition.test.js.snap
  132. +1 −1 packages/styled/test/__snapshots__/source-map.test.js.snap
  133. +1 −1 packages/styled/test/babel-plugin.test.js
  134. +1 −1 packages/styled/test/component-selector.test.js
  135. +8 −8 packages/styled/test/composition.test.js
  136. +2 −2 packages/styled/test/index.test.js
  137. +1 −1 packages/styled/test/prop-filtering.test.js
  138. +2 −2 packages/styled/test/theming.test.js
  139. +6 −0 packages/weak-memoize/CHANGELOG.md
  140. +10 −2 packages/weak-memoize/package.json
  141. +5 −0 packages/weak-memoize/types/index.d.ts
  142. +36 −0 packages/weak-memoize/types/tests.ts
  143. +26 −0 packages/weak-memoize/types/tsconfig.json
  144. +25 −0 packages/weak-memoize/types/tslint.json
  145. +1 −4 scripts/babel-tester/package.json
  146. +0 −1 scripts/benchmarks/package.json
  147. +1 −1 scripts/old-babel-tester/src/index.js
  148. +0 −13 scripts/test-utils/compat-render-json.js
  149. +1 −0 site/gatsby-node.js
  150. +1 −7 site/package.json
  151. +12 −1 site/src/components/Box.js
  152. +1 −2 site/src/components/Playground.js
  153. +4 −1 site/src/components/Title.js
  154. +1 −1 site/src/templates/doc.js
  155. +19 −6 site/src/utils/markdown-styles.js
  156. +229 −90 yarn.lock
247 changes: 0 additions & 247 deletions .changeset/config.js

This file was deleted.

30 changes: 30 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://unpkg.com/@changesets/config@0.2.1/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "emotion-js/emotion" }
],
"commit": false,
"linked": [
[
"@emotion/core",
"@emotion/styled",
"@emotion/styled-base",
"@emotion/cache",
"@emotion/css",
"create-emotion",
"emotion",
"emotion-server",
"create-emotion-server",
"babel-plugin-emotion",
"@emotion/babel-preset-css-prop",
"jest-emotion",
"@emotion/native",
"@emotion/primitives",
"@emotion/primitives-core",
"eslint-plugin-emotion",
"emotion-theming"
]
],
"access": "public"
}
5 changes: 3 additions & 2 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[version]
0.89.0
0.110.0

[ignore]
.*/node_modules/config-chain/.*
@@ -23,4 +23,5 @@

[options]
suppress_comment=.*\\$FlowFixMe
sharedmemory.hash_table_pow=21
suppress_comment=.*\\$FlowExpectError
sharedmemory.hash_table_pow=21
3 changes: 2 additions & 1 deletion .flowconfig-ci
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[version]
0.89.0
0.110.0

[ignore]
.*/node_modules/config-chain/.*
@@ -24,5 +24,6 @@

[options]
suppress_comment=.*\\$FlowFixMe
suppress_comment=.*\\$FlowExpectError
server.max_workers=1
sharedmemory.hash_table_pow=21
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -16,15 +16,18 @@ jobs:
- name: Setup Node.js 10.x
uses: actions/setup-node@master
with:
version: 10.x
node-version: 10.x

- name: Install Yarn
run: npm install --global yarn

- name: Install Dependencies
run: yarn

- name: Create Pull Request
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@master
with:
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -10,4 +10,5 @@ package-lock.json
.cache
public/
!playgrounds/cra/public
.env
.env
.vscode
6 changes: 5 additions & 1 deletion docs/css-prop.mdx
Original file line number Diff line number Diff line change
@@ -54,6 +54,8 @@ Similar to a comment containing linter configuration, this configures the [jsx b
import { jsx } from '@emotion/core'
```

Note that excluding this will cause your css to render as `[Object Object]`.

#### Use the `css` prop

Any component or element that accepts a `className` prop can also use the `css` prop. The styles supplied to the `css` prop are evaluated and the computed class name is applied to the `className` prop.
@@ -113,6 +115,8 @@ render(
>
> **`css` from `@emotion/core` does not return the computed class name string.** The function returns an object containing the computed name and flattened styles. The returned object is understood by emotion at a low level and can be composed with other emotion based styles inside of the `css` prop, other `css` calls, or the `styled` API.
You can also pass in your css as variables, which allows for composition (read more about this [here](https://emotion.sh/docs/composition)).

## Style Precedence

- Class names containing emotion styles from the `className` prop override `css` prop styles.
@@ -243,4 +247,4 @@ Relying on the css spec's ["Order of Appearance"](https://www.w3.org/TR/css-casc

## Gotchas

- If you include the plugin `babel-plugin-transform-react-inline-elements` in your `.babelrc` your styles will not be applied. The plugin is not compatible with the `css` prop.
- If you include the plugin `babel-plugin-transform-react-inline-elements` in your `.babelrc` your styles will not be applied. The plugin is not compatible with the `css` prop.
2 changes: 1 addition & 1 deletion docs/extract-static.mdx
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ const Button = styled('button')`
Configure babel

```bash
yarn add babel-plugin-emotion
yarn add --dev babel-plugin-emotion
```

**.babelrc**
6 changes: 2 additions & 4 deletions docs/globals.mdx
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ render(
<div>
<Global
styles={css`
* {
.some-class {
color: hotpink !important;
}
`}
@@ -25,9 +25,7 @@ render(
}
}}
/>
<div className="some-class">
Everything is hotpink now!
</div>
<div className="some-class">This is hotpink now!</div>
</div>
)
```
Loading