diff --git a/content/developer/howtos/website_themes/gradients.rst b/content/developer/howtos/website_themes/gradients.rst
index 2f1f77aac1..d9a4b41fd2 100644
--- a/content/developer/howtos/website_themes/gradients.rst
+++ b/content/developer/howtos/website_themes/gradients.rst
@@ -19,16 +19,24 @@ custom themes, gradients have to be added directly in the `section` tag with a `
.. code-block:: xml
-
+
To apply a gradient to text, use a `font` tag with the `text-gradient` class.
.. code-block:: xml
- A Section Subtitle
+
+ A Section Subtitle
+
.. _website_themes/gradients/custom:
@@ -40,34 +48,34 @@ Add a custom gradient to the Website Builder. This way, the user can easily use
manually recreating them.
.. code-block:: javascript
- :caption: ``/website_airproof/static/src/builder/airproof_gradients.js``
+ :caption: ``/website_airproof/static/src/website_builder/gradients.js``
- import { ColorPickerGradientTab } from "@html_editor/main/font/color_picker_gradient_tab";
- import { registry } from "@web/core/registry";
- import { _t } from "@web/core/l10n/translation";
+ import { ColorPickerGradientTab } from "@html_editor/main/font/color_picker_gradient_tab";
+ import { registry } from "@web/core/registry";
+ import { _t } from "@web/core/l10n/translation";
- export class AirproofColorPickerGradientTab extends ColorPickerGradientTab {
- setup() {
- super.setup();
- this.DEFAULT_GRADIENT_COLORS = [
- ...this.DEFAULT_GRADIENT_COLORS,
- "linear-gradient(0deg, rgb(41, 128, 187) 0%, rgb(11, 142, 230) 100%)",
- ];
- }
- }
+ export class AirproofColorPickerGradientTab extends ColorPickerGradientTab {
+ setup() {
+ super.setup();
+ this.DEFAULT_GRADIENT_COLORS = [
+ ...this.DEFAULT_GRADIENT_COLORS,
+ "linear-gradient(0deg, rgb(41, 128, 187) 0%, rgb(11, 142, 230) 100%)",
+ ];
+ }
+ }
- const colorPickerTabs = registry.category("color_picker_tabs");
+ const colorPickerTabs = registry.category("color_picker_tabs");
- colorPickerTabs.remove("html_editor.gradient");
- colorPickerTabs.add(
- "html_editor.gradient",
- {
- id: "gradient",
- name: _t("Gradient"),
- component: AirproofColorPickerGradientTab,
- },
- { sequence: 60 }
- );
+ colorPickerTabs.remove("html_editor.gradient");
+ colorPickerTabs.add(
+ "html_editor.gradient",
+ {
+ id: "gradient",
+ name: _t("Gradient"),
+ component: AirproofColorPickerGradientTab,
+ },
+ { sequence: 60 }
+ );
.. note::