8.2.0 • Published 2 months ago

@waystone/color v8.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@waystone/color

A set of color utilities used by the @waystone/* design system.

Getting Started

# npm
npm install @waystone/color

# yarn
yarn add @waystone/color

What you get

The createColorScale method

Creates a tailwindcss style color scale based on the HEX color provided, and gives you autocomplete on the generated keys.

const colorScale = createColorScale({
  name: 'primary',
  value: '#00A8EB',
});

/**
 * The generated color scale
 * {
 *   'primary-50': '#EBF9FF',
 *   'primary-100': '#DBF5FF',
 *   'primary-200': '#ADE8FF',
 *   'primary-300': '#7AD9FF',
 *   'primary-400': '#33C5FF',
 *   'primary-500': '#00A8EB',
 *   'primary-600': '#009AD6',
 *   'primary-700': '#0087BD',
 *   'primary-800': '#00719E',
 *   'primary-900': '#005070',
 *   'primary-950': '#003347'
 * } *
 * /
8.2.0

2 months ago

8.1.4

2 months ago

8.1.3

2 months ago

8.1.2

3 months ago

8.1.1

3 months ago

8.1.0

9 months ago

8.0.0

11 months ago