-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add a dark mode to the Typescript Playground for better accessibilty #90
Comments
Moved to the website repo, and it will get one when the new site gets dark mode too. If you'd like to see it before then, feel free to submit a PR 👍 |
Thanks! a bunch @orta. I'm Junior Front-end Developer would love to make a PR but not sure whether my skillset is ok for this but I will try anyway to make it happen 🙂 |
I'm so Sorry! @orta I have got busy in other things so I can't make the PR. |
Never feel guilty for not contributing to open source |
Thanks! a bunch! 🙂 ❤️ |
So, instead of constantly trolling @orta about this feature, I figured I should just implement it. The implementation is super easy, but probably need some questions answered before actually doing it. Currently there's a single theme defined and used in main-2.js. That's all there is to it. Monaco comes with (AFAICT) 3 built-in themes: So, questions:
With some guidance on these things, I can turn this around quickly...let me know! |
Ummmm...is orta/typescript-play even relevant? Now I feel dumb. |
Yep, it's used as a sub-module in this repo.
Yes
|
I'm a little confused. Are you saying that No biggie, I can do pretty much all of this without a lot of specifics on the theme, so I'll get something for you to look at ASAP. |
too cool for defaults |
This adds a new 'Theme' dropdown menu to the playground. Themes include: - light (current playground theme) - dark - dark with high contrast On load all themes are registered, and them localStorage is checked for any saved theme, defaulting to 'light'. Updates store the last selected theme in localStorage. Related: microsoft/TypeScript-Website#90
Should this be closed for now or stay open for the eventual v2 implementation? |
Nah, this is enough IMO |
Currently, the Typescript playground , is not much comfortable as it only has a white theme For someone like me with a low vision
It would be nice if there is a dark mode for the playground.
The text was updated successfully, but these errors were encountered: