open-color

Color scheme for UI design.

Github星跟踪图

Open color

Open color is an open-source color scheme optimized for UI like font, background, border, etc.

Goals

  • All colors shall have adequate use
  • Provide general color for UI design
  • All colors will be beautiful in itself and harmonious
  • At the same brightness level, the perceived brightness will be constant

Note

  • The colors are subject to change in the future. Thus, using an Open color as a main identity color is not recommended.

Available Colors

available colors

Installation

$ npm install open-color
$ bower install open-color

Currently Supported Formats

css, sass, less, styl, json, svg, tex, oco(Open Color Tools), rcpx(PowerPaint), sketchpalette(Sketch), inkscape, aco, clr

Variable Convention

Sass, SCSS

$oc-(color)-(number)

Less

@oc-(color)-(number)

Stylus

oc-(color)-(number)

CSS

--oc-(color)-(number)

  • oc: Abbreviation for Open color
  • (color): Color name such as gray, red, lime, etc.
  • (number): 0 to 9. Brightness spectrum.

How to Use

Import the file to your project and use the variables.

Example for Sass, SCSS

@import 'path/open-color';

.body {
  background-color: $oc-gray-0;
  color: $oc-gray-7;
}

a {
  color: $oc-teal-7;

  &:hover,
  &:focus,
  &:active {
    color: $oc-indigo-7;
  }
}

Example for Less

@import 'path/open-color';

.body {
  background-color: @oc-gray-0;
  color: @oc-gray-7;
}

a {
  color: @oc-teal-7;

  &:hover,
  &:focus,
  &:active {
    color: @oc-indigo-7;
  }
}

Example for Stylus

@import 'path/open-color.styl'

.body
  background-color: oc-gray-0
  color: oc-gray-7

a
  color: oc-teal-7

  &:hover
  &:focus
  &:active
    color: oc-indigo-7

Example for CSS

@import 'path/open-color.css';

.body {
  background-color: var(--oc-gray-0);
  color: var(--oc-gray-7);
}

a {
  color: var(--oc-teal-7);
}

a:hover,
a:focus,
a:active {
  color: var(--oc-indigo-7);
}

Contribution

Check out the list below.

Color Value

  • open-color.json
    • Change and $ npm run compile-templates
  • docs/asset/download/open-color_*.*.*.aco
  • docs/asset/download/open-color_*.*.*.clr
  • Adobe library (admin rights)

Version Number

  • package.json
  • docs/asset/download/open-color_*.*.*.aco
  • Adobe library (admin rights)

Document

  • README.md
  • docs/documents.html

Introduction

  • README.md

主要指标

概览
名称与所有者yeun/open-color
主编程语言Handlebars
编程语言CSS (语言数: 9)
平台
许可证MIT License
所有者活动
创建于2016-08-06 16:10:41
推送于2023-12-10 16:29:40
最后一次提交2022-08-02 20:31:41
发布数19
最新版本名称v1.9.1 (发布于 2021-08-18 01:45:25)
第一版名称v1.1.0 (发布于 2016-09-21 22:58:41)
用户参与
星数5.4k
关注者数82
派生数246
提交数242
已启用问题?
问题数69
打开的问题数16
拉请求数50
打开的拉请求数9
关闭的拉请求数9
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?