tldraw/apps/examples/src
Mitja Bezenšek 12aea7ed68
[Experiment] Allow users to use system's appearance (dark / light) mode (#3703)
Allow the users to fully use the same colour scheme as their system.
Allows the users to either: force dark colour scheme, force light colour
scheme, or use the system one.

It's reactive to the system changes.


https://github.com/tldraw/tldraw/assets/2523721/6d4cef03-9ef0-4098-b299-6bf5d7513e98


### Change Type

<!--  Please select a 'Scope' label ️ -->

- [x] `sdk` — Changes the tldraw SDK
- [ ] `dotcom` — Changes the tldraw.com web app
- [ ] `docs` — Changes to the documentation, examples, or templates.
- [ ] `vs code` — Changes to the vscode plugin
- [ ] `internal` — Does not affect user-facing stuff

<!--  Please select a 'Type' label ️ -->

- [ ] `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

- Add a brief release note for your PR here.

---------

Co-authored-by: David Sheldrick <d.j.sheldrick@gmail.com>
2024-06-17 14:46:04 +00:00
..
examples [Experiment] Allow users to use system's appearance (dark / light) mode (#3703) 2024-06-17 14:46:04 +00:00
hooks ban using @internal items in examples (#3746) 2024-05-14 08:49:28 +00:00
icons New vite-based examples app (#1226) 2023-05-05 13:10:36 +00:00
misc Measure action durations and fps for our interactions (#3472) 2024-05-08 10:06:05 +00:00
ExamplePage.tsx security: enforce use of our fetch function and its default referrerpolicy (#3884) 2024-06-11 13:59:25 +00:00
examples.tsx Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
index.html [dx] Allow vscode to search inside md files by default (#3105) 2024-03-11 14:08:04 +00:00
index.tsx ban using @internal items in examples (#3746) 2024-05-14 08:49:28 +00:00
styles.css docs: smaller snapshot so it doesnt crash (#3768) 2024-05-17 13:11:52 +00:00
vite-env.d.ts add descriptions to examples (#2375) 2023-12-27 17:17:18 +00:00