import { Token , readToken , TokenValue } from '../../util' ; export const size = ( grade ) => readToken ( token , grade ) ; const token = { default : 'desktop' , type : 'SIZE' , modes : { desktop , } , } ; function desktop ( grade ) { grade = grade + 100 ; const scale = 1.4 ; const iteration = scale ** ( grade / 100 ) ; const raw = 8.5 + ( 3 * iteration ) / 1.618 ; const rounded = Math . round ( raw * 1 ) / 1 ; const floored = Math . max ( rounded , 10 ) ; return floored ; }