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

@master/colors

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@master/colors

A crafted color system for beautiful user interfaces

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
153
decreased by-3.16%
Maintainers
2
Weekly downloads
 
Created
Source

Master

A crafted color system for beautiful user interfaces

NPM Version NPM package ( download / month ) JSDelivr hits (npm scoped) Discord online Follow @mastercorg Github release actions

Master Colors v1 is the predecessor to the color palette of Master CSS v1.

Documentation

Visit v1.css.master.co/docs/colors to preview the all colors.

Getting Started

Install the Master Colors v1 via package managers:

npm install @master/colors@1

Import the colors:

import colors from '@master/colors'

The structure of the colors object in v1 uses hex color codes without the # prefix as values, and the color scale is 2~98:

{
    red {
        2: '0b0000',
        4: '150000',
        ...,
        98: 'fffcfc',
        '': 'd11a1e'
    },
    gray: {
        ...
    },
    ...
}

The exported fillColorScale(colors) helps you fill 2~98 with custom colors:

import fillColorScale from '@master/colors/fill-color-scale'

const customColors = fillColorScale({
    10: 'ff3366',
    20: 'ff4488',
    ...
    90: 'ff3311'
})

Want to upgrade to Master CSS v2? Check out the guide Migrating from Master CSS 1.0.

Community

The Master community can be found here:

Our 《 Code of Conduct 》 applies to all Master community channels.

Contributing

Please see our CONTRIBUTING for workflow.

Keywords

FAQs

Package last updated on 28 Feb 2024

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