adobe-swatch-exchange

Encode/decode color palettes in Adobe's .ase format

Usage no npm install needed!

<script type="module">
  import adobeSwatchExchange from 'https://cdn.skypack.dev/adobe-swatch-exchange';
</script>

README

adobe-swatch-exchange experimental

Encode/decode color palettes in Adobe's .ase format.

Usage

adobe-swatch-exchange

ase.decode(buffer)

Returns a JSON object representing the contents of the .ase file, for example:

{
  "version": "1.0",
  "groups": [],
  "colors": [{
    "name": "RGB Red",
    "model": "RGB",
    "color": [1, 0, 0],
    "type": "global"
  }, {
    "name": "RGB Yellow",
    "model": "RGB",
    "color": [1, 1, 0],
    "type": "global"
  }]
}

License

MIT. See LICENSE.md for details.