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 ++ 1 file changed, 2 insertions(+) (limited to 'tailwind.config.js') 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', -- cgit v1.2.3