Skip to content

Commit

Permalink
update pxtoEm and pxToRem exampels
Browse files Browse the repository at this point in the history
  • Loading branch information
heyjul3s committed Feb 12, 2021
1 parent d16b7a9 commit 190353b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/page-content/PxToEm/example/pxToEmUsage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ export const pxToEmUsage = `
import { pxToEm } from 'artifak';
import styled from 'styled-components';
// const EMvalue = pxtoRem('16px');
// console.log(EMvalue); // prints '1em'
const Container = styled.div\`
margin: 0 auto;
width: 100%;
Expand Down
3 changes: 3 additions & 0 deletions docs/page-content/PxToRem/example/pxToRemUsage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ export const pxToRemUsage = `
import { pxToRem } from 'artifak';
import styled from 'styled-components';
// const REMvalue = pxtoRem('48px');
// console.log(REMvalue); // prints '3rem'
const Container = styled.div\`
margin: 0 auto;
width: 100%;
Expand Down

0 comments on commit 190353b

Please sign in to comment.