Skip to content

Add a text gradient block support #30982

Closed

Description

@carolinan

What problem does this address?

Paragraph blocks do not have a gradient color option.
This feature was requested during user testing.

EDIT: This was done for backgrounds in #43119 but there is also a suggestion that we should be able to add graidents for text!

What is your proposed solution?

Enable support for gradient controls for the paragraph block.

Disclaimer

I am not personally invested in this 🖌️ 🌈 🙈 🎨 , but I have been asked to open issues that came up during a contributor day.

Activity

  1. mtias commented on Apr 20, 2021

    @mtias
    Member

    Was this request for background gradient or for gradient mask on the text itself?

  2. carolinan commented on Apr 20, 2021

    @carolinan
    ContributorAuthor

    It was not specified so I assumed they meant background. Asking for clarification.

    But gradient headings could be nice...
    https://codepen.io/leocampos/pen/pPwwNR
    https://codepen.io/saclark/pen/EepFx

  3. mtias commented on Apr 20, 2021

    @mtias
    Member

    Yes! Those would be neat to support

  4. luminuu commented on Sep 10, 2021

    @luminuu
    Member

    I'd love to see the ability to put gradients on paragraphs and headlines too! Maybe a background gradient would be nice too but I'd prefer text gradient over background gradient.

  5. added
    [Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi
    on Sep 10, 2021
  6. changed the title [-]Add gradient support to the paragraph block[/-] [+]Add gradient support to the paragraph TEXT[/+] on Aug 11, 2022
  7. scruffian commented on Aug 11, 2022

    @scruffian
    Contributor

    Reopening so we don't forget about the text aspect of this.

  8. phil-sola commented on Sep 23, 2022

    @phil-sola

    I would love to see some cool text gradients make their way into blocks. A powerful header/paragraph gradient would be very nice!

  9. jnz31 commented on Dec 7, 2022

    @jnz31

    +1

  10. 7 remaining items

  11. andrewserong commented on Nov 30, 2025

    @andrewserong
    Contributor

    Thanks Matías — if we lift that as a requirement I think that unblocks digging into a WIP to explore this feature, good idea 👍

  12. andrewserong commented on Dec 1, 2025

    @andrewserong
    Contributor

    Just capturing a thought from this morning so I don't forget: something to try for this one could be to dynically inject a span around the text content when gradient text is enabled, and apply the rules to that span, as that could allow block-level backgrounds and text gradient to co-exist.

  13. mtias commented on Dec 2, 2025

    @mtias
    Member

    It'd be nice to not affect the markup, though.

  14. andrewserong commented on Dec 2, 2025

    @andrewserong
    Contributor

    Gotcha, in that case making gradient text and backgrounds mutually exclusive at the block level could be a good first step (that could then be enhanced further down the track once the background stuff is untangled)

  15. mtias commented on Dec 3, 2025

    @mtias
    Member

    Yes, I think that'd be a solid path to get it started.

  16. changed the title [-]Add gradient support to the paragraph TEXT[/-] [+]Add gradient support to text color options[/+] on Dec 4, 2025
  17. changed the title [-]Add gradient support to text color options[/-] [+]Add a text gradient block support[/+] on Dec 4, 2025
  18. jasmussen commented on Aug 12, 2026

    @jasmussen
    Contributor

    Now that we have a dedicated Background panel, and a "Color" item in the Typography panel, can we do this as far as the UI side?

    Image

    That is, add a "Gradient" item to below the Color item in Typography? CC: @ramonjd @andrewserong @aaronrobertshaw

  19. ramonjd commented on Aug 12, 2026

    @ramonjd
    Member

    That's the way I'd picture it. @aaronrobertshaw is the authority here, and he had a PR in the works.

    The gradient control in that PR was in the color overlay:

    Image

    He will be away for a bit however, so maybe when he gets back he provide us his advice.

    I can say however that text gradient is on the list of post 7.1 block support follow ups

  20. jasmussen commented on Aug 13, 2026

    @jasmussen
    Contributor

    No rush on this, just excited. I'd keep the gradient inline in the panel, though, keep the labels the same, and have individual flyouts for each item, just to keep the behavior the same as it is in the Background panel.

  21. aaronrobertshaw commented on Sep 11, 2026

    @aaronrobertshaw
    Contributor

    Picked this back up this week.

    There are two PRs up for review now rebased on the latest trunk.

    • #77141 registers the background.backgroundClip support, no UI.
    • #77142 adds the controls on top. Screencasts and screenshots are on that one.

    @jasmussen the gradient sits below Color in the Typography panel with its own flyout, as you suggested. It is an optional item rather than shown by default, which is the one place it differs from your sketch. Worth a look on the PR if you think it should be visible from the start.

    @jameskoster text color is now disabled with a tooltip while a gradient is applied, and the clip control is a select with a preview per option rather than the tile grid you found hard to read.

    Heading and Paragraph opt in. The clip control itself stays hidden unless a theme sets settings.background.backgroundClip, so the text gradient ships without exposing the rougher box clipping UI.

    #76171 is closed, superseded by the two above.

  22. aaronrobertshaw commented on Oct 13, 2026

    @aaronrobertshaw
    Contributor

    Text gradients are now available.

    #77141 added the background.backgroundClip support and #77142 added the controls.

    1-text-gradient.mp4

    How to use it

    On a Heading or Paragraph, add Gradient from the Typography panel menu and pick one. The text fills with it, in the editor and on the front end.

    It also works in Global Styles and under Responsive styles.

    What changed since my last update

    Nothing is disabled anymore. My last comment said text color would be disabled while a gradient was applied. Instead, every control stays usable and a short notice explains what happens:

    • With a text gradient set, the gradient replaces the text color.
    • A background color or image on the same block is clipped to the text too.
    • Setting a text gradient replaces any background gradient.

    The Clip control still only shows when a theme sets settings.background.backgroundClip.

    Closing this one. Please open a new issue for anything that turns up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Needs DevReady for, and needs developer efforts[Block] HeadingAffects the Headings Block[Block] ParagraphAffects the Paragraph Block[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions