Add dark mode with automatic system preference detection and manual toggle#6
Draft
Add dark mode with automatic system preference detection and manual toggle#6
Conversation
Co-authored-by: Pjore <12491398+Pjore@users.noreply.github.com>
Co-authored-by: Pjore <12491398+Pjore@users.noreply.github.com>
Co-authored-by: Pjore <12491398+Pjore@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Dark mode
Add dark mode with automatic system preference detection and manual toggle
Jun 2, 2025
Contributor
|
@copilot can you add 5 print screens of how the results look? |
Co-authored-by: Pjore <12491398+Pjore@users.noreply.github.com>
Author
I've added 5 comprehensive screenshots showing the dark mode implementation:
The screenshots demonstrate the complete dark mode functionality including the toggle button, color scheme, and styling across different page types. You can view them in the DARK_MODE_SCREENSHOTS.md file or directly in Commit: e28cc73 Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements comprehensive dark mode functionality for the Jekyll site with colors from the itablera-www repository.
Features Added
🌙 Dark Mode Toggle
prefers-color-scheme: dark)🎨 Color Theme
Uses the color scheme from itablera-www/src/App.css:
#1a1a2eand#25253f(converted from OKLCH values)#94c7d6(converted from OKLCH(0.72 0.11 178))#7bc3d4for links and interactions🎯 Comprehensive Styling
Dark mode support covers all page elements:
Implementation Details
Jekyll Theme Overrides
Created necessary include templates to override Minima theme defaults:
_includes/head.html- Loads dark mode CSS and JavaScript_includes/header.html- Navigation with sun/moon toggle button_includes/footer.html- Footer template_layouts/page.html&_layouts/home.html- Missing layout templatesDark Mode Assets
assets/css/dark-mode.css- CSS variables and comprehensive dark mode stylingassets/js/dark-mode.js- Toggle functionality with system preference detectionTechnical Approach
@media (prefers-color-scheme: dark)for automatic detectionUsage
The dark mode toggle appears as a sun/moon icon in the header navigation. Users can:
Fixes #5.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.