Code Monkey home page Code Monkey logo

sketch-palette-generator's Introduction

Sketch Palette Generator

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

Why?

Defining a colour palette in JSON makes it easy to share colours between Sketch files and developers. The JSON file can easily 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

sketch-palette-generator's People

Contributors

timonvs avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.