Theme Color

For consistency and integration with the Theme Studio in RapidWeaver Elements, use the themeColor attribute to specify all color options for your elements. This ensures that the color settings are centrally managed and adaptable to theme changes.

Hereโ€™s an example configuration for a color property:

{
    "title":ย "Color",
    "id":ย "customColor",
    "format":ย "text-{{value}}",
    "themeColor": {
        "default":ย {
            "name":ย "black",
            "brightness":ย 300
        }
    }
}

Usage of themeColor:

  • default: Sets the initial or fallback color and brightness. In this case, the default color is black with a brightness value of 300.

Output Example: The format key controls the output format of the customColor property. In your template files, referencing {{customColor}} with the example configuration above would output: text-black-300.

Last updated

We are Realmac Software. We make nice things.