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

all-colors

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

all-colors

A collection of color palettes in JavaScript (RequireJS, CommonJS, and global) array and .txt format

  • 1.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

all-colors

A collection of color palettes in JavaScript (RequireJS, CommonJS, and global) array and .txt format

Usage

Global

Create a script tag for each color palette that you want to use:

<script src="bower_components/all-colors/lib/sites/ideaColorThemes/Tau Ceti/tauCeti.js"></script>
<script>
    console.log(window.allColors.ideaColorThemes.tauCeti); //[ '#295622', '#bbbbbb', '#333333', ... ]
</script>

Array(s) of colors will be created in the window.allColors.<site name>.<palette name> namespace.

CommonJS

var colors = require('all-colors');

console.log(colors.ideaColorThemes.tauCeti); //[ '#295622', '#bbbbbb', '#333333', ... ]

Every color palette array from every site will be created in the colors.<site name>.<palette name> namespace.

RequireJS

define(['all-colors'], function(colors) {
    console.log(colors.ideaColorThemes.tauCeti); //[ '#295622', '#bbbbbb', '#333333', ... ]
});

Every color palette array from every site will be created in the colors.<site name>.<palette name> namespace.

Installation

Npm

npm install all-colors --save

Bower

bower install all-colors --save

Keywords

FAQs

Package last updated on 01 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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