Code Monkey home page Code Monkey logo

Comments (11)

andrewfiorillo avatar andrewfiorillo commented on June 9, 2024 3

Good news! In the forthcoming Sketch 53 release, support for naming colors will be added. So I will then be able to add the ability to save preset names with a palette.

from sketch-palettes.

andrewfiorillo avatar andrewfiorillo commented on June 9, 2024 3

Good news! This has now been implemented for the latest version of Sketch. Grab the latest version of the plugin to use it.

from sketch-palettes.

andrewfiorillo avatar andrewfiorillo commented on June 9, 2024 2

@chasemccoy sure. It's very similar to the previous format, it just adds a "name" key for each color, which is just a string. Below is an example. I've also attached the file.

{
  "compatibleVersion": "2.0",
  "pluginVersion": "2.21",
  "colors": [
    {
      "name": "Black",
      "red": 0,
      "green": 0,
      "blue": 0,
      "alpha": 1
    },
    {
      "name": "Dark Gray",
      "red": 0.5568627450980392,
      "green": 0.5568627450980392,
      "blue": 0.5764705882352941,
      "alpha": 1
    },
    {
      "name": "Light Gray",
      "red": 0.9372549019607843,
      "green": 0.9372549019607843,
      "blue": 0.9568627450980391,
      "alpha": 1
    },
    {
      "name": "White",
      "red": 1,
      "green": 1,
      "blue": 1,
      "alpha": 1
    },
    {
      "name": "Blue",
      "red": 0,
      "green": 0.4784313725490196,
      "blue": 1,
      "alpha": 1
    },
    {
      "name": "Green",
      "red": 0.2980392156862745,
      "green": 0.8509803921568627,
      "blue": 0.39215686274509803,
      "alpha": 1
    },
    {
      "name": "Yellow",
      "red": 1,
      "green": 0.8,
      "blue": 0,
      "alpha": 1
    },
    {
      "name": "Orange",
      "red": 1,
      "green": 0.5843137254901961,
      "blue": 0,
      "alpha": 1
    },
    {
      "name": "Red",
      "red": 1,
      "green": 0.1764705882352941,
      "blue": 0.3333333333333333,
      "alpha": 1
    }
  ],
  "gradients": [],
  "images": []
}

palette-with-names.zip

from sketch-palettes.

kaelig avatar kaelig commented on June 9, 2024 1

Great news! I'll be on the lookout for what format should be generated from our design tokens in order to support names.

from sketch-palettes.

Korotovsky-Taras avatar Korotovsky-Taras commented on June 9, 2024 1

sketch 58 not support this feature

from sketch-palettes.

guylepage3 avatar guylepage3 commented on June 9, 2024

+1 This would be extremely helpful.

from sketch-palettes.

nhellberg avatar nhellberg commented on June 9, 2024

That would be awesome. I just searched for a possibility to add names but couldn't find any solutions.

from sketch-palettes.

chasemccoy avatar chasemccoy commented on June 9, 2024

Me too for our design token library: https://github.com/sproutsocial/seeds-packets

from sketch-palettes.

guylepage3 avatar guylepage3 commented on June 9, 2024

Awesome news!!

from sketch-palettes.

chasemccoy avatar chasemccoy commented on June 9, 2024

@andrewfiorillo Is there an example anywhere of the format we need to use for this?

from sketch-palettes.

chasemccoy avatar chasemccoy commented on June 9, 2024

@andrewfiorillo Thanks so much!

from sketch-palettes.

Related Issues (20)

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.