You can change the default colors used in the application by setting de primary and secondary colors.
The colors configuration are being set in the "theme" attribute of the configuration object.
Specific configuration parameters
Parameter | Description |
---|---|
theme.primaryColor | Color value in Hex |
theme.secondaryColor | Color value in Hex |
Usage Example
<!DOCTYPE html>
<head>
<title>LSW v3 Embed</title>
</head>
<body>
<div id="instaleap-lsw-v3"></div>
</body>
<script src="https://xandar-lsw-v3.instaleap.io/lib/lsw.js"></script>
<script>
const params = {
job: "myJob",
token: "myToken",
container: "#instaleap-lsw-v3",
theme: {
primaryColor: '#003865',
secondaryColor: '#EF5B0C'
},
}
window.instaleap.lsw.render(params)
</script>
</html>