diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-05 10:11:11 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-05 10:11:11 +0100 |
| commit | a5761e8d7875357d0dcc52a5cc31f06f866d791c (patch) | |
| tree | 73d0a445dbd3e2b58b7303688a27e565ee306581 /tailwind.config.js | |
| parent | 1da0025fc5d4fa001124a5cf225a69a49a7d01bf (diff) | |
| download | danixxyz-a5761e8d7875357d0dcc52a5cc31f06f866d791c.tar.gz danixxyz-a5761e8d7875357d0dcc52a5cc31f06f866d791c.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'tailwind.config.js')
| -rw-r--r-- | tailwind.config.js | 2 |
1 files changed, 2 insertions, 0 deletions
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 <html>, not the OS preference. + darkMode: ['selector', 'html:not(.theme-light)'], content: [ './themes/**/layouts/**/*.html', './themes/**/assets/js/**/*.js', |
