mat-sketch-palette
v1.0.1
Published
Builds a Sketch file containing symbols & layer styles based on a Material Design colour palette file
Downloads
3
Maintainers
Readme
Material Design colour palette generator for Sketch
Builds a Sketch file containing symbols & layer styles based on a Material Design colour palette file.
Example output generated from this palette.
System requirements
- Node.js - tested with v12 & v14
Running
- Create a colour palette using the Material Design Palette Generator
- Export as Android XML, save to
colours.xml
- Run:
npx mat-sketch-palette
- Open
colours.sketch
Command line options
npx mat-sketch-palette [options]
| Option | Description | | ----------------- | ------------------------------------------------------- | | --input=filename | The input fileDefault: colours.xmlAlias: -i | | --output=filename | The output fileDefault: colours.sketchAlias: -o | | --quiet | Don't print anythingDefault: falseAlias: -q |
TODO
- Support other input & output formats
- More flexible palette name/colour ID detection
- GUI (Sketch plugin? Desktop app?)