Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Font size - using rem and maintaing consistency across themes

Font size - using rem and maintaing consistency across themes

arnav98
Shopify Partner
26 1 7

Hi,

 

I am trying to use 'rem' & '%' as my CSS units in my extensions, for font size, margin, and padding.
Now I am facing issues where my text is too small.

I have 2 questions - 

  1.   Do I use px for font size and margin, padding? I want to avoid going this route and causing consistency issues with the theme and my extension.
  2. Do I use the relative units and leave it to the store owner to set the default font size etc? Thereby at least maintaining consistency wrt font size in the extension?

I really appreciate any help you can provide.

Replies 0 (0)