tinacious / colour-swatches

A small Angular app to help you quickly get some colour swatches together

Home Page:https://codepen.io/tinacious/full/pobYoWj

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repo is deprecated. See a living version here:


Colour Swatches

A small Angular app designed to display colour swatches nicely.

Screenshot

Development

Clone the repository.

Get the development environment setup:

npm install
bower install
grunt server

Change the branding in the footer to your own.

Add colours in the main.js file:

$scope.colours = [
  { name: 'orange', code: 'ffa629' },
  { name: 'green', code: '2fff83' },
  { name: 'raspberry', code: 'fb006f' }
];

Colour grid

There are styles already set up for 3-up, 4-up, and 6-up grids in app/styles/main.scss starting at line 102.

The default is 3-up but feel free to comment-out the 3-up grid and uncomment another of your choice:

// 3-up
width: 32.20339%;
&:nth-child(3n) {
  float: right;
  margin-right: 0;
}

// 4-up
// width: 23.72881%;
// &:nth-child(4n) {
//   float: right;
//   margin-right: 0;
// }

// 6-up
// width: 15.25424%;
// &:nth-child(6n) {
//   float: right;
//   margin-right: 0;
// }

Distribution

Build a minified version of the colour swatches:

grunt build

About

A small Angular app to help you quickly get some colour swatches together

https://codepen.io/tinacious/full/pobYoWj


Languages

Language:JavaScript 59.7%Language:SCSS 23.3%Language:HTML 17.0%