Skip to content
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

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

Open
pomber opened this issue Oct 31, 2023 · 1 comment
Open

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

pomber opened this issue Oct 31, 2023 · 1 comment

Comments

@pomber
Copy link
Contributor

pomber commented Oct 31, 2023

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

returns

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

instead of the CSS var names

@bondz
Copy link
Contributor

bondz commented Feb 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants