Replies: 1 comment 1 reply
-
By default, Prism's themes will use the font size of the parent element and some monospace font that is specified by the theme (example). You can change the font family like this: code[class*="language-"],
pre[class*="language-"] {
font-family: 'My cool font', monospace;
} And the font size like this: code[class*="language-"],
pre[class*="language-"] {
font-size: 12px;
} However, when using a relative font size (e.g. Use this instead: :not(pre) > code[class*="language-"],
pre[class*="language-"] {
font-size: 80%;
} Hope this helps. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The default font size seems more larger than other fonts.
How to change it?
Beta Was this translation helpful? Give feedback.
All reactions