From a5761e8d7875357d0dcc52a5cc31f06f866d791c Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 5 Nov 2026 10:11:11 +0100 Subject: fix: tie Tailwind's dark variant to the site theme The theme is a class on the html element, not the OS preference. Co-Authored-By: Claude Opus 5.5 --- tailwind.config.js | 2 ++ themes/danix-xyz-hacker | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tailwind.config.js b/tailwind.config.js index 0f4d608..2059f85 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,4 +1,6 @@ module.exports = { + // The site theme is a class on , not the OS preference. + darkMode: ['selector', 'html:not(.theme-light)'], content: [ './themes/**/layouts/**/*.html', './themes/**/assets/js/**/*.js', diff --git a/themes/danix-xyz-hacker b/themes/danix-xyz-hacker index 2cbd791..7b65418 160000 --- a/themes/danix-xyz-hacker +++ b/themes/danix-xyz-hacker @@ -1 +1 @@ -Subproject commit 2cbd791c7a90b1e88718c4caab155c1ffe29619d +Subproject commit 7b654189673fb7c517f095f468f8608e73f5cddf -- cgit v1.2.3