-
Notifications
You must be signed in to change notification settings - Fork 103
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
In Dark mode, in the reference section the syntax text color should be in black #680
Comments
Please assign me this issue |
Thanks @piyushzingade! |
@piyushzingade I think you may have monochrome mode enabled as well since I'm seeing it as blue (which is still too dark) when it should be yellow. You may need to investigate a bit deeper into what's going on here. |
For some context @piyushzingade, code blocks invert their colors in dark mode because syntax highlighting doesn't take dark mode into account and essentially hard-codes its colors. However, when we have a code block without syntax highlighting, it takes the text color from the page default, which does take into account dark mode. So two possible directions to go here could be:
|
Ok @limzykenneth I will look into it more and investigate it more |
Thank you @davepagurek for the context I will solve this as per the requirements |
@davepagurek @limzykenneth Can you help me to start this repo locally? I am getting errors while running locally cause there is no guide for running locally Please help!!!. |
What kinds of errors are you getting? Also, what version of Node are you using? I've seen some errors while accidentally on earlier versions. If I run |
My node version is v23.6.0 this is the latest one |
Ok, probably not that then. After having run |
p5.js-website (main)$ npm run dev
12:39:45 am [vite] Error when evaluating SSR module C:\Users\Piyush\gsoc\p5.js-website\astro.config.mjs: failed to import "astro-compress" Cannot find module '../build/Release/sharp-win32-x64.node'
Possible solutions:
[astro] Unable to load your Astro config Something went wrong installing the "sharp" module Cannot find module '../build/Release/sharp-win32-x64.node'
Possible solutions:
I see this error while running command npm run dev |
Any luck trying this suggestion? https://stackoverflow.com/a/66995768 |
Almost Done with setting up locally but having issues with scss and importing some modules |
What errors are you seeing? |
Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ Deprecation Warning [mixed-decls]: Sass's behavior for declarations that appear after nested More info: https://sass-lang.com/d/mixed-decls ╷ Warning: 1 repetitive deprecation warnings omitted. Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. More info: https://sass-lang.com/d/legacy-js-api 01:15:48 [ERROR] Cannot find module 'C:\Users\Piyush\gsoc\p5.js-website\node_modules@uiw\react-codemirror\esm\useCodeMirror' imported from C:\Users\Piyush\gsoc\p5.js-website\node_modules@uiw\react-codemirror\esm\index.js |
Looks like those are all just warnings except for the last one, so we can ignore all those others. I haven't seen an error like that before, @limzykenneth have you? |
It looks like an incorrect module resolution, specifically some custom resolution is not running or code that needs custom resolution is not running through it. Try deleting Also it is probably unlikely but maybe it being on Windows and uses backslash for folders may be confusing it, not sure though as I haven't tried running the site on a Windows machine before. |
So any suggestion on to solve this error ? |
Cannot find module 'C:\Users\Piyush\gsoc\p5.js-website\node_modules@uiw\react-codemirror\esm\useCodeMirror' imported from C:\Users\Piyush\gsoc\p5.js-website\node_modules@uiw\react-codemirror\esm\index.js Now getting this error . I have remove the node_modules 2 to 3 times but still getting the same error and I have install @uiw/react-codemirror/esm locally many times but still not working @davepagurek @limzykenneth |
Might be related to this I'm not sure: uiwjs/react-codemirror#710 Can you try running on node 20, specifically I'm on 20.11.1 and it's working for me. |
Ok I will try |
C:\Users\Piyush\gsoc\p5.js-website\node_modules@uiw\react-codemirror\esm\index.js:1 Now getting this error |
That doesn't look like the full error message, can you share more of what it shows? |
It is an syntax error Stack Trace SyntaxError: Cannot use import statement outside a module |
@limzykenneth @davepagurek please |
I'm not entirely sure what is going on here as the errors don't make much sense to me. All of them seem to come from some modules in |
@davepagurek @ksen0 I've just tried to install and build the site on a Windows machine but I'm still unable to replicate the setup problem here, both |
@piyushzingade I think I'll fix this as we couldn't figure out how to get the build running on your machine. Feel free to report any more issues you found and checkout the main p5.js repo if you'd like to work on something else. Thanks! |
Most appropriate sections of the p5.js website?
Reference
What is your operating system?
Windows
Web browser and version
No response
Actual Behavior
In the reference section of circle the syntax text color should also be change. Currently is it in black color
Expected Behavior
It should white in text color
Steps to reproduce
No response
Would you like to work on the issue?
Please assign me this issue. I would love to work on this issue
The text was updated successfully, but these errors were encountered: