GithubHelp home page GithubHelp logo

dorukgunes / zeplin-color-spaces-extension Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 318 KB

A Zeplin extension which generates HEX, CMYK, RGB, HSV, HSL color spaces when you inspect a layer

TypeScript 96.55% JavaScript 3.45%

zeplin-color-spaces-extension's Introduction

Color Spaces Extension

Generates HEX, CMYK, RGBA, HSV, HSL, OKLCH, LCH color spaces when you inspect a layer. You can freely disable color spaces you don't want to see in the extension output. 🎨

Output

Sample JSON output:

{
  "hex": "#2d9cdb",
  "rgba": "45 156 219 1",
  "cmyk": "79 29 0 14",
  "hsv": "201.7° 79.5 85.9",
  "hsl": "201.7° 70.7 51.8",
  "oklch": "66.07% 0.134 239.24",
  "lch": "60.53% 44.16 250.18"
}

Sample text output:

hex: #2d9cdb
rgba: 45 156 219 1
cmyk: 79 29 0 14
hsv: 201.7° 79.5 85.9
hsl: 201.7° 70.7 51.8
oklch: 66.07% 0.134 239.24
lch: 60.53% 44.16 250.18

TODO

  • Add tests & circleci
  • Add lint-staged & husky

Development

Color Spaces extension is developed using zem, Zeplin Extension Manager. zem is a command line tool that lets you quickly create and test extensions.

To learn more about zem, see documentation.

zeplin-color-spaces-extension's People

Contributors

dorukgunes avatar

Stargazers

 avatar  avatar

Watchers

 avatar

zeplin-color-spaces-extension's Issues

Alpha channel is needed

For colors like “#00000080”, the alpha channel is ignored. Want to be able to have opacity of display, for example, "rgb": "0 0 0 0.5"

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.