Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

colors.css

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colors.css - npm Package Compare versions

Comparing version 1.0.0 to 2.0.1

.npmignore

63

gulpfile.js

@@ -6,5 +6,2 @@ // Load plugins

watch = require('gulp-watch'),
lr = require('tiny-lr'),
server = lr(),
livereload = require('gulp-livereload'),
prefix = require('gulp-autoprefixer'),

@@ -15,14 +12,9 @@ minifyCSS = require('gulp-minify-css'),

stylus = require('gulp-stylus'),
csslint = require('gulp-csslint');
rename = require('gulp-rename'),
size = require('gulp-size'),
csslint = require('gulp-csslint')
browserSync = require('browser-sync'),
browserReload = browserSync.reload;
// Task to minify all css files in the css directory
gulp.task('minify', function(){
gulp.src('./css/*.css')
.pipe(minifyCSS({keepSpecialComments: 0}))
.pipe(gulp.dest('./css/'));
});
// Use csslint without box-sizing or compatible vendor prefixes (these

@@ -42,13 +34,23 @@ // don't seem to be kept up to date on what to yell about)

// Task that compiles scss files down to good old css
gulp.task('sass', function(){
gulp.src('./sass/*.scss')
gulp.src('./sass/colors.scss')
.pipe(watch(function(files) {
return files.pipe(sass({includePaths: ['./sass/']}))
return files.pipe(sass())
.pipe(prefix())
.pipe(gulp.dest('./css/'))
.pipe(livereload(server));
.pipe(size({gzip: true, showFiles: true, title:'unminified colors.css'}))
.pipe(gulp.dest('css'))
.pipe(browserSync.reload({stream:true}));
}));
});
// Task to minify colors.css then rename as colors.min.css
gulp.task('minify', function(){
gulp.src('./css/colors.css')
.pipe(minifyCSS())
.pipe(size({gzip: true, showFiles: true, title:'minified colors.css'}))
.pipe(rename('colors.min.css'))
.pipe(gulp.dest('./css/'));
});
// Task that compiles css using the myth processor

@@ -58,5 +60,7 @@

gulp.src('./myth/*.css')
.pipe(myth())
.pipe(watch(function(files) {
return files.pipe(myth())
.pipe(prefix())
.pipe(gulp.dest('./css/'));
}));
});

@@ -78,7 +82,20 @@

