Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 2.22 KB

README.md

File metadata and controls

48 lines (38 loc) · 2.22 KB

Srcery Palette

Srcery colors exposed as an npm package, intended as a single source of truth for the Srcery colors, regardless of implementation.

Installation

Using git:

git clone https://github.com/srcery-colors/srcery-palette.git

Using npm:

npm i @srcery-colors/srcery-palette

Usage

You can clone or download and use the palette.json however you like:

jq < palette.json '.primary.red.hex'

or you can use the npm package, which exports palette.json as a JavaScript object:

const palette = require("@srcery-colors/srcery-palette");
console.log(palette.primary.red.hex);