data-color
values.To allow a div element in Webflow to have a color property that's independently changeable across multiple instances, you need to use a CSS variable with a combo class or a custom attribute depending on the use case.
If you want to create a more dynamic or CMS-driven solution via custom code:
data-color="red"
or data-color="#FF0000"
.tag to apply that color using JavaScript. (Note: Webflow doesn’t support inline JavaScript in Designer.)
.Color-Box
elements and apply style.backgroundColor = dataset.color
.Use combo classes for simple manual variations, custom attributes with JavaScript for programmatic changes, or CMS Color fields for dynamic CMS-driven styling. Each method allows your div instances to have independently controlled color properties.