Skip to content

fix(theme): improve dark mode visibility for icons and logos#509

Open
hemantch01 wants to merge 1 commit into
volcano-sh:masterfrom
hemantch01:fix/dark-mode-icons
Open

fix(theme): improve dark mode visibility for icons and logos#509
hemantch01 wants to merge 1 commit into
volcano-sh:masterfrom
hemantch01:fix/dark-mode-icons

Conversation

@hemantch01
Copy link
Copy Markdown

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • What kind of change does this PR introduce?
    /kind bug
    /kind design

  • What this PR does / why we need it:
    this PR fixes visibility issues for icons and logos when docs-website toggled into dark mode. previously, the dark icons blended into the dark background, making them difficult to see.

  • Which issue(s) this PR fixes:
    [Bug]: Logos Not Visible in Dark Mode #506

old

image ### new Screenshot 2026-05-27 223831

Signed-off-by: hemantch01 <hemantchaudhary905@gmail.com>
@volcano-sh-bot volcano-sh-bot added the kind/bug Categorizes issue or PR as related to a bug. label May 27, 2026
@volcano-sh-bot volcano-sh-bot requested review from Arhell and k82cn May 27, 2026 17:14
@volcano-sh-bot volcano-sh-bot added the kind/design Categorizes issue or PR as related to design. label May 27, 2026
@volcano-sh-bot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign jessestutler for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot volcano-sh-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 27, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the custom CSS to customize background sizes for header links and introduces dark mode styling for the GitHub/X links and the navbar logo. The review comments suggest simplifying a redundant CSS filter and utilizing Docusaurus's native srcDark configuration for the dark mode logo instead of relying on sub-optimal CSS filters.

Comment thread src/css/custom.css

[data-theme="dark"] .header-github-link,
[data-theme="dark"] .header-x-link {
filter: invert(1) brightness(100%);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The brightness(100%) filter is redundant because 100% is the default brightness value. You can simplify this filter to just invert(1).

Suggested change
filter: invert(1) brightness(100%);
filter: invert(1);

Comment thread src/css/custom.css
Comment on lines +138 to +141
[data-theme="dark"] .navbar__logo {

filter: invert(1) hue-rotate(180deg) brightness(1.1);
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using CSS filters like invert() and hue-rotate() to style the dark mode logo is a sub-optimal practice that can lead to color distortion, rendering artifacts, and poor performance. Docusaurus provides native support for dark mode logos via the srcDark property in docusaurus.config.js. It is highly recommended to use a dedicated dark-themed logo asset instead of applying CSS filters. To implement this, add the srcDark property to the logo configuration in docusaurus.config.js (e.g., srcDark: "img/landing/volcano_logo_dark.png") and remove this CSS filter block entirely.

@yashisrani
Copy link
Copy Markdown

/lgtm from my side

@JesseStutler

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

Labels

kind/bug Categorizes issue or PR as related to a bug. kind/design Categorizes issue or PR as related to design. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants