-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: Dark Syntax Highlight when navigating docs #342
Comments
One day, but the syntax highlighter gives raw color hex values, so it'd take some work to make that happen. |
You're welcome to take a look at it, until then it's in the backlog 馃憤 |
This is a code snippet I've used to dark mode things in the past. It attempts to keep the "color" of the color relatively unmodified, while swapping light/dark. import Color from "color";
function darkModeColor(color: Color){
const inversionAmount = Math.pow(1 - color.saturationv() / 100, 2);
color = color.mix(color.negate(), inversionAmount);
return color;
} It would be great if someone could implement this or similar; the contrast is painful atm. |
A possible solution for microsoft#342
This has been fixed 馃憤馃徎 |
Hi there 馃憢
Just found a banner asking for suggestions about the new page so here you got my 2 cents.
I got dark mode enabled and I think it would be nice having the code snippets on a dark scheme too.
Regards
The text was updated successfully, but these errors were encountered: