lighter icon indicating copy to clipboard operation
lighter copied to clipboard

`from-css` themes don't work with `scopes: true`

Open pomber opened this issue 2 years ago • 1 comments

highlight("console.log(1)", "js", "github-from-css", {
  scopes: true
})

returns

"style": {
  "color": "#000000"
},

instead of the CSS var names

pomber avatar Oct 31 '23 13:10 pomber

Is there a consideration for considering dual-themes beyond light and dark? To include high-contrast which is often not supported by makes a different for some with eye defects.

Rather than, from-css, if the theme variable accepts an object like shiki does, it would simplify using dual-themes with lighter.

bondz avatar Feb 11 '24 10:02 bondz