JSPM

palatable

1.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q22926F
    • License MIT

    Automatically generate CSS color, background-color, and border-color utilities based on an array of color values

    Package Exports

    • palatable

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (palatable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    palatable

    Generate CSS color, background-color, and border-color utilities based on an array of color values

    npm install palatable
    var palatable = require('palatable');
    var primary = 
    var primary = palatable({ colors: ['#f00', '#008000', '#00f'] });

    Results in:

    /*
    
      colors
    
    */
    
    .red { color: #f00; }
    .green { color: #008000; }
    .blue { color: #00f; }
    
    .bg-red { background-color: #f00; }
    .bg-green { background-color: #008000; }
    .bg-blue { background-color: #00f; }
    
    .border-red { border-color: #f00; }
    .border-green { border-color: #008000; }
    .border-blue { border-color: #00f; }