Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

atom-one-chroma

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atom-one-chroma

Atom One Syntax Highlighting for Chroma

  • 2.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Atom One Chroma

Chroma compatible stylesheets using Atom's lovely One Dark Syntax and One Light Syntax Syntax themes.

NPM downloads per month Latest NPM version WTFPL Licensed

Usage

Get the stylesheets on jsDelivr or consume the NPM package and access built stylesheets from dist.

How it works

NPM build script copies LESS stylesheet files from GitHub repositories for One Dark Syntax and One Light Syntax into a temp directory, at which point each of them are converted to vanilla CSS using LESS compiler, minified with clean-css and output to the dist directory.

Development

  1. Clone this repository with git clone.
  2. Install NPM dependencies with npm install.
  3. Run npm run build to generate stylesheets.

See dist folder for light and dark Atom One stylesheets.

Note: By default, generated stylesheets assume your highlighted code sits in a container with class highlight, e.g.

<div class="highlight">
  <pre>
    <code>...</code>
  </pre>
</div>

If you are not using highlight as your wrapper class change the wrapper class name in styles.less before building.

Pygments support

Supports code snippets generated with Pygments 2.2.0 and earlier though future versions may be supported.

Credits

This tool was inspired by Richard Leland, Mihály Gyöngyösi and Alex Wood from their following creative works:

License

Copyright (C) 2017–2018 Josh Habdas jhabdas@protonmail.com

This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details.

Keywords

FAQs

Package last updated on 09 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc