ISC License

项目介绍

petterheterjag/chromatic-sketch 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 ISC License 许可证,目前获得 438 个 Star、14 次 Fork。

仓库全名
petterheterjag/chromatic-sketch
开源许可证
ISC License
Star 数
438
Fork 数
14
未关闭 Issue
4

README 摘要

Chromatic Sketch Create good-looking and perceptually uniform gradients and color scales (using Chroma.js and the Lab color space) New in version 2.0.0 A proper UI that let's you preview and customize the gradient or color scale You can now use the Lch, HSL and RGB color modes in addition to Lab Support for colors with alpha Background I came across this blog post recently. It opened my eyes to the Lab color space,…

完整内容见 GitHub 原始 README 或本页 。

常见问题

chromatic-sketch 用什么语言开发?

主要使用 JavaScript 编写,采用 ISC License 许可证,目前有 438 个 Star。

chromatic-sketch 可以免费商用吗?

仓库采用 ISC License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 chromatic-sketch 的源码?

可以直接克隆仓库:git clone https://github.com/petterheterjag/chromatic-sketch.git,默认分支为 master;安装与运行步骤见仓库 README。

chromatic-sketch 最近还在维护吗?

仓库最近一次更新为 2018年8月24日,当前有 4 个未关闭 Issue;Star 数为 438,可作为社区活跃度的参考。

关于

Sketch plugin for creating good-looking and perceptually uniform gradients and color scales.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
484
价值分
268
活跃状态
活跃

语言占比

CSS
HTML
JavaScript

Release

README

Chromatic Sketch

Create good-looking and perceptually uniform gradients and color scales (using Chroma.js and the Lab color space)

intro

New in version 2.0.0

  • A proper UI that let’s you preview and customize the gradient or color scale
  • You can now use the Lch, HSL and RGB color modes in addition to Lab
  • Support for colors with alpha

Background

I came across this blog post recently. It opened my eyes to the Lab color space, and how you can use it to create perceptually uniform gradients and color scales with SASS. Chroma.js is the underlying library powering it. Check it out if you want a deeper understanding of the Lab color space and why it’s good for creating color scales. Basically, it’s a color space that, unlike RGB, was built to mirror the visual response of the human eye. That makes it very well suited for interpolating colors.

I thought this technique would be useful in design tools as well, and was kind of surprised that I couldn’t find any Sketch plugins that implemented it. So I created this :)

Usage

Chromatic Sketch -> Fix Gradient

This command will take the gradient of the selected shape and add new color stops to create a more aesthetically pleasing one.

Fix Gradient

Chromatic Sketch -> Create Color Scale

This command will create a scale between the fill colors of two selected shapes.

Create Color Scale

Install instructions

  1. Download .zip
  2. Extract contents
  3. Navigate into the extracted folder and open chromatic-sketch.sketchplugin
  4. Follow the on-screen prompts

Building from source

  1. Install dependencies: npm install
  2. Build plugin: npm run build

Created by

Petter Nilsson
Twitter
Website

License

ISC

评论

暂无评论