Skip to content

Conversation

pomber
Copy link
Contributor

@pomber pomber commented May 28, 2023

Fix #21

Adding support for CSS custom properties in themes, and two dark/light built-in themes:

  • github-from-css (github-dark + github-light)
  • material-from-css (material-darker + material-lighter)

To use them you'll need to import (or copy) the CSS from

  • @code-hike/lighter/themes/github-from-css.css
  • @code-hike/lighter/themes/material-from-css.css

This will use the dark theme by default and change to the light theme when the code has a parent with the data-theme="light" attribute. To change the selector you can copy the CSS and pick a different one.

@vercel
Copy link

vercel bot commented May 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
lighter ✅ Ready (Inspect) Visit Preview May 28, 2023 2:39pm

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

Successfully merging this pull request may close these issues.

Use CSS classes instead of colors

1 participant