Sign In

splotch

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

splotch

Deside on a color scheme

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

Splotch

117 color schemes and 468 variations

Install

npm install splotch

Usage

1. Link to splotch on html page
<link rel="stylesheet" type="text/css" href="./node_modules/splotch/splotch.min.css">	
2. To use on the whole page
<body class"mint-1">
3. To use different varieties (each class has four variations)
<div class='mint-1'></div>
<div class='mint-2'></div>
<div class='mint-3'></div>
<div class='mint-4'></div>

List of classes availible

Coming soon

  • colors extending past just text

Color classes by category

Check out the classes you can use
Each class has four variations. The syntax is classname dash number(1,2,3,4) ex:class='icecream-1' or class='seafoam-4'

ERROR?

  • If using React with webpack you might come across Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost:3000/node_modules/splotch/splotch.min.css"
  • fix: Instead of linking to 'Splotch' in you index.html file you will need to set up your webpack.config.js file to handle css. npm install css-loader and style-loader. In your config file, add module: { loaders: [{ test: /\.css$/, loader: 'style-loader!css-loader'}] then add import splotch from "./node_modules/splotch/splotch.min.css" to your main React js file.

Keywords

css

FAQs

Package last updated on 24 Mar 2017

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