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.

Setting global font size & styles

See original GitHub issue

The docs & example show how to set individual tag styles with the tagsStyles prop. Is there a way to set a global font size (as well as other styles) without having to specify individual tags? I’d like to scale the entire HTML block responsively and a global size would help.

For example, given the HTML block with no explicit sizing:

<h2>Some heading</h2>
<p>First paragraph</p>
<p>Second paragraph</p>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Exilzcommented, Oct 4, 2017

Great 😄
I shipped this in 3.2.0.

0reactions
peacechencommented, Oct 3, 2017

Dev branch works great! Thanks for fixing the line breaks and related issues, and apologies for overlooking the linting. Also appreciate how quickly you merged and refined the code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Apply global font to whole HTML document
I want to make it have the same font-family and the same text-size ignoring all inner formatting of text. I want to set...
Read more >
How to Apply Global Font to the Entire HTML Document
In this snippet, we're going to apply a global font format to the whole HTML page. ... Set the font-size, font-family, line-height, and...
Read more >
font-size - CSS: Cascading Style Sheets - MDN Web Docs
The font-size CSS property sets the size of the font. Changing the font size also updates the sizes of the font size-relative <length>...
Read more >
How to Change the Font Globally in WordPress
To change the font globally in your WordPress site, you can edit the style for your site. This tutorial will show you how....
Read more >
Change the font size - Microsoft Support
Click the Manage Styles button (third from left at the bottom). ... Click the Set Defaults tab and pick the size you want...
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