Add a global config object
Problem:
The end user might want to change various things like where resources are loaded from, which api endpoint to use etc. Passing this to every web component is hard and we would need to forward it all the way down.
Instead we could allow a global object to override our default values.
Potential config values:
- Theme
- CSS override that is loaded inside web components
- Icon theme overrides
- Maybe allow to override this per web component in addition to globally
let CONFIG = {
elements: {
'element-name': {...config},
},
'some-key': 'some-value',
}