fix : add background styling for dark logos in branding documentation - #247
fix : add background styling for dark logos in branding documentation#247Ekagrashharma wants to merge 6 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe branding page now wraps horizontal and stacked dark-background logo images in styled spans. The spans use 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
| | [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 | | ||
| | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | | ||
| |  | <span style="background-color: #0d121c; padding: 20px; display: inline-block;"></span> | |
There was a problem hiding this comment.
Can we use a -- variable, we have several theme variables defined
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Hi @Ekagrashharma! I encourage you to read webpack's AI policy.
There was a problem hiding this comment.
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. :)
There was a problem hiding this comment.
Hey, @avivkeller, can you help me with what to do next
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
@avivkeller does mdx parser at doc-kit take care of variable names?
There was a problem hiding this comment.
The variable name is plain CSS, so it's not parsed/tailwind-ed, and is handled by the browser's CSS loading directly
There was a problem hiding this comment.
@Ekagrashharma If you push your changes that aren't working, I'm sure I can help identify a root cause :-)
There was a problem hiding this comment.
@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
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Co-authored-by: Aviv Keller <me@aviv.sh>
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.
fixes : #243
Dark theme

Light theme

Summary by CodeRabbit