Github Dark Chroma Theme screenshot

Github Dark Chroma Theme

Author Avatar Theme by Icy comet
Updated: 3 Apr 2023
13 Stars

A simple Chroma theme based on GitHub's Dark color scheme!

Categories

Overview:

The theme being analyzed is a simple Chroma theme based on GitHub’s Dark color scheme. It is designed to provide a better dark highlighting theme with Hugo. Users are encouraged to open Issues or Pull Requests for improvements. It can be used with the chroma CLI and with Hugo.

Features:

  • Simple Chroma theme based on GitHub’s Dark color scheme
  • Better dark highlighting theme for Hugo
  • Can be used with chroma CLI and Hugo

Installation:

To install the theme, follow these steps:

  1. Make sure you have Chroma v2.3.0 or later installed. If not, update your Chroma version.
  2. Specify the output format as HTML when invoking chroma with chroma -f html.
  3. Clear out the styles from the generated output, i.e. delete everything between the opening and closing <style> tags.
  4. Copy and paste the contents of dist/gh-dark-chroma.css into the cleared space.

To use the theme with Hugo, follow these steps:

  1. Make sure you have Hugo v0.104.0 or later installed. If not, update your Hugo version.
  2. Head over to the Releases page and download the latest gh-dark-chroma.css.zip.
  3. Turn markup.highlight.noClasses to false in your Hugo config.
  4. Include the downloaded stylesheet in your layouts, e.g. in a head partial to make it available on all pages.

To build the theme, follow these steps:

  1. Run npm run build inside the project’s root directory.
  2. You can also run npm update -S before running the build to use the latest GitHub styles.
  3. Look for dist/gh-dark-chroma.css after a successful build.

Summary:

This is a simple Chroma theme based on GitHub’s Dark color scheme. It is designed to provide a better dark highlighting theme for Hugo. The theme can be installed and used with the chroma CLI and with Hugo. The installation process requires specifying the output format as HTML, clearing out the styles from the generated output, and including the downloaded stylesheet. The theme can be built by running a few commands in the project’s root directory.