From 1752977bf6ab9d78144d94961f74ae9527e17ba5 Mon Sep 17 00:00:00 2001 From: Sunny Zanchi Date: Sun, 14 Apr 2024 03:45:22 -0400 Subject: [PATCH] conditionally use star-history dark theme (#3461) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR makes the "github star history" image on the readme use a dark image if the user's preference is for dark mode. ### Change Type - [ ] `sdk` — Changes the tldraw SDK - [ ] `dotcom` — Changes the tldraw.com web app - [x] `docs` — Changes to the documentation, examples, or templates. - [ ] `vs code` — Changes to the vscode plugin - [ ] `internal` — Does not affect user-facing stuff - [ ] `bugfix` — Bug fix - [ ] `feature` — New feature - [x] `improvement` — Improving existing features - [ ] `chore` — Updating dependencies, other boring stuff - [ ] `galaxy brain` — Architectural changes - [ ] `tests` — Changes to any test code - [ ] `tools` — Changes to infrastructure, CI, internal scripts, debugging tools, etc. - [ ] `dunno` — I don't know ### Test Plan 1. Add a step-by-step description of how to test your PR here. 2. - [ ] Unit Tests - [ ] End to end tests ### Release Notes updates the star-history image in the README to conditionally show a dark theme image based on the user's `prefers-color-scheme` --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ffff25cc..7bdd35547 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,17 @@ Please see our [contributing guide](https://github.com/tldraw/tldraw/blob/main/C ## Star History - Star History Chart + + + + Star History Chart + ## Contact