All Projects โ†’ siimple โ†’ colors

siimple / colors

Licence: MIT license
๐ŸŽจ An elegant and minimalistic color palette for UI design.

Programming Languages

CSS
56736 projects
HTML
75241 projects
Makefile
30231 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to colors

Colorwaver
๐ŸŽจ An app to detect color palettes in the real world - powered by VisionCamera
Stars: โœญ 365 (+1821.05%)
Mutual labels:  palette, colors
Nord
An arctic, north-bluish color palette.
Stars: โœญ 4,816 (+25247.37%)
Mutual labels:  palette, colors
emerald
emerald - simple color palette tool
Stars: โœญ 23 (+21.05%)
Mutual labels:  palette, colors
colorgrab
A cross-platform color picker
Stars: โœญ 80 (+321.05%)
Mutual labels:  palette, colors
Material Palette Generator
๐ŸŽจ Get perfect Material Design color palettes from any hex color.
Stars: โœญ 114 (+500%)
Mutual labels:  palette, colors
pantone-colors
Hex values of all 2310 Pantone colors
Stars: โœญ 147 (+673.68%)
Mutual labels:  palette, colors
Image Palette
Generate a WCAG compliant color theme from any image
Stars: โœญ 331 (+1642.11%)
Mutual labels:  palette, colors
anypalette.js
๐ŸŽจ Read/write all color palette file formats โค๐Ÿงก๐Ÿ’›๐Ÿ’š๐Ÿ’™๐Ÿ’œ
Stars: โœญ 41 (+115.79%)
Mutual labels:  palette, colors
Color Names
Large list of handpicked color names ๐ŸŒˆ
Stars: โœญ 1,198 (+6205.26%)
Mutual labels:  palette, colors
Color.js
Extract colors from an image (0.75 KB) ๐ŸŽจ
Stars: โœญ 42 (+121.05%)
Mutual labels:  palette, colors
siimple
The minimal and themeable CSS toolkit for flat and clean designs
Stars: โœญ 525 (+2663.16%)
Mutual labels:  css-framework, siimple
tailwind-css-palette-generator
10-color Palette Generator and API for Tailwind CSS
Stars: โœญ 206 (+984.21%)
Mutual labels:  palette, colors
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: โœญ 271 (+1326.32%)
Mutual labels:  palette, colors
Iroiro
Beautiful Colors Lookup in CLI
Stars: โœญ 470 (+2373.68%)
Mutual labels:  palette, colors
Color Thief Java
Grabs the dominant color or a representative color palette from an image. A very fast Java port of Lokesh Dhakar's JavaScript version.
Stars: โœญ 178 (+836.84%)
Mutual labels:  palette, colors
Webgradients
A curated collection of splendid gradients made in CSS3, .sketch and .PSD formats.
Stars: โœญ 2,197 (+11463.16%)
Mutual labels:  palette, colors
bootcatch-themes
๐Ÿ”ฅ Bootcatch Themes is an open-source library of free Custom Bootstrap Themes.
Stars: โœญ 22 (+15.79%)
Mutual labels:  css-framework
pollen
The CSS variables build system
Stars: โœญ 754 (+3868.42%)
Mutual labels:  css-framework
Ciapre.tmTheme
Ciapre - an easy-on-the-eyes Sublime Text/TextMate color scheme.
Stars: โœญ 63 (+231.58%)
Mutual labels:  palette
boba
A lightweight, modular CSS framework.
Stars: โœญ 47 (+147.37%)
Mutual labels:  css-framework

@siimple/colors

npm npm devDependency Status jsdelivr npm

siimple colors is an elegant and minimalistic color palette for UI design.

Getting started

siimple colors can be installed using npm:

$ npm install --save @siimple/colors

Or imported in your HTML files using a CDN.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@siimple/[email protected]/dist/siimple-colors.min.css">

Documentation

We are working on a new documentation for v1.0.0.

Usage

Using CSS variables:

You can apply the color in your CSS styles simply by using our CSS variables:

.red-text {
    color: var(--siimple-red);
}

.blue-text {
    color: var(--siimple-blue-light);
}

.green-bg {
    background-color: var(--siimple-green-dark);
}

Using CSS selectors

Use .siimple--color-{COLOR} class to change the text color, or .siimple--bg-{COLOR} to change the background color. Optionally, you can use a lighten or darken color using .siimple--color{COLOR}-{LIGHTNESS} class for changing the text color, and .siimple--bg-{COLOR}-{LIGHTNESS} for changing the background color.

<span class="siimple--color-red">Text with red color</span>
<span class="siimple--bg-blue-dark siimple--color-white">White text with dark blue color</span>

Using SASS/SCSS

Using the siimple-color function defined in scss/functions.scss is the easiest way to load our colors in your SASS/SCSS files. This function will return a string with the hex value of the desired color, and gets two arguments:

  • COLOR: a string with the desired color.
  • LIGHTNESS (optionally): a string with the desired lightness variant of the color. If not provided, the function will return the base color.
@import "@siimple/colors/scss/functions.scss";

.blue-text {
    color: siimple-color("blue");
}
.red-text {
    color: siimple-color("red", "extra-dark");
}
.green-bg {
    background-color: siimple-color("green", "light");
}

You can also use the colors variables defined in scss/colors.scss. Each color has a variable with the following formats:

  • $siimple-{COLOR} for the base color.
  • $siimple-{COLOR}-{LIGHTNESS} for the darken and lighten variants of the color.
@import "siimple-colors/scss/colors.scss";

.blue-text {
    color: $siimple-blue;
}
.red-text {
    color: $siimple-red-extra-dark;
}
.green-bg {
    background-color: $siimple-green-light;
}

License

Code and documentation ยฉ 2018 the siimple team. The code is released under the MIT License and the documentation is released under the Creative Commons CC BY 4.0 License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].