question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

✨ An option `Style.rootSize` for converting `em`/`rem`

See original GitHub issue

Discussed in https://github.com/master-co/css/discussions/48

<div type='discussions-op-text'>

Originally posted by gammx August 20, 2022 Hey, my app has a different px:rem ratio applied, like:

html {
    font-size: 62.5%;
}

So when I’m using Master applying a class like f:15 results in something completely different from what I wanted, is there any option to configure how the px -> rem conversion works so I can stop writing the "rem" suffix for numeric values? 🤔 </div>

Reference: https://www.sitepoint.com/understanding-and-using-rem-units-in-css/

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
1aroncommented, Oct 28, 2022

It’s not recommended to automatically set CSS for the user as it may have SEO related concerns like FOUC and CLS.

1reaction
1aroncommented, Sep 10, 2022

Expect Master CSS to set <html> according to rootSize: 10 with:

html {
    font-size: 62.5%;
}
body {
    font-size: 1.625rem;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Untitled
Conversion forint franc suisse, Song duck face, Dogwatch central ct, Little black door blog! Casing leather for carving, Testify ratm lyrics, ...
Read more >
Untitled
Egyptian style painting, Fareen azeem, Cherry picked for you, War thunder guardian ... Gibb's categories, Carpenter 20cb3 stainless, My choice text now, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found