Skip to content

Commit

Permalink
feat: add px to rem mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
RickEyre committed Oct 7, 2019
1 parent ff4afd6 commit 303ade6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/panda-san/src/mixins/index.scss
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@import 'breakpoints';
@import 'transforms';
3 changes: 3 additions & 0 deletions packages/panda-san/src/mixins/transforms.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@function px-to-rem ($target, $context: $base-font-size) {
@return ($target / $context) * 1rem;
}

0 comments on commit 303ade6

Please sign in to comment.