Skip to content

Commit

Permalink
DOC: Replace pandas logo with a conditional image for light and dark … (
Browse files Browse the repository at this point in the history
pandas-dev#57223)

DOC: Replace pandas logo with a conditional image for light and dark themes

Replaced the static pandas logo with a `picture` tag that displays a different logo based on the color scheme. In light mode, the original logo is shown, while in dark mode, a white version of the logo is displayed for better visibility.
  • Loading branch information
LakshmanKishore authored Feb 4, 2024
1 parent b8b096e commit e777b07
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<div align="center">
<img src="https://pandas.pydata.org/static/img/pandas.svg"><br>
</div>
<picture align="center">
<source media="(prefers-color-scheme: dark)" srcset="https://pandas.pydata.org/static/img/pandas_white.svg">
<img alt="Pandas Logo" src="https://pandas.pydata.org/static/img/pandas.svg">
</picture>

-----------------

Expand Down

0 comments on commit e777b07

Please sign in to comment.