-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dark mode not working #1662
Comments
Thanks for opening this issue, maintainers will get back to you as soon as possible! |
PS: Yes I have read https://theme-next.js.org/docs/theme-settings/#Dark-Mode, #1602, #1599
|
In thought of an inheritance issue but setting it in theme_config:
darkmode: true Even forcing teh value in |
While served with My gitlab-ci config: # Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
# https://nodejs.org/en/download/releases/
image: node:15
stages:
- deploy
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
paths:
- node_modules/
before_script:
- npm --version
- node --version
- npm install hexo-cli -g
- npm install
pages:
stage: deploy
script:
- hexo generate
artifacts:
paths:
- public
only:
- master CI env
|
I were meeted the same issue that when
[data-theme=dark] body {
background: #282828;
}
<html lang="en" data-theme="dark">
....
</html> So that suggest use this way to instead of the |
Issue Checklist
Expected behavior
Darkmode working
Actual behavior
I have installed the last version of Next available via npm 8.7.0, installed a default website with
hexo init
, switeched to next theme, and just enabled dark mode but it's not working.I have tried with all 4 schemes, disabled the next cache, ran
hexo clean
, emptied the browser cache, tried with both firefox and chromium, the website never get black.It is reproducible 100% of the time with a minimal setup.
Steps to reproduce the behavior
hexo init darkmode_not_working && cd darkmode_not_working
npm install hexo-theme-next --save
cp node_modules/hexo-theme-next/_config.yml _config.next.yml
theme: next
in_config.yml
darkmode: true
in_config.next.yml
hexo g && hexo s
Environment Information
Node.js and NPM Information
Package dependencies Information
Hexo Configuration
The default, just changed
theme: next
.NexT Configuration
Other Information
The text was updated successfully, but these errors were encountered: