You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
in the next theme config file: _config.next.yml, add:
custom_file_path:
variable: variables.styl
creat variables.styl file in the blog root folder, add:
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.
The text was updated successfully, but these errors were encountered: