I wonder why the vanilla renderer did not provide a kind of more optimized default CSS?
From where can I get information which css classes are used from the renderer and how they should behave?
The React Vanilla renderer set does not include any CSS by default. It just applies CSS classes to the elements. You can take a look here for an example stylesheet.
We also have a JSON Forms based property view for Theia. There we use this stylesheet. However it’s much more specalized and for example hard codes table elements as we always want to render in a table-like format there.
Hi,
thanks for your response.
Yes I need a stylesheet for Theia integration. But the one you mentioned does not include horizontal or categorized layout
I am not the HTML-Designer and so I invest a lot of time to create bad CSS styles. Should not JSONForms project provide such a stylesheet at all?
In general we’re definitely looking to improve the JSON Forms in Theia integration story. This could range from a special stylesheet for Theia (for example to integrate Theia colors) for React Vanilla to a special Theia Material UI ThemeProvider for React Material (to also integrate colors and maybe align the styling a bit more to “traditional” Theia UX).
At the moment we support many more use cases with the React Material renderer set than the React Vanilla renderer set. So you might want to integrate that one instead. Of course this depends on your (UX) requirements.
Let me know if you run into any problems with the React Vanilla stylesheets.