Package Exports
- open-color
- open-color/open-color.css
- open-color/open-color.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (open-color) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Open color
Open color is a color scheme for UI design. You can use it for font, background, border, etc. It contains a gray and twelve colors. Open color is provided as CSS, SCSS, LESS, Stylus, Adobe library, Photoshop/Illustrator swatches and Sketch palette.
Note
- All the color is tested on deuteranopia and protanopia mode. The process will soon be published in the article.
- The colors are subject to change in the future. Thus, using an Open color as a main identity color is not recommended.
Available colors
- Gray
- Red
- Pink
- Grape
- Violet
- Indigo
- Blue
- Cyan
- Teal
- Green
- Lime
- Yellow
- Orange
Installation
$ npm install open-colorVariable 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-7Example 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.lessopen-color.scssopen-color.stylopen-color.cssdocs/_config.ymldocs/_sass/_open-color.scssdocs/asset/download/open-color_*.*.*.acodocs/asset/download/open-color_*.*.*.asedocs/asset/download/open-color_*.*.*.sketchpalette- Adobe library (admin rights)
Version number
package.jsonopen-color.lessopen-color.scssopen-color.stylopen-color.cssdocs/_config.ymldocs/_sass/_open-color.scssdocs/asset/download/open-color_*.*.*.acodocs/asset/download/open-color_*.*.*.asedocs/asset/download/open-color_*.*.*.sketchpalette- Adobe library (admin rights)
Document
README.mddocs/documents.html
Introduction
README.mddocs/_includes/introduction.htmldocs/documents.html