Open dokurorz opened 2 months ago
Thanks for opening this issue, maintainers will get back to you as soon as possible!
Same. In the source code ('\hexo-source\node_modules\hexo-theme-next\source\css_variables\base.styl'), the default $selection-bg is defined as $blue-deep, #262a30;
$blue-deep = #262a30;
$selection-bg = $blue-deep;
it's hard to indistinguish in dark-theme.
my solution: redefine the $selection-bg
variable.
_config.next.yml
, add:custom_file_path:
variable: variables.styl
variables.styl
file in the blog root folder, add:$selection-bg = #0066ff
Issue Checklist
Expected behavior
By modifying /source/css/_variables/base.styl, the blue color looks reasonable.
Actual behavior
The default
selection-bg
is blue-deep#262a30
, but it is indistinguishable in dark-theme code blocks.Steps to reproduce the behavior
none
Node.js and NPM Information
Package dependencies Information
Hexo Configuration
NexT Configuration
Other Information
Changing the color of selection-bg is simple, but replacing the default color with a color of better contrast would be more user-friendly.