1/* please refer to https://developer.mozilla.org/fr/docs/Web/CSS/clamp() */
2font-size: clamp(40px, 10vw, 70px); /* clamp(MIN, VAL, MAX) */
1/* Uses vh and vm with calc */
2@media screen and (min-width: 25em){
3 html { font-size: calc( 16px + (24 - 16) * (100vw - 400px) / (800 - 400) ); }
4}
5
6/* Safari <8 and IE <11 */
7@media screen and (min-width: 25em){
8 html { font-size: calc( 16px + (24 - 16) * (100vw - 400px) / (800 - 400) ); }
9}
10
11@media screen and (min-width: 50em){
12html { font-size: calc( 16px + (24 - 16) * (100vw - 400px) / (800 - 400) ); }
13}
1body {
2 font-size: calc([minimum size] + ([maximum size] - [minimum size]) * ((100vw - [minimum viewport width]) / ([maximum viewport width] - [minimum viewport width])));
3}