Skip to content

Site Logo: Dark transparent site logos are invisible #49501

Closed

Description

@jasmussen

When you upload an image to a Site Logo block the first time, a square crop of that image is used also as your Site Icon. This is likely going to be somewhat common for white sites with black text logo types, such as this:

Screenshot 2023-03-31 at 09 24 17

In that situation, the site icon becomes barely visible:

Screenshot 2023-03-31 at 09 26 20

Let's ensure that the site logo always has the site background applied, so that the color the logo has been designed to rely on is applied for contrast:
Screenshot 2023-05-02 at 08 42 01

Can just apply the background color to the img directly.

Activity

  1. added
    Needs Design Feedback
    [Block] Site Logo
    on Mar 31, 2023
  2. courtneyr-dev commented on Mar 31, 2023

    @courtneyr-dev
    Contributor
  3. jasmussen commented on Mar 31, 2023

    @jasmussen
    ContributorAuthor

    Seems likely, yes. One idea, add a circular dot behind any image, so there's always going to be something visible at least.

  4. richtabor commented on Mar 31, 2023

    @richtabor
    Member

    It would be easy to add a white or light gray background, and that should do it, right?

    What if we used the site's background color as the fallback? Probably would be better with the header template part's background even—though I'm not sure how possible that would be.

  5. jasmussen commented on Apr 10, 2023

    @jasmussen
    ContributorAuthor

    What if we used the site's background color as the fallback? Probably would be better with the header template part's background even—though I'm not sure how possible that would be.

    That seems like it would be a great solution.

  6. moved this to 💻 Needs development in Polishon Apr 28, 2023
  7. mtias commented on May 1, 2023

    @mtias
    Member

    +1 for using the background of the site, in the same way the global styles card is created.

  8. added
    [Type] Enhancement
    on May 1, 2023
  9. added
    Needs Dev
    and removed
    Needs Design Feedback
    on May 2, 2023
  10. talldan commented on May 3, 2023

    @talldan
    Contributor

    Something that might be considered in conjunction with this is the contrast of the favicon when a browser is in dark mode. This was my test of using a logo like the one in the issue description (1st and 3rd tabs are my WordPress site, and yes I do tend to have too many tabs open):
    Screen Shot 2023-05-03 at 4 06 33 pm

    I wonder if there are any good options for helping users avoid that, like a preview of an example browser tab in the block inspector.

  11. mtias commented on May 3, 2023

    @mtias
    Member

    You could argue that showing the dark icon being illegible in the admin should already be a hint that you could run into problems. I wonder if we could render a notice or something if you upload a logo with transparency and use it for the site icon.

  12. 9 remaining items

  13. aaronrobertshaw commented on May 5, 2024

    @aaronrobertshaw
    Contributor

    It's worth noting access to the merged global styles data in the post editor is in the process of being added for other features such as section styling and displaying inherited style values in the UI.

    Perhaps, waiting for that to land will make achieving consistency for the site logo in both editors easier?

  14. filipanoscampos commented on Jan 22, 2025

    @filipanoscampos

    Noting that this is an issue that WordPress.com Happiness Engomneers see reported while in support, as logos become invisible when the browsers are set to use dark mode.

  15. Mayank-Tripathi32 commented on Mar 25, 2025

    @Mayank-Tripathi32
    Member

    I am working on the PR to implement the discussed solution

  16. jasmussen commented on Dec 8, 2025

    @jasmussen
    ContributorAuthor

    Coming back to this one, it still feels relevant to show the site default background color behind the site logo as the simplest fix for this.

    But one other option I wanted to mention is that if the black logo with a transparent background is inserted as an image, which it is in the site logo case, then using some simple filter CSS, we can add a stroke, as shown in this codepen.

    Image
      filter: 
        drop-shadow(1px 0 0 white)
        drop-shadow(-1px 0 0 white)
        drop-shadow(0 1px 0 white)
        drop-shadow(0 -1px 0 white);
    

    Until such a time as the actual global styles background color value can easily be used here, this might be a holdover solution.

  17. added
    [Status] In Progress
    on Dec 8, 2025
  18. jasmussen commented on Dec 8, 2025

    @jasmussen
    ContributorAuthor

    Trying a fix here #73816

  19. removed their assignment
    on Dec 28, 2025
  20. jasmussen commented on Dec 28, 2025

    @jasmussen
    ContributorAuthor

    Noting that unfortunately the fix I tried above was not a good fix. A useful report clarified that indeed the best solution si to apply the site background color.

  21. Mayank-Tripathi32 commented on Dec 28, 2025

    @Mayank-Tripathi32
    Member

    Could we move forward with previous approach in that case? #69693

  22. jasmussen commented on Dec 29, 2025

    @jasmussen
    ContributorAuthor

    Yes, that is the most promising path forward. I expanded the ping range.

  23. jasmussen commented on Aug 7, 2026

    @jasmussen
    ContributorAuthor

    I'm going to tentatively close this one out, now that the adminbar is always present as a home for the site logo. Please reopen this issue, if my closing here is a mistake, or I lack nuance.

  24. moved this from Needs development to Done in Polishon Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Needs Dev[Block] Site Logo[Status] In Progress[Type] Enhancement

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions