Skip to content

Commit 688042e

Browse files
authored
Replace deprecated theme fragment syntax with prefers-color-scheme (#2354)
1 parent 698898f commit 688042e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<p align="center">
2-
<img src="./images/wordmark-light.svg#gh-light-mode-only" alt="esbuild: An extremely fast JavaScript bundler">
3-
<img src="./images/wordmark-dark.svg#gh-dark-mode-only" alt="esbuild: An extremely fast JavaScript bundler">
2+
<picture>
3+
<source media="(prefers-color-scheme: dark)" srcset="./images/wordmark-dark.svg">
4+
<source media="(prefers-color-scheme: light)" srcset="./images/wordmark-light.svg">
5+
<img alt="esbuild: An extremely fast JavaScript bundler" src="./images/wordmark-light.svg">
6+
</picture>
47
<br>
58
<a href="https://esbuild.github.io/">Website</a> |
69
<a href="https://esbuild.github.io/getting-started/">Getting started</a> |
@@ -14,8 +17,11 @@
1417
Our current build tools for the web are 10-100x slower than they could be:
1518

1619
<p align="center">
17-
<img src="images/benchmark-light.svg#gh-light-mode-only" alt="Bar chart with benchmark results">
18-
<img src="images/benchmark-dark.svg#gh-dark-mode-only" alt="Bar chart with benchmark results">
20+
<picture>
21+
<source media="(prefers-color-scheme: dark)" srcset="./images/benchmark-dark.svg">
22+
<source media="(prefers-color-scheme: light)" srcset="./images/benchmark-light.svg">
23+
<img alt="Bar chart with benchmark results" src="./images/benchmark-light.svg">
24+
</picture>
1925
</p>
2026

2127
The main goal of the esbuild bundler project is to bring about a new era of build tool performance, and create an easy-to-use modern bundler along the way.

0 commit comments

Comments
 (0)