@sanity/color
v3.0.6
Published
The Sanity color palette.
Downloads
958,758
Maintainers
Readme
@sanity/color
The Sanity color palette.
npm install @sanity/color
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.