Need help in the process of creating your own WordPress theme?
Background color option type with opacity support.
| Name | Type | Default | Description |
|---|---|---|---|
| opacity | boolean |
true |
Enable or disable opacity slider. |
| Name | Type | Default | Description |
|---|---|---|---|
| type | string |
solid |
Allowed values:
-
solid-
gradient |
| gradientType | string |
linear |
Allowed values:
-
linear-
radial |
| linearDegree | number |
0 |
Linear gradient degree. |
| radialDegree | number |
0 |
Radial gradient degree. |
| hex | string |
#000000 |
Color code in HEX format. |
| opacity | number |
1 |
Opacity value from 0 to 1 |
| palette | string |
"" |
Allowed palette values:
-
"color1"-
"color2"-
"color3"-
"color4"-
"color5"-
"color6"-
"color7"-
"color8" |
| gradientHex | string |
#000000 |
Color code in HEX format. |
| gradientOpacity | number |
1 |
Opacity value from 0 to 1 |
| gradientPalette | string |
"" |
Allowed palette values:
-
"color1"-
"color2"-
"color3"-
"color4"-
"color5"-
"color6"-
"color7"-
"color8" |
{
id: "",
type: "backgroundColor",
}
{
id: "color",
type: "backgroundColor",
config: {
opacity: false,
},
}