.pipe(prefix())
.pipe(gulp.dest('./css/'))
.pipe(livereload(server));
.pipe(gulp.dest('./css/'));
}));
});
// Initialize browser-sync which starts a static server also allows for
// browsers to reload on filesave
gulp.task('browser-sync', function() {
browserSync.init(null, {
server: {
baseDir: "./"
}
});
});
gulp.task('bs-reload', function () {
browserSync.reload();
});
/*

@@ -96,8 +113,6 @@ DEFAULT TASK

gulp.task('default', function(){
server.listen(35729, function (err) {
gulp.watch(['./sass/*.scss'], function(event) {
gulp.watch(['./sass/colors.scss'], function(event) {
gulp.run('sass', 'lint');
});
});
});

@@ -19,2 +19,9 @@ var colors = {

silver: "#ddd"
};
};
if(
typeof modules !== "undefined" &&
typeof modules.exports !== "undefined"
){
modules.exports = colors;
}
{
"name": "colors.css",
"version": "1.0.0",
"version": "2.0.1",
"main": "js/colors.js",
"homepage": "http://clrs.cc",

@@ -18,22 +19,22 @@ "description": "Better colors for the web. A collection of skin classes for faster prototyping and nicer looking sites.",

"devDependencies": {
"gulp": "~3.5.5",
"gulp-livereload": "~0.2.0",
"gulp-minify-css": "~0.2.0",
"tiny-lr": "0.0.5",
"gulp-util": "~2.2.12",
"gulp-watch": "~0.5.0",
"browser-sync": "^1.1.2",
"gulp": "~3.8.2",
"gulp-autoprefixer": "0.0.7",
"gulp-csslint": "~0.1.3",
"gulp-sass": "~0.4.1",
"gulp-minify-css": "~0.3.5",
"gulp-myth": "~0.1.1",
"gulp-rename": "^1.2.0",
"gulp-sass": "~0.7.2",
"gulp-size": "^0.4.0",
"gulp-stylus": "0.0.11",
"gulp-myth": "~0.1.1",
"gulp-autoprefixer": "0.0.5"
"gulp-util": "~2.2.12",
"gulp-watch": "~0.6.8"
},
"repository" :
{
"type" : "git",
"url" : "http://github.com/mrmrs/colors.git"
"repository": {
"type": "git",
"url": "http://github.com/mrmrs/colors.git"
},
"bugs": {
"url" : "http://github.com/mrmrs/colors/issues",
"email" : "hi@mrmrs.cc"
"url": "http://github.com/mrmrs/colors/issues",
"email": "hi@mrmrs.cc"
},

@@ -46,9 +47,31 @@ "author": {

"contributors": [
{ "name": "@mrmrs", "email": "hi@mrmrs.cc" },
{ "name": "@ilanbiala"},
{ "name": "@kdrdgn", "email": "hi@mrmrs.cc", "url": "http://www.twitter.com/kdrdgn" },
{ "name": "@tenmilestereo", "url": "http://www.lewiscowper.com" },
{ "name": "@nschonni", "email": "nschonni@gmail.com", "url": "http://wet-boew.github.io/" },
{ "name": "SiR-DanieL" },
{ "name": "@enyo", "email": "m@tias.me", "url": "http://colorglare.com" }
{
"name": "@mrmrs",
"email": "hi@mrmrs.cc"
},
{
"name": "@ilanbiala"
},
{
"name": "@kdrdgn",
"email": "hi@mrmrs.cc",
"url": "http://www.twitter.com/kdrdgn"
},
{
"name": "@tenmilestereo",
"url": "http://www.lewiscowper.com"
},
{
"name": "@nschonni",
"email": "nschonni@gmail.com",
"url": "http://wet-boew.github.io/"
},
{
"name": "SiR-DanieL"
},
{
"name": "@enyo",
"email": "m@tias.me",
"url": "http://colorglare.com"
}
],

@@ -58,3 +81,3 @@ "engines": {

},
"license" : "MIT"
"license": "MIT"
}

@@ -10,4 +10,18 @@ # COLORS

A simple color palette for the web. Let's be honest, out of the box, the color strings that css provides aren't... the tops.
This is a set of sass/less/stylus/css variables and css classes that can help fix that.
This is a set of sass/less/stylus/css variables and css classes that can help fix that with just 647B of minified and gzipped css.
(Uncompressed is just 888B)
colors.css provides utilities to apply backgrounds, text-color, border colors for both html and svg elements.
# Example
```scss
.blue { color: $blue; }
.bg-blue { background-color: $blue; }
.border--blue { border-color: $blue; }
.fill-blue { fill: $blue; }
.stroke-blue { stroke: $blue; }
```
## Install colors.css

@@ -17,12 +31,15 @@

* Download a zip from this page
* Clone / fork the repo through git
Download a zip from this page
Clone / fork the repo through git
```bash
git clone git@github.com:mrmrs/colors.git
```
* Install through npm
Install [through npm](https://www.npmjs.org/package/colors.css)
```bash
npm install colors.css
npm install --save-dev colors.css
```
* Install the ruby gem
Install the [ruby gem](http://rubygems.org/gems/clrs)
```

@@ -32,4 +49,2 @@ gem install clrs

### Using the css

@@ -82,3 +97,3 @@ Simply copy colors.css to your css directory and include the file like so in the head of your html document

If you would like to minify ./css/colors.css you can just run
If you would like to minify ./css/colors.css to .css/colors.min.css you can just run
```bash

@@ -91,6 +106,2 @@ gulp minify

If you are compiling less and want to run autoprefixer - you can run that on compiled css with
```
```
## Directory structure

@@ -112,3 +123,2 @@ ```

├── less
│   ├── _links.less
│   ├── _skins.less

@@ -121,3 +131,2 @@ │   ├── _variables.less

├── sass
│   ├── _links.scss
│   ├── _skins.scss

@@ -129,3 +138,2 @@ │   ├── _variables.scss

├── colors.styl
├── links.styl
├── skins.styl

@@ -132,0 +140,0 @@ └── variables.styl

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc