Back to rankings

yeun/open-color

Handlebarsyeun.github.io/open-color/

Color scheme for UI design.

colorcolor-schemescssadobe-libraryswatchesstylus
Star Growth
Stars
5.5k
Forks
250
Weekly Growth
Issues
16
2k4k
Sep 2016Dec 2019Apr 2023Jul 2026
README

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

Related repositories
chalk/chalk

🖍 Terminal string styling done right

JavaScriptnpmMIT Licenseansi-escape-codesjavascript
23.3k1k
eza-community/eza

A modern alternative to ls

Rustcrates.ioEuropean Union Public License 1.2colorcommand-line
eza.rocks
22.7k478
peass-ng/PEASS-ng

PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)

C#Otherenumerationlinux
book.hacktricks.xyz
20.2k3.4k
lsd-rs/lsd

The next gen ls command

Rustcrates.ioApache License 2.0lsrust
16.1k506
fatih/color

Color package for Go (golang)

GoGo ModulesMIT Licensegolanggo
pkg.go.dev/github.com/fatih/color
8k642
rebassjs/rebass

:atom_symbol: React primitive UI components built with styled-system.

JavaScriptnpmMIT Licensejavascriptreact
rebassjs.org
7.9k634
system-ui/theme-ui

Build consistent, themeable React apps based on constraint-based design principles

TypeScriptnpmMIT Licensestyletheme
theme-ui.com
5.4k662
bgrins/TinyColor

Fast, small color manipulation and conversion for JavaScript

JavaScriptnpmMIT Licensecolorjavascript
bgrins.github.io/TinyColor/
5.2k436
MuiseDestiny/zotero-style

Ethereal Style for Zotero

JavaScriptnpmGNU Affero General Public License v3.0zoterozotero-addon
5.1k161
athityakumar/colorls

A Ruby gem that beautifies the terminal's ls command, with color and font-awesome icons. :tada:

RubyRubyGemsMIT Licensecoloricons
5.1k397
simonwep/pickr

🎨 Pickr - A simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!

JavaScriptnpmMIT Licensecolor-pickercolorpicker
simonwep.github.io/pickr
4.5k291
crossterm-rs/crossterm

Cross platform terminal library rust

Rustcrates.ioMIT Licensecross-platformterminal
4.2k385