Color scheme for UI design. — 5,534 https://yeun.github.io/open-color/
  • Handlebars 21.8%
  • JavaScript 20.3%
  • SCSS 13.3%
  • CSS 12.4%
  • Less 11%
  • Other 21.2%
Find a file
Garrett Watson 3a716ee1f5 Fix malapropism
The word `emphasize` makes more sense in this context than `empathize`.
2022-12-04 21:59:58 +09:00
.github Update FUNDING.yml 2019-06-03 01:50:58 +09:00
builder Run Build Script 2020-06-02 21:19:52 +02:00
docs Fix malapropism 2022-12-04 21:59:58 +09:00
templates Style fixes 2021-08-18 01:41:55 +09:00
tests Correct type definition for CJS 2019-07-24 12:13:18 +09:00
.gitignore Update .gitignore 2020-10-31 23:25:26 +02:00
.npmignore Update package included files 2017-03-11 19:44:49 +09:00
.travis.yml Add secure token / Fix bash script 2016-09-27 23:14:24 +09:00
bower.json Style fixes 2021-08-18 01:41:55 +09:00
build_release Feature: Added Support for Tailwind CSS 2021-06-27 14:31:39 +05:30
compile-templates.js Style fixes 2021-08-18 01:41:55 +09:00
CONTRIBUTING.md Add contributing docs 2016-11-11 21:01:51 +01:00
LICENSE Initial commit 2016-09-21 22:58:02 +09:00
open-color.css 1.9.1 2021-08-18 01:47:55 +09:00
open-color.d.ts 1.9.1 2021-08-18 01:47:55 +09:00
open-color.js 1.9.1 2021-08-18 01:47:55 +09:00
open-color.json Adjust hue of blue 2017-12-10 21:19:22 +09:00
open-color.less 1.9.1 2021-08-18 01:47:55 +09:00
open-color.oco 1.9.1 2021-08-18 01:47:55 +09:00
open-color.rcpx 1.9.1 2021-08-18 01:47:55 +09:00
open-color.scss 1.9.1 2021-08-18 01:47:55 +09:00
open-color.styl 1.9.1 2021-08-18 01:47:55 +09:00
open-color.tex 1.9.1 2021-08-18 01:47:55 +09:00
package-lock.json 1.9.1 2021-08-18 01:47:55 +09:00
package.json 1.9.1 2021-08-18 01:47:55 +09:00
README.md Add go bindings to README.md 2022-12-04 21:59:32 +09:00

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

or

$ bower install open-color

Currently Supported Formats, Language Environments, Libraries

CSS, Sass, Less, Stylus, JSON, SVG, TeX, Open Color Tools (.oco), PowerPaint (.rcpx), Sketch (.sketchpalette), Inkscape, aco, clr, Tailwind, TypeScript

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 Tailwind CSS

module.exports = {
  presets: [require("./open-color.js")],
  purge: [],
  mode: "jit",
  darkMode: false,
  theme: {
    extend: {},
  },
  variants: {
    extend: {},
  },
  plugins: [],
};

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);
}

Other Language Bindings