Component Driven Design using the websdk

I’m interested in leveraging Component Driven Design when scaffolding an existing application.
Currently one could define custom styles by setting brandingEntry to point to your custom less file. However this less file must contain the styles of all the components created to extend the scaffolded application.
Would it be possible to define custom styles on a per component basis then maybe bundling them all up in a single .less file using webpack for example? Any suggestions will be greatly appreciated!

The WebSDK is using a global style sheet and does not use specific Stylesheets on a component basis.
Still you could add your component specific styles to the global branding and just use a more specific identifier to overrule the default styles.

Another option might be to step by step replace certain parts of the styles within the @c8y/style package.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.