Description
(Changed the original issue from "It's not possible to set gradients as backgrounds" (I was doing it wrong) to "it's not possible to manually overwrite gradient backgrounds with colors in the editor")
While there are many issues about background, background-image (e.g. #54336, #60401) et cetera, we're missing for theme creators an important feature: Set gradients and variables with gradients as backgrounds. Gradients that are set as background cannot be overwritten by the user in the editor.
I was running in this issue because I'm using section styles, each with a different gradient as the background.
@andrewserong @ramonjd CC'ing you since you were very active in the other background related issues
Step-by-step reproduction instructions
Original issue (I was doing it wrong, see Andrews first comment to point to the correct way)
1. Add a gradient to theme.json as the background of the page. Either directly or by using a variable like var:preset|gradient|redblue
...
"styles": {
"color": {
"background": "linear-gradient(180deg, red 0%, blue 100%)",
"text": "var:preset|color|contrast"
}
}
...
2. Open the website. No background, because it uses background-color
- Create section styles with background gradients:
...
"styles": {
"color": {
"background": "lime",
"text": "var:preset|color|contrast"
"gradient": "linear-gradient(red, blue)",
}
}
...
- Try to overwrite the background in the editor with a color.

Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
Description
(Changed the original issue from "It's not possible to set gradients as backgrounds" (I was doing it wrong) to "it's not possible to manually overwrite gradient backgrounds with colors in the editor")
While there are many issues about
background,background-image(e.g. #54336, #60401) et cetera, we're missing for theme creators an important feature:Set gradients and variables with gradients as backgrounds.Gradients that are set as background cannot be overwritten by the user in the editor.I was running in this issue because I'm using section styles, each with a different gradient as the background.
@andrewserong @ramonjd CC'ing you since you were very active in the other background related issues
Step-by-step reproduction instructions
Original issue (I was doing it wrong, see Andrews first comment to point to the correct way)
1. Add a gradient to theme.json as the background of the page. Either directly or by using a variable likevar:preset|gradient|redblue2. Open the website. No background, because it usesbackground-colorEnvironment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.