JSPM

  • Created
  • Published
  • Downloads 314608
  • Score
    100M100P100Q213953F
  • License MIT

The Sanity color palette.

Package Exports

  • @sanity/color

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sanity/color) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@sanity/color

The Sanity color palette.

npm install @sanity/color

npm version

Usage

import {black, hues, COLOR_HUES, COLOR_TINTS} from '@sanity/color'

console.log(black.title)
// "Black"
console.log(black.hex)
// "#101112"

console.log(hues.red['500'].title)
// "Red 500"
console.log(hues.red['500'].hex)
// "#f03e2f"

console.log(COLOR_HUES)
// ["gray", "blue", "purple", "magenta", "red", "orange", "yellow", "green", "cyan"]

console.log(COLOR_TINTS)
// ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900", "950"]

License

MIT-licensed. See LICENSE.