Skip to content

Commit

Permalink
Merge pull request #419 from weaveworks/411-update-readme-with-theming
Browse files Browse the repository at this point in the history
Updated README with styled theme usage instruction
  • Loading branch information
fbarl authored Nov 14, 2018
2 parents 3ddbea6 + 1819d0a commit f1a13a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,23 @@ http://weaveworks-ui-components.s3-website-us-west-2.amazonaws.com/
* `lodash` ^4.0.0
* `styled-components` ^2.0.0
* `moment` ^2.0.0
* `font-awesome` ^4.0.0
* `font-awesome` ^5.0.0

## Installation
`yarn add weaveworks-ui-components`

```javascript
import React from 'react';
import ReactDOM from 'react-dom';
import { ThemeProvider } from 'styled-components';

import { WeaveLogo } from 'weaveworks-ui-components';
import theme from 'weaveworks-ui-components/lib/theme';

ReactDOM.render(
<WeaveLogo />,
<ThemeProvider theme={theme}>
<WeaveLogo />
</ThemeProvider>,
document.getElementById('logo')
);
```
Expand Down

0 comments on commit f1a13a6

Please sign in to comment.