All Projects → bugsnag → Chromatic Sass

bugsnag / Chromatic Sass

Licence: mit
Advanced color manipulation for node sass

Programming Languages

coffeescript
4710 projects

Projects that are alternatives of or similar to Chromatic Sass

Minelab
GitLab inspired Sass theme for Redmine 2.5.x using Font Awesome, with support for Redmine CRM plugins.
Stars: ✭ 129 (-7.86%)
Mutual labels:  sass
Basis
A lightweight responsive Sass/CSS framework based on flexible box.
Stars: ✭ 133 (-5%)
Mutual labels:  sass
Glup
Some of the gulp tutorial -《gulp笔记》
Stars: ✭ 136 (-2.86%)
Mutual labels:  sass
Echat
基于Vue的点对点聊天项目
Stars: ✭ 130 (-7.14%)
Mutual labels:  sass
React Shopping Cart
🛍️ Simple ecommerce cart application built with React Redux
Stars: ✭ 1,808 (+1191.43%)
Mutual labels:  sass
Awesome Vulnerable
A curated list of VULNERABLE APPS and SYSTEMS which can be used as PENETRATION TESTING PRACTICE LAB.
Stars: ✭ 133 (-5%)
Mutual labels:  lab
React Native Css Gradient
React Native css gradients - react-native-linear-gradient with css gradient support
Stars: ✭ 129 (-7.86%)
Mutual labels:  gradients
Musubii
Simple CSS Framework for JP
Stars: ✭ 138 (-1.43%)
Mutual labels:  sass
Mixins
sass mixins
Stars: ✭ 132 (-5.71%)
Mutual labels:  sass
Monitaure
🔔 A server uptime monitoring progressive web application - NO LONGER MAINTAINED
Stars: ✭ 135 (-3.57%)
Mutual labels:  sass
Sindresorhus.github.com
Personal website of Sindre Sorhus
Stars: ✭ 130 (-7.14%)
Mutual labels:  sass
Instapack
All-in-one TypeScript and Sass compiler for web applications! 📦 🚀
Stars: ✭ 131 (-6.43%)
Mutual labels:  sass
Gulp Starter Kit
A simple Gulp 4 Starter Kit for modern web development.
Stars: ✭ 134 (-4.29%)
Mutual labels:  sass
Css Progress Wizard
[NOT MAINTAINED] A pure flexbox+sass progress indicator
Stars: ✭ 129 (-7.86%)
Mutual labels:  sass
Shards Ui
🎨Shards is a beautiful & modern Bootstrap 4 UI kit packed with extra templates and components.
Stars: ✭ 1,718 (+1127.14%)
Mutual labels:  sass
Webpack Starter
✨ A lightweight foundation for your next webpack based frontend project.
Stars: ✭ 1,745 (+1146.43%)
Mutual labels:  sass
Jekyll Sass Converter
A Sass converter for Jekyll.
Stars: ✭ 133 (-5%)
Mutual labels:  sass
163music
🎵163 music web app built with Vue 2.6, server side render, webpack 4
Stars: ✭ 139 (-0.71%)
Mutual labels:  sass
Basix Admin
Get Free and Premium Vue.js Bootstrap v4 Admin Dashboard Templates
Stars: ✭ 138 (-1.43%)
Mutual labels:  sass
Dev Toolkit
Universal Development Toolkit for Javascript People
Stars: ✭ 134 (-4.29%)
Mutual labels:  sass

Chromatic

Advanced color manipulation for node-sass. Read the API docs ›

Quick start

Chromatic is a node-sass wrapper around chroma.js with a few Sass-specific additions.

Here are a few things Chromatic can do for you:

  • Create perceptually uniform gradients using the conventional CSS3 linear-gradient syntax
  • Procedurally generate aesthetically pleasing color scales
  • Define colors in a wide range of color spaces
  • Analyze and manipulate colors

Because of it's ability to support the LAB color space, Chromatic's color manipulation abilities can act as drop-in improvements for Sass's native color manipulation functions such as darken, saturate, and mix.

Install

Install chromatic via NPM.

npm install chromatic-sass

Usage

To use Chromatic, provide it in your node-sass configuration.

var sass = require "node-sass"
var chromatic = require "chromatic-sass"

sass.render({
  file: scss_filename,
  functions: chromatic
}, function(err, result) { /*...*/ });

Chromatic returns an object defining custom functions that can be used with any node-sass build system. To provide your own custom javascript Sass functions alongside chromatic, merge chromatic with your custom functions object before providing it in your node-sass configuration.

var _ = require "lodash";
var myFunction = {
    'echoString($str)': function(str) {
      return new sass.types.String(str);
    }
  };
var sassFunctions = _.merge(chromatic, myFunction);

/*...*/

Utilize Chromatic functions in your stylesheets as you would any other Sass function:

.element {
  background-image: chromatic-gradient(to right, blue, red);
}

Build

To compile the coffee-script source, npm install, then:

npm run build

Author

Chromatic is written by Max Luster

License

Released under MIT 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].