Skip to content

fix : add background styling for dark logos in branding documentation - #247

Open
Ekagrashharma wants to merge 6 commits into
webpack:mainfrom
Ekagrashharma:fix/icon-bg
Open

fix : add background styling for dark logos in branding documentation#247
Ekagrashharma wants to merge 6 commits into
webpack:mainfrom
Ekagrashharma:fix/icon-bg

Conversation

@Ekagrashharma

@Ekagrashharma Ekagrashharma commented Aug 15, 2026

Copy link
Copy Markdown

Summary

This pull request updates the pages/about/branding.md file to improve the presentation of the webpack logos on dark backgrounds. The main change is the addition of a dark background behind the logo images to ensure better visibility and consistency.

Added a dark background (#0d121c) behind the horizontal and stacked logo images for dark backgrounds using a styled, making the logos more visible and visually consistent.

fixes : #243

Dark theme
Screenshot 2026-08-15 204053

Light theme
Screenshot 2026-08-15 204105

Summary by CodeRabbit

  • Style
    • Improved dark-background logo previews in the branding documentation by adding consistent background styling and padding.
    • Preserved existing links to the downloadable logo assets.

Copilot AI lite review requested due to automatic review settings August 15, 2026 17:15
@vercel

vercel Bot commented Aug 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-doc-kit Ready Ready Preview Aug 17, 2026 6:25pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 15, 2026
@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4e5adce8-8fb3-4990-b808-0e852623ae3f

📥 Commits

Reviewing files that changed from the base of the PR and between 2966726 and 5b56d7b.

📒 Files selected for processing (1)
  • pages/about/branding.md

Walkthrough

The branding page now wraps horizontal and stacked dark-background logo images in styled spans. The spans use #0d121c as the background and 20px of padding. The existing dark-background asset links remain unchanged.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: adding background styling for dark logos in the branding documentation.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@Ekagrashharma Ekagrashharma changed the title fix(branding): add background styling for dark logos in branding documents fix : add background styling for dark logos in branding documentation Aug 15, 2026
Comment thread pages/about/branding.md Outdated
| [svg](https://github.com/openjs-foundation/artwork/blob/main/projects/webpack/webpack-logo-horizontal-color.svg) \| [png](https://github.com/openjs-foundation/artwork/blob/main/projects/webpack/webpack-logo-horizontal-color.png) | [svg](https://github.com/openjs-foundation/artwork/blob/main/projects/webpack/webpack-logo-horizontal-color-dark_background.svg) \| [png](https://github.com/openjs-foundation/artwork/blob/main/projects/webpack/webpack-logo-horizontal-color-dark_background.png) |
| Light backgrounds | Dark backgrounds |
| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| ![webpack horizontal logo for light backgrounds](https://raw.githubusercontent.com/openjs-foundation/artwork/main/projects/webpack/webpack-logo-horizontal-color.png) | <span style="background-color: #0d121c; padding: 20px; display: inline-block;">![webpack horizontal logo for dark backgrounds](https://raw.githubusercontent.com/openjs-foundation/artwork/main/projects/webpack/webpack-logo-horizontal-color-dark_background.png)</span> |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we use a -- variable, we have several theme variables defined

@Ekagrashharma Ekagrashharma Aug 15, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Okay, I understand. Should I use one of the existing theme variables for this, or would you prefer me to define a new variable for the color?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @Ekagrashharma! I encourage you to read webpack's AI policy.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Sure, I’ll go through the AI policy and make sure I’m aligned with that .
Just wanted to be transparent with you—I’m not too much confident with my English, so I sometimes use AI to help me phrase my messages better. :)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hey, @avivkeller, can you help me with what to do next

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hey, @TusharThakur04

I tried to add the variable instead of the hex code, but Tailwind is not loading in the MDX file. I read the CSS and style loader file, but I am unclear on how to tackle this.

Can you give me some references where I can look into this ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@avivkeller does mdx parser at doc-kit take care of variable names?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The variable name is plain CSS, so it's not parsed/tailwind-ed, and is handled by the browser's CSS loading directly

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Ekagrashharma If you push your changes that aren't working, I'm sure I can help identify a root cause :-)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@Ekagrashharma If you push your changes that aren't working, I'm sure I can help identify a root cause :-)

OK, I'll do that, and I also added 2 test divs so you can see that Tailwind is not loading, but the inline CSS is working.

  • the theme.css is declaring the @theme variables

@github-actions github-actions Bot added the dependencies Pull requests that update a dependency file label Aug 17, 2026
@socket-security

socket-security Bot commented Aug 17, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedcss-loader@​7.1.49910010084100
Addedstyle-loader@​4.0.010010010085100

View full report

Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread pages/about/branding.md Outdated
Co-authored-by: Aviv Keller <me@aviv.sh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation theme

Projects

None yet

Development

Successfully merging this pull request may close these issues.

page(branding): should force light/dark. bg on icon

4 participants