@therobot/luma-shades

0.0.3 • Public • Published

iterative color shade generator

tailwind.config.js

const { shadesPreset, shadesConfig, shades } = require('@therobot/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: {
      // ... 
    }
  }
}

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @therobot/luma-shades

    Weekly Downloads

    0

    Version

    0.0.3

    License

    ISC

    Unpacked Size

    3.83 kB

    Total Files

    3

    Last publish

    Collaborators

    • gcoda