Colors
You can change the default colors used in the application by setting de primary and secondary colors. You can customize the color for the main background by setting the "backgroundColor" attribute of the configuration object. The colors configuration are being set in the "theme" attribute of the configuration object.
Implementation
Available parameters
Parameter Lib | Parameter Web | Description |
|---|---|---|
theme.primaryColor | primaryColor | Used to change the primary color of the content. Color in hexadecimal representation, but using URL Encoding. |
theme.secondaryColor | secondaryColor | Used to change the secondary color of the content. Color in hexadecimal representation, but using URL Encoding. |
backgroundColor | backgroundColor | Used to change the background color of the main content. Color in hexadecimal representation, but using URL Encoding. Default : #F0F2F5 |
Code
<!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/status.js"></script>
<script>
const params = {
job: "myJob",
token: "myToken",
container: "#instaleap-lsw-v3",
theme: {
primaryColor: '#003865',
secondaryColor: '#EF5B0C'
},
backgroundColor: '#FFFF05'
}
window.instaleap.status.render(params)
</script>
</html>https://xandar-lsw-v3.instaleap.io/status?job=myJob&token=myToken&primaryColor=%23003865&secondaryColor=%23EF5B0C&backgroundColor=%23FFFF05Demo
NOTE: Please do not modify the Demo, this is a visual aid.
Updated 27 days ago
