Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f6e88b9
fixed:about
Abhinandankaushik Feb 4, 2026
e104587
Update content/theme/templates/menu.html
Abhinandankaushik Feb 4, 2026
89aaef9
Merge remote-tracking branch 'upstream/main'
Abhinandankaushik Feb 4, 2026
ec241e7
Merge branch 'main' of https://github.com/Abhinandankaushik/datafusio…
Abhinandankaushik Feb 4, 2026
1b2cfa6
added spell check action
Abhinandankaushik Feb 4, 2026
5125719
added spell check github-action
Abhinandankaushik Feb 4, 2026
e6995c0
fixed blog-typos and added flase-positive in the list
Abhinandankaushik Feb 5, 2026
2b3c715
typo lower-case issue fixed
Abhinandankaushik Feb 5, 2026
de5426c
added dark-mode support
Abhinandankaushik Feb 5, 2026
5fac75f
fix blog-typos and added false-positive into the list
Abhinandankaushik Feb 5, 2026
fa6c303
typos fix-attempt-1
Abhinandankaushik Feb 5, 2026
092883b
Merge branch 'ci/add-typos-spellcheck' of https://github.com/Abhinand…
Abhinandankaushik Feb 5, 2026
e8b8781
addec dark-mode
Abhinandankaushik Feb 5, 2026
d7d9801
Merge branch 'main' into feat/dark-mode-support
Abhinandankaushik Feb 6, 2026
1f773c7
removed extra box-style and added simple dark-mode feature
Abhinandankaushik Feb 6, 2026
a7c36a1
Merge branch 'feat/dark-mode-support' of https://github.com/Abhinanda…
Abhinandankaushik Feb 6, 2026
8160f80
fixed all dark-mode issues
Abhinandankaushik Feb 9, 2026
b9a5be3
finalyze dark-mode properties
Abhinandankaushik Feb 9, 2026
9737883
Merge remote-tracking branch 'upstream/main' into feat/dark-mode-support
Abhinandankaushik Feb 9, 2026
07934c3
feat: refine dark mode toggle UX and simplify theme styles
kevinjqliu Mar 13, 2026
c243a6b
Update content/js/dark-mode.js
Abhinandankaushik Mar 14, 2026
9d7630f
Update content/js/dark-mode.js
Abhinandankaushik Mar 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ extend-ignore-re = [

# Custom dictionary for technical terms (whole word matching only)
[default.extend-words]
# GitHub usernames (lowercase for case-insensitive matching)
# Add any false positives here if needed

# GitHub usernames (keys must be lowercase for case-insensitive matching)
youy = "youy"

# Product/Service names
Expand Down
100 changes: 100 additions & 0 deletions content/css/dark-mode.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
/* Dark Mode Styles */
:root {
--bg-primary: #ffffff;
--text-primary: #212529;
--text-secondary: #6c757d;
--navbar-bg: #343a40;
--code-bg: #f8f9fa;
}

[data-theme="dark"] {
--bg-primary: #0d1117;
--text-primary: #e6edf3;
--text-secondary: #8b949e;
--navbar-bg: #0d1117;
--code-bg: #161b22;
}

body {
background-color: var(--bg-primary) !important;
color: var(--text-primary) !important;
}

[data-theme="dark"] .bg-white {
background-color: var(--bg-primary) !important;
color: var(--text-primary) !important;
}

[data-theme="dark"] a {
color: #58a6ff !important;
}

[data-theme="dark"] a:hover {
color: #79c0ff !important;
}

[data-theme="dark"] .navbar-dark {
background-color: var(--navbar-bg) !important;
}

[data-theme="dark"] pre {
background-color: var(--code-bg) !important;
border-radius: 6px;
}

.dark-mode-toggle {
background: none;
border: none;
color: rgba(255, 255, 255, 0.8);
font-size: 1.2rem;
cursor: pointer;
padding: 0;
margin-left: 1rem;
line-height: 1;
display: inline-flex;
align-items: center;
transition: color 0.15s ease;
}

.dark-mode-toggle:hover {
color: rgba(255, 255, 255, 1);
}

.dark-mode-toggle:focus {
outline: 2px solid #79c0ff;
outline-offset: 2px;
}

.dark-mode-toggle:focus:not(:focus-visible) {
outline: none;
}

.sun-icon {
display: none;
}

.moon-icon {
display: inline;
}

.sun-icon,
.moon-icon {
line-height: 1;
}

[data-theme="dark"] .sun-icon {
display: inline;
}

[data-theme="dark"] .moon-icon {
display: none;
}

[data-theme="dark"] .hljs {
background: var(--code-bg) !important;
color: var(--text-primary) !important;
}

[data-theme="dark"] .hljs-comment {
color: var(--text-secondary) !important;
}
46 changes: 46 additions & 0 deletions content/js/dark-mode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
(function() {
'use strict';

const root = document.documentElement;

function getTheme() {
try {
return localStorage.getItem('theme') || 'light';
} catch {
return 'light';
}
}

function setButtonState(theme) {
const toggleButton = document.getElementById('dark-mode-toggle');
if (toggleButton) {
toggleButton.setAttribute('aria-pressed', theme === 'dark' ? 'true' : 'false');
}
}

function applyTheme(theme) {
root.setAttribute('data-theme', theme);
try { localStorage.setItem('theme', theme); } catch { }
setButtonState(theme);
}

function toggleTheme() {
applyTheme(getTheme() === 'dark' ? 'light' : 'dark');
}

function setupToggleButton() {
const toggleButton = document.getElementById('dark-mode-toggle');
if (toggleButton) {
setButtonState(getTheme());
toggleButton.addEventListener('click', toggleTheme);
}
}

root.setAttribute('data-theme', getTheme());

if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', setupToggleButton);
} else {
setupToggleButton();
}
})();
4 changes: 4 additions & 0 deletions content/theme/templates/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
<a class="nav-link" href="/blog/feed.xml">RSS</a>
</li>
</ul>
<button id="dark-mode-toggle" type="button" class="dark-mode-toggle" aria-label="Toggle dark mode" aria-pressed="false" title="Toggle dark mode">
<span class="sun-icon" aria-hidden="true">☀</span>
<span class="moon-icon" aria-hidden="true">☾</span>
</button>
</div>
</div>
</nav>
2 changes: 2 additions & 0 deletions content/theme/templates/styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
<link href="/blog/css/headerlink.css" rel="stylesheet">
<link href="/blog/highlight/default.min.css" rel="stylesheet">
<link href="/blog/css/app.css" rel="stylesheet">
<link href="/blog/css/dark-mode.css" rel="stylesheet">
<script src="/blog/js/dark-mode.js"></script>
<script src="/blog/highlight/highlight.js"></script>
<script>hljs.highlightAll();</script>