Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions apps/website/docs/docs/sponsors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,22 @@ If you found SWC useful, please consider sponsoring us.
- [GitHub Sponsors](https://github.com/sponsors/swc-project)
- [Open Collective](https://opencollective.com/swc)

<a href="https://codspeed.io/?utm_source=oss-sponsorship&utm_medium=swc-project">
<picture>
<source
media="(prefers-color-scheme: dark)"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Match the logo to the selected site theme

When a reader selects a site theme that differs from their OS preference, this media query chooses the wrong logo variant. The Rspress theme applies the active palette through the .dark class (apps/website/theme/index.css:44), so an OS-light/site-dark combination renders the light-background logo against the dark page, and vice versa. Select the variants based on the site's active theme class rather than prefers-color-scheme.

Useful? React with 👍 / 👎.

srcSet="https://codspeed.io/codspeed-logo-dark.svg"
/>
<source
media="(prefers-color-scheme: light)"
srcSet="https://codspeed.io/codspeed-logo-light.svg"
/>
<img
alt="CodSpeed logo"
src="https://codspeed.io/codspeed-logo-light.svg"
width="400"
/>
</picture>
</a>

![Sponsors](https://raw.githubusercontent.com/swc-project/swc-sponsor-images/main/sponsors.svg)
Loading