I am following Material design specs and all text size values are represented in sp.
E.g. Subheader font: Roboto Medium 14sp
How do I set it in css?
I am following Material design specs and all text size values are represented in sp.
E.g. Subheader font: Roboto Medium 14sp
How do I set it in css?
SP refers to scaled pixels, something you run into on most current mobile devices today. You can move away from pixel notation by using CSS "em" notation, which specifies text sizes where 1 em is equivalent to 16 pixels. So 14 pixels would be 0.875em.