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
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"]
Development
yarn dev
Open http://localhost:1234 to see color palette with live reloading. Click a color to copy its hex value. Releases will be published on Vercel.
License
MIT-licensed. See LICENSE.