Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
refactor: use core-em instead of core-emotion
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Sep 3, 2018
1 parent 44bc596 commit 36daa92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions docs/basics/Emotion.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ By default Smooth UI uses [styled-components](http://styled-components.com/), bu

### Installation

Install `@smooth-ui/core-emotion`, `react-emotion` and `emotion-theming` from npm:
Install `@smooth-ui/core-em`, `react-emotion` and `emotion-theming` from npm:

`npm install @smooth-ui/core-emotion react-emotion emotion-theming`
`npm install @smooth-ui/core-em react-emotion emotion-theming`

### Usage

Import components from `@smooth-ui/core-emotion`.
Import components from `@smooth-ui/core-em`.

```js
import { Button } from '@smooth-ui/core-emotion'
import { Button } from '@smooth-ui/core-em'

const App = () => (
<Button variant="primary">Hello world!</Button>
Expand All @@ -34,7 +34,7 @@ Even if it is not required, is recommended to apply a global normalize before us

```js
import { injectGlobal } from 'react-emotion'
import { globalStyle } from '@smooth-ui/core-sc'
import { globalStyle } from '@smooth-ui/core-em'

injectGlobal`${globalStyle}`
```
Expand Down
2 changes: 1 addition & 1 deletion scripts/pkg.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const pkg = require('../package.json')
const { STYLED_ENGINE } = process.env

const packageNames = {
emotion: '@smooth-ui/core-emotion',
emotion: '@smooth-ui/core-em',
'styled-components': '@smooth-ui/core-sc',
}

Expand Down

0 comments on commit 36daa92

Please sign in to comment.