remark42 icon indicating copy to clipboard operation
remark42 copied to clipboard

support color-scheme

Open akellbl4 opened this issue 2 years ago • 2 comments

  • add new option for theme to the config in order to understand if site supports auto switch between light and dart theme
  • add color-scheme: light dark when the param is true, add light or dark when false and switch coloe-scheme value accordingly
  • remove this change https://github.com/umputun/remark42/pull/1429

Cases

Auto

var remark_config = {
  theme: 'auto'
}
color-scheme: light dark;

Add support for auto switch between themes

Dark

var remark_config = {
  theme: 'dark'
}
color-scheme: dark;

Light

var remark_config = {
  theme: 'light'
}
color-scheme: light;

akellbl4 avatar Jul 22 '22 02:07 akellbl4

Sorry, so can it be fixed? Because the related issue was closed unresolved: https://github.com/umputun/remark42/issues/1662

Currently I see this:

image

OnkelTem avatar Dec 27 '23 22:12 OnkelTem