Skip to content

JSONSchemaViewer colors palette override #325

Answered by jy95
manuelscurti asked this question in Q&A
Discussion options

You must be logged in to vote

@manuelscurti Thanks for the clarification, I thought it wasn't the case yet.
I will publish the 1.12.0 version where you can put whatever className (by default, it will be json-schema-viewer ).

With CSS Specificity, you can override the colors to your liking. I guess something like this could work :

/* "jsv-styles.module.css" for example*/
.json-schema-viewer {
   :root {
      --ifm-color-primary: #25c2a0;
      --ifm-code-font-size: 95%;
   }
}

For the way to add it to your website, either include the css file (with customCss) or using a wrapper class could do the job.

Of course, I would appreciate an real world example that I can put in 🛠️ Customizations showcases
- would be handy f…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@manuelscurti
Comment options

@jy95
Comment options

jy95 Mar 31, 2024
Maintainer

Answer selected by manuelscurti
@manuelscurti
Comment options

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
Converted from issue

This discussion was converted from issue #324 on March 29, 2024 20:52.