Search…
Customizing the styling

Themes

You can change the theme of their Osmos Uploaders. To configure the theme, please add this section into your JavaScript snippet embedded in your HTML
1
<script>
2
FortyTwoLayers.configure({
3
theme: {
4
colors: {
5
primary: "#1888e2",
6
success: "#38d800",
7
warning: "#fba21d",
8
error: "#ef2929",
9
rowHighlight: "#ffd626"
10
}
11
},
12
schema: {
13
// other keys copied from the uploader view
14
}
15
})
16
</script>
Copied!
Each of the colors is optional so feel free to set whichever ones you'd like. The colors must be a valid CSS color string, so things like red, indigo and rgba(255, 255, 255, 0) are all valid options.
Last modified 1mo ago
Copy link