Skip to content

Add dark mode support#148

Merged
alamb merged 22 commits intoapache:mainfrom
Abhinandankaushik:feat/dark-mode-support
Mar 16, 2026
Merged

Add dark mode support#148
alamb merged 22 commits intoapache:mainfrom
Abhinandankaushik:feat/dark-mode-support

Conversation

@Abhinandankaushik
Copy link
Contributor

@Abhinandankaushik Abhinandankaushik commented Feb 5, 2026

Added dark mode support and toggle button for changing the mode (eg. ligh,dark)
also improve readability by adding some extra line of CSS

Copilot AI review requested due to automatic review settings February 5, 2026 14:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request implements dark mode support for the Apache DataFusion blog website, addresses multiple spelling errors across historical blog posts, and introduces automated spell checking via a new GitHub Actions workflow.

Changes:

  • Implements a comprehensive dark mode feature with toggle button, CSS variables, and localStorage persistence
  • Corrects 9 spelling errors across 7 blog posts (retrieve, libraries, performance, Aggregate, initialization, threshold, publicly, including, MemoryManager)
  • Adds automated typo checking workflow using the typos tool to prevent future spelling errors

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
content/theme/templates/styles.html Adds references to dark mode CSS and JavaScript files
content/theme/templates/menu.html Adds theme toggle button to navigation bar with accessibility attributes
content/js/darkmode.js Implements dark mode toggle functionality with localStorage persistence and system preference detection
content/css/darkmode.css Provides comprehensive dark mode styling with GitHub-inspired color palette and responsive design
content/blog/*.md (7 files) Corrects spelling errors in blog posts
_typos.toml Configures typo checker with custom dictionary and ignore patterns
.github/workflows/typo-check.yml Adds GitHub Actions workflow for automated spell checking on blog posts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Jefffrey
Copy link

Jefffrey commented Feb 6, 2026

Could you rebase the branch to remove the typo changes, and attach some screenshots of this working locally?

@Abhinandankaushik
Copy link
Contributor Author

hey @Jefffrey
as you instructed i have fix the merge conflict and here is the new feature screenshots

light-mode:
{7FFF1938-21D8-47BC-A4EB-0E840FEA506F}

after-dark-mode:
{76195DD5-F2B1-4127-A7A5-271468F25A8B}

i try to make website look little good if this changes are not suitable i will change it as it's original design

@Jefffrey
Copy link

Jefffrey commented Feb 6, 2026

I think the CSS theme is changing too much between dark/light mode here; can we keep the changes related to colour only and not introduce changes like the boxes around each post?

@Abhinandankaushik
Copy link
Contributor Author

I think the CSS theme is changing too much between dark/light mode here; can we keep the changes related to colour only and not introduce changes like the boxes around each post?

yeah sure i will do that

@Abhinandankaushik
Copy link
Contributor Author

Abhinandankaushik commented Feb 6, 2026

hey @Jefffrey
here is the fixed screenshot of the website :
Light-Mode :
{772A995A-7F68-49A4-98C1-5E1852AAF6D0}
Dark-Mode :
{979F2CDF-FACB-40C1-9F55-232D3EDF08F7}

if this is okay i will push this changes ?

@Abhinandankaushik
Copy link
Contributor Author

hey @Jefffrey
please review it when you get time
and let me know if any further changes are required or not
Thank's

@Jefffrey
Copy link

Jefffrey commented Feb 9, 2026

Some of the example boxes have hard to read text in dark mode:

image
  • See the dark red text, doesn't really work well with the dark background

Also I'm seeing some odd behaviour where some sizes change between the themes:

Screen.Recording.2026-02-09.at.15.55.48.mov
  • See CASE

And also hovering over images brightens them:

Screen.Recording.2026-02-09.at.15.56.08.mov

@Abhinandankaushik
Copy link
Contributor Author

Thankyou for your feedback i will surely fixed all this bugs and update you.

@Abhinandankaushik
Copy link
Contributor Author

hey @Jefffrey
i have made some changes from you feedback and here are the demo video of that changes :

Video.Project.5.mp4

Please review it when you get time and let me know if any further improvement are required or not .
Thank's

@Abhinandankaushik
Copy link
Contributor Author

hey @Jefffrey can you please review this one
i create it around one week ago and it still in pending
i understand that your are busy but please if you can take a little time from you schedule to review it would be great .
Thankyou!

@Jefffrey
Copy link

Apologies, I have a large backlog to work through at the moment so it'll be a while before I'm able to take a look at this again

@Abhinandankaushik
Copy link
Contributor Author

hey @Jefffrey just quick followup when you get free please review this pr i am waiting for your response ,
Thankyou

@Abhinandankaushik
Copy link
Contributor Author

Abhinandankaushik commented Mar 5, 2026

hey @Jefffrey i understand that you are busy with your work and if you get time please take a review on my pr please,
Thankyou

@Abhinandankaushik
Copy link
Contributor Author

hey @Jefffrey i have open this pr a month before and it's still not reviewed please if you have a time to review this pr then please do that , i am not complaining i understand that you are busy with lots of work but please can you address this as well Thankyou

@kevinjqliu
Copy link
Contributor

Hey @Abhinandankaushik i tested this out locally. I found a few issues, attached screenshots below.

In dark mode, the button is a gear, should be a sun
Screenshot 2026-03-13 at 11 17 00 AM

In dark mode, code blocks are still light:
Screenshot 2026-03-13 at 11 17 14 AM

I asked claude to fix the issues. heres the fix, 25a6bd5
feel free to cherrypick it

@alamb alamb changed the title Feat/dark mode support Add dark mode support Mar 13, 2026
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me -- thank you @Abhinandankaushik 🙏

I tried it out locally and they both seem to work quite well

Image Image

@alamb
Copy link
Contributor

alamb commented Mar 13, 2026

In dark mode, the button is a gear, should be a sun

I think I interpreted it t be a dark sun 🤔 😆

* simplify dark mode script flow while keeping persisted theme behavior
* add accessible toggle state with aria-pressed
* switch toggle icons to stable sun/moon glyphs to avoid icon fallback issues
* reduce dark mode CSS to MVP essentials and remove non-essential overrides
* keep code block readability in dark mode with explicit highlight styles
Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

heres a side by side comparison

Screenshot 2026-03-13 at 5 38 51 PM

Abhinandankaushik and others added 2 commits March 14, 2026 12:34
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
@Abhinandankaushik
Copy link
Contributor Author

Hey @kevinjqliu Thank's for figuring out this issues

@kevinjqliu
Copy link
Contributor

np! thanks for adding this feature 😄

@alamb we fixed the dark sun, please take another look when you get a chance

@alamb
Copy link
Contributor

alamb commented Mar 16, 2026

Looks good!

Screenshot 2026-03-16 at 7 04 23 AM Screenshot 2026-03-16 at 7 04 25 AM

@alamb alamb merged commit 8c89c73 into apache:main Mar 16, 2026
4 checks passed
@alamb
Copy link
Contributor

alamb commented Mar 16, 2026

Thanks again @Abhinandankaushik and @kevinjqliu

@alamb
Copy link
Contributor

alamb commented Mar 16, 2026

It's live on https://datafusion.apache.org/blog/!

Screenshot 2026-03-16 at 7 45 40 AM Screenshot 2026-03-16 at 7 45 44 AM

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.

feat: Dark Mode support on blog website

5 participants