Open vgrichina opened 10 years ago
+1.
To apply my own custom CSS it seems I'm having to use !important to override the inline styles.
Is the way to edit these styles through children CSS selectors? Some divs
are definitely missing class names.
+1
I think this can be done with JSONEditor.defaults.options.theme = 'barebones'
See https://github.com/jdorn/json-editor#css-integration
Can this issue be closed?
Actually, it appears that some things are still styled inline with the barebones theme, unless I'm mistaken. For example, for a field of type array, with items of type string, and uniqueItems true (i.e. a set of checkboxes), the labels have a font-weight defined inline.
For now it isn't easy to apply custom CSS styles to json-editor, because it uses inline styles heavily.
It should at very least provide at least some theme without any inline styles or better not use them at all. Custom styles should just be made available as separate CSS files.