trb-luma-shades

0.0.2 • Public • Published

iterative color shade generator

tailwind.config.js

const { shadesPreset, shadesConfig, shades } = require('./trb-luma-shades')

module.exports = {
  prefix: '',
  important: false,
  separator: ':',
  theme: {
    colors: {
      accent: shades('#ff9900', {
        ...shadesConfig,
        420: { min: 0.38, max: 0.41 },
        500: { min: 0.23, max: 0.29 },
        base: { min: 0.7, max: 0.75 },
      }),
      brand: { ...shadesPreset('#ff9900'), base: '#ff9900' },
      rad: shadesPreset('#e53e3e'),
      
      // grey: {
      // ... 
    }
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i trb-luma-shades

Weekly Downloads

1

Version

0.0.2

License

ISC

Unpacked Size

5.38 kB

Total Files

4

Last publish

Collaborators

  • gcoda