• Stars
    star
    145
  • Rank 246,624 (Top 5 %)
  • Language
    JavaScript
  • Created about 7 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Output a JSON colour palette to Sketch 💎

icon
Sketch Palette Generator

Contact

This plugin allows you to output a colour palette defined in JSON to Sketch. This plugin is heavily inspired by the Material Design colour palette.

Screenshot

📹 Watch demo

Introduction

Sharing colour palettes between different Sketch files or with developers and keeping everything and everyone in sync can be a tedious process. That's why we at Awkward created Sketch Palette Generator. Sketch Palette Generator enables designers to define a colour palette in a JSON file and then easily restore them in different Sketch files. JSON files also have the inherent benefit that they can be used by developers (e.g. JSON can be converted to Sass variables using json-sass)

Install

  1. Download the ZIP file and unzip
  2. Open sketch-palette-generator.sketchplugin

How to use

  1. Download and install the Sketch plugin

  2. Define your colour palette in a JSON file

The colour palette should be defined like the Material Design colour palette. The example below contains two colour groups with each fourteen accents. A colour group can contain any number of accents, the only requirement is that every group should contain an accent with the key 500, as this one is used as the primary colour.

{
  "Red": {
    "50": "#FFEBEE",
    "100": "#FFCDD2",
    "200": "#EF9A9A",
    "300": "#E57373",
    "400": "#EF5350",
    "500": "#F44336",
    "600": "#E53935",
    "700": "#D32F2F",
    "800": "#C62828",
    "900": "#B71C1C",
    "A100": "#FF8A80",
    "A200": "#FF5252",
    "A400": "#FF1744",
    "A700": "#D50000"
  },
  "Indigo": {
    "50": "#E8EAF6",
    "100": "#C5CAE9",
    "200": "#9FA8DA",
    "300": "#7986CB",
    "400": "#5C6BC0",
    "500": "#3F51B5",
    "600": "#3949AB",
    "700": "#303F9F",
    "800": "#283593",
    "900": "#1A237E",
    "A100": "#8C9EFF",
    "A200": "#536DFE",
    "A400": "#3D5AFE",
    "A700": "#304FFE"
  }
}
  1. Open Sketch and create a new page (⚠️ important, because the plugin will override your current page)

  2. Click Plugins > Palette generator

  3. Select the JSON file created earlier

  4. Done! You should now get something like this:

Screenshot

More Repositories

1

Alembic

⚗️ Extract a color palette from Sketch images
JavaScript
568
star
2

backbone.modal

A plugin for Backbone.js that simplifies creating modals for your application.
JavaScript
361
star
3

beam

Beam: the open source Reddit client for iOS
Swift
269
star
4

Tatsi

A drop-in replacement for UIImagePickerController with the ability to select multiple images and/or videos
Swift
110
star
5

awesome-netherlands-events

🦄 Curated list of awesome Dutch (tech related) events
58
star
6

Ocarina

A library to get metadata and Open Graph information from URLs
Swift
38
star
7

Trekker

Trekker, easily combine and swap out multiple analytics services on iOS
Swift
24
star
8

backbone.genetics

A super small and simple plugin for Backbone.js to toggle features in your app for user management, A/B testing purposes and all things you’d like to enable for specific users and hide from others
CoffeeScript
14
star
9

AWKHelpers

A growing collection of UIKit and Foundation categories (helpers) we use at Awkward
Objective-C
10
star
10

serverless-plugin-slack

Notify Slack after deployments
JavaScript
7
star
11

slush-static-site

A slush generator for static websites
CSS
7
star
12

serverless-plugin-authorizer

Make authorization as simple as a boolean
JavaScript
5
star
13

react-simple-masonry

Simple masonry layout component for react
JavaScript
5
star
14

simple-dyno

ORM for AWS DynamoDB
JavaScript
4
star
15

github-enhancement-suite

Github enhance plugin for Google Chrome and Safari
JavaScript
4
star
16

ember-pods

Ember.js starter kit based on pods file structure
CoffeeScript
4
star
17

webpack-config-sketch-web

JavaScript
2
star
18

grunt-multi-stage-sourcemap

multi-level source map processing with grunt
JavaScript
1
star
19

sequelize-reassociate

A simple abstraction for Sequelize.js to relocate associated models if their parents ever were to be destroyed.
JavaScript
1
star
20

pinbook-api

API side of our pinbook hackathon idea
JavaScript
1
star
21

stripity_stripe

Elixir
1
star