Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 97a1ca6

Browse files
committed
responsive font size
1 parent bc854c6 commit 97a1ca6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ export const responsiveHeight = (h) => {
1111
export const responsiveWidth = (w) => {
1212
return width*(w/100);
1313
}
14+
15+
export const responsiveFontSize = (f) => {
16+
return height*(f/100);
17+
}

0 commit comments

Comments
 (0)