Skip to content

Changing font size in vanilla-jsoneditor #176

Answered by josdejong
SalamanderXing asked this question in Q&A
Discussion options

You must be logged in to vote

I've added an example here: https://github.com/josdejong/svelte-jsoneditor/blob/main/examples/browser/custom_theme_color.html

You can define the --jse-font-size-mono variable for example on the DIV container where you're going to load the JSONEditor so it will override the default defined on :root. Alternatively, you can use :root {...} but then you will have to make sure your css is loaded after the css of the JSONEditor so it will override the default.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SalamanderXing
Comment options

Answer selected by SalamanderXing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants