New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-swatch-names

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-swatch-names

Swatch-names automatically and consistently names Photoshop swatches to be shared among frontend developers and designers. Exports colors to SASS variables and JSON for use in code.

  • 1.1.0
  • Source
  • npm
  • Socket score

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

Swatch Names

GitHub release

A node tool to save the hassle of naming each color in your project manually.

Swatch-names automatically and consistently names Photoshop color swatches to be shared among frontend developers and designers. Exports colors to SASS and JS variables for use in code. The tool reads standard Photoshop .aco swatch files finds a unique color name for every swatch entry and saves the resulting color palette as an .aco file. This file can be loaded into Photoshop's Swatches so developers and designers use the same color names.

Install

$ npm install node-swatch-names --save-dev

Usage

Start the CLI and progress step-by-step with swatch conversion or setup:

$ ./node_modules/.bin/swatch-names

Specify a swatch file and an output for the result:

$ ./node_modules/.bin/swatch-names --swatch path/to/source-swatch.aco --output path/to/result-swatch.aco

Specify a swatch file, an output and SCSS/JS file to be generated:

$ ./node_modules/.bin/swatch-names --swatch path/to/source-swatch.aco --output path/to/result-swatch.aco --scss path/to/colors.scss --js path/to/colors.js

Run file watcher initialization using npm-watch:

$ ./node_modules/.bin/swatch-names --init

Acknowledgements

This tool was inspired by the following great projects:

Contributing

PRs are much appreciated!

Use npm run develop while coding and npm run test to run unit tests.

License

MIT © Marton Czebe

Keywords

FAQs

Package last updated on 31 Oct 2017

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