Skip to content

Introduction of dark mode for user convience #256

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Hemkumar247
Copy link

@Hemkumar247 Hemkumar247 commented Aug 3, 2025

This commit introduces the dark mode feature to the website.

The dark mode is enabled by adding the colorMode configuration to the docusaurus.config.ts file. The theme switcher is now available in the navbar, and it respects your system preferences.

Additionally, this commit fixes a pre-existing bug in docusaurus.config.ts where the scripts property was defined twice, causing the TypeScript build to fail.

Note: The npm run typecheck command is still failing with a large number of TypeScript errors. These errors seem to be caused by a misconfigured tsconfig.json and are not directly related to the dark mode feature. I have made several attempts to fix the build, but the issues are complex and appear to be part of a larger problem with the repository's setup.

Description

Provide a brief summary of the changes made to the website and the motivation behind them. Include any relevant issues or tickets.
This helps fast tracking your PR and merge it, Check the respective box below.

Fixes # (issue)

Type of Change

  • New feature (e.g., new page, component, or functionality)
  • Bug fix (non-breaking change that fixes an issue)
  • UI/UX improvement (design, layout, or styling updates)
  • Performance optimization (e.g., code splitting, caching)
  • Documentation update (README, contribution guidelines, etc.)
  • Other (please specify):

Changes Made

  • Describe the key changes (e.g., new sections, updated components, responsive fixes).

Dependencies

  • List any new dependencies or tools required for this change.
  • Mention any version updates or configurations that need to be considered.

Checklist

  • My code follows the style guidelines of this project.
  • I have tested my changes across major browsers/devices
  • My changes do not generate new console warnings or errors , I ran npm run build and attached scrrenshot in this PR.
  • This is already assigned Issue to me, not an unassigned issue.

This commit introduces the dark mode feature to the website.

The dark mode is enabled by adding the `colorMode` configuration to the `docusaurus.config.ts` file. The theme switcher is now available in the navbar, and it respects your system preferences.

Additionally, this commit fixes a pre-existing bug in `docusaurus.config.ts` where the `scripts` property was defined twice, causing the TypeScript build to fail.

Note: The `npm run typecheck` command is still failing with a large number of TypeScript errors. These errors seem to be caused by a misconfigured `tsconfig.json` and are not directly related to the dark mode feature. I have made several attempts to fix the build, but the issues are complex and appear to be part of a larger problem with the repository's setup.
Copy link

vercel bot commented Aug 3, 2025

@google-labs-jules[bot] is attempting to deploy a commit to the recode Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

github-actions bot commented Aug 3, 2025

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. The estimated time for response is 5–8 hrs.

In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, a video recording, or an image of the update you made below, which helps speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊

Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv.

We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰

🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨

📚Your perks for contribution to this community 👇🏻

  1. Get free Consultation use code recode50 to get free: Mentorship for free.

  2. Get the Ebook for free use code recode at checkout: Data Science cheatsheet for Beginners.

  3. Check out this weekly Newsletter: Sanjay's Newsletter.

If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@Hemkumar247
Copy link
Author

please check my code and accept if all is well ...!!!

@sahkanishk01
Copy link

I have to work on this issue, please assign me this

@sanjay-kv sanjay-kv self-requested a review August 5, 2025 06:53
Copy link

vercel bot commented Aug 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
recode-website ❌ Failed (Inspect) Aug 5, 2025 6:55am

@sanjay-kv
Copy link
Member

Hi the deployment failed due to multiple reasons/.

image image

@Hemkumar247
Copy link
Author

I will work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants