Mohd Shad Mirza Did you think about setting font-size: 6.25%; As a base case? This makes each 1rem = 1 pixel, is scalable natively I believe as well. You could then just have each of your size definitions as rem instead of pixels and they will scale with a11y settings etc. Good luck!