Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@thebespokepixel/palette2oco

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thebespokepixel/palette2oco

Convert directories of Sip, JSON and ASE palette files to Open Color

  • 3.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-95.24%
Maintainers
1
Weekly downloads
 
Created
Source

palette2oco converter

Load or convert files or directories of various palette formats to structured Open Color data or .oco files.

Publishing Status

npm Libraries.io
Travis Rollup

Development Status

Travis Libraries.io
Snyk Code-Climate Code-Climate Coverage

Documentation/Help

Inch.io Twitter

Usage

Load structured palette data from various tools into Open Color format.
import {paletteReader, paletteWriter, oco2Object, oco2Vars} from 'palette2oco'

paletteReader(pathRoot).load(pathArray)
  .then(palette => palette.render(ocoPath))
  .then(oco => paletteWriter(destinationFile, oco))
  .catch(err => {
    console.error(err)
  })

Convert palette data from a variety of sources into Open Color .oco format.

Allows structured directories of pallette data to be converted into nested oco palette data.

Formats supported:
  • Sip (http://sipapp.io): Supports .sippalette and .json exports.

  • Abobe Swatch Exchange (ASE): Full support of RGB, CMYK and Lab colorspaces.

  • Vanilla JSON: File signature must match the following...

{
  "name" : "Palette name",
  "colors" : [
    {
      name: "Color name",
      red: (0.0 - 1.0 | 0 - 255)
      green: (0.0 - 1.0 | 0 - 255)
      blue: (0.0 - 1.0 | 0 - 255)
      alpha: (0.0 - 1.0 | 0 - 255)
    }
    ...
  ]
}

Documentation

Full documentation can be found at https://thebespokepixel.github.io/palette2oco/

Keywords

FAQs

Package last updated on 06 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc