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

@sanity/color

Package Overview
Dependencies
Maintainers
22
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/color

The Sanity color palette.

  • 2.0.10
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
296K
decreased by-20.88%
Maintainers
22
Weekly downloads
 
Created
Source

@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"]

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.

Keywords

FAQs

Package last updated on 08 Dec 2020

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