Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mg901 committed Oct 12, 2018
1 parent e5a6fb6 commit 5e3ac3c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ const defaultBreakpoints = {

```js
import styled from 'styled-components';
import media from 'styled-breakpoints';
import { above, below, between, only } from 'styled-breakpoints';

const Test = styled.div`
const SyledComponent = styled.div`
background-color: pink;
${media.above('tablet')} {
${above('tablet')} {
background-color: hotpink;
}
`;
Expand All @@ -65,7 +65,7 @@ div {

```js
css`
${media.above('tablet')} {
${above('tablet')} {
background-color: hotpink;
}
`;
Expand All @@ -85,7 +85,7 @@ Converts to:

```js
css`
${media.below('desktop')} {
${below('desktop')} {
background-color: lightcoral;
}
`;
Expand All @@ -106,7 +106,7 @@ Converts to:

```js
css`
${media.between('tablet', 'desktop')} {
${between('tablet', 'desktop')} {
background-color: hotpink;
}
`;
Expand All @@ -127,7 +127,7 @@ Converts to:

```js
css`
${media.only('tablet')} {
${only('tablet')} {
background-color: rebeccapurple;
}
`;
Expand All @@ -151,17 +151,17 @@ Converts to:
import styled from 'styled-components';
import { createBreakpoints } from 'styled-breakpoints';

const media = createBreakpoints({
const { above, below, between, only } = createBreakpoints({
sm: '576px',
md: '768px',
lg: '992px',
xl: '1200px',
});

const Test = styled.div`
const StyledComponent = styled.div`
background-color: pink;
${media.above('md')} {
${above('md')} {
background-color: hotpink;
}
`;
Expand Down

0 comments on commit 5e3ac3c

Please sign in to comment.