react-object-inspector icon indicating copy to clipboard operation
react-object-inspector copied to clipboard

Add theming support

Open ggoodman opened this issue 8 years ago • 2 comments

Embedding this library in 0.1.x in a project with a modern build step was very easy and provided an opportunity to adjust and/or overwrite styles.

For example, I would like to use a different font-size and font-family. I don't think the library should be hard-coded with those sorts of decisions already made and set in stone.

For now I need to use !important rules but hope you consider an disableStyles or similar option and add relevant classNames back to nodes in the tree to facilitate 3rd party theming.

Cheers, great module!

ggoodman avatar Nov 30 '15 22:11 ggoodman

@ggoodman Inline styles are discussed in https://github.com/xyc/react-object-inspector/issues/4

  • disableInlineStyles could be an option
  • or add theme props for customization

For now, you can fork the repo and change inline styles.

xyc avatar Dec 03 '15 01:12 xyc

@ggoodman +1. Currently using 9e06fc194fc66a2a1c9ec84cb0442f4e01d74e52 (npm 1.6). Great work however!

mathew-kurian avatar Jan 19 '16 09:01 mathew-kurian