ColorRed) to a base class (ColorBlock) and setting background colors per instance. --custom-color) and referencing them in CSS via var(--custom-color) with custom code. To add a color property to a Webflow div element that can be independently changed per instance, you should use a Combo Class or a custom CSS variable with custom attributes. Here's how:
ColorBlock).ColorRed, ColorBlue).
This method allows color control via CMS or more dynamic use.
style="--custom-color: red".var(--custom-color) in the Style panel using custom code embedding.--custom-color value per element.
➡️ Requires a small embed code or inclusion of global style rules via the page’s <head> or before </body> section in Page Settings or Project Settings → Custom Code.
If you're using a CMS Collection:
Background Color).
Each instance now reflects the color stored in the CMS.
Use Combo Classes for quick, visual differentiation or Custom Attributes/CSS Variables for dynamic styling. If you're using CMS, bind the color directly for full independence across items.