Create Color Picker HTML CSS and JAVASCRIPT Coding For Website
Color Picker HTML
<div class="color-picker-panel">
<div
class="panel-row">
<div class="swatches
default-swatches"></div>
<button
class="button eyedropper">Get Color</button>
</div>
<div class="panel-row">
<div class="spectrum-map">
<button
id="spectrum-cursor" class="color-cursor"></button>
<canvas id="spectrum-canvas"></canvas>
</div>
<div class="hue-map">
<button id="hue-cursor"
class="color-cursor"></button>
<canvas
id="hue-canvas"></canvas>
</div>
</div>
<div class="panel-row">
<div id="rgb-fields" class="field-group value-fields rgb-fields
active">
<div class="field-group">
<label for=""
class="field-label">R:</label>
<input type="number" max="255" min="0" id="red" class="field-input
rgb-input"/>
</div>
<div class="field-group">
<label for="" class="field-label">G:</label>
<input type="number" max="255" min="0" id="green"
class="field-input rgb-input"/>
</div>
<div class="field-group">
<label for="" class="field-label">B:</label>
<input type="number" max="255" min="0" id="blue"
class="field-input rgb-input"/>
</div>
</div>
<div id="hex-field"
class="field-group value-fields hex-field">
<label for="" class="field-label">Hex:</label>
<input type="text" id="hex" class="field-input"/>
</div>
<button id="mode-toggle"
class="button mode-toggle">Mode</button>
</div>
<div class="panel-row">
<h2 class="panel-header">User Colors</h2>
<div id="user-swatches" class="swatches custom-swatches">
</div>
<button id="add-swatch"
class="button add-swatch">
<span
id="color-indicator" class="color-indicator"></span><span>Add
to Swatches</span>
</button>
</div>
</div>
Color Picker CSS
$color-ui-panel: #1F232A;
$color-ui-panel-dark: #15191C;
$color-ui-panel-light:
#2A3137;
$color-ui-border: #364347;
$color-input-bg: #15191C;
$color-swatch-border:
#fff;
$color-text: #8B949A;
$spacer: 10px;
$map-height:
200px;
$input-height:40px;
$swatch-width:32px;
$swatch-space:
4px;
$swatches-width: (6*$swatch-width) + (5*$swatch-space);
$map-width:
$swatches-width;
$eyedropper-width: $swatch-width*2 + $swatch-space;
$window-width:$swatches-width
+ $eyedropper-width + $spacer*3;
$spectrum-cursor-width: 30px;
body{
background:$color-ui-panel;
font-family: 'Proxima Nova',
sans-serif;
color: $color-text;
letter-spacing:.05em;
transition:background .5s ease;
}
.color-picker-panel{
background:$color-ui-panel;
width:$window-width;
border-radius:8px;
border:2px solid $color-ui-border;
box-shadow: 0 4px 12px rgba(0,0,0,.4);
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
}
.panel-row{
position:relative;
margin:0 10px 10px;
&:first-child{
margin-top:10px;
margin-bottom: $spacer - $swatch-space;
}
&:after {
content: "";
display:
table;
clear: both;
}
}
.panel-header{
background:$color-ui-panel-dark;
padding:8px;
margin:0 -10px $spacer;
text-align:center;
}
.swatch{
display:inline-block;
width:$swatch-width;
height:$swatch-width;
background:#ccc;
border-radius:4px;
margin-left:4px;
margin-bottom:4px;
box-sizing:border-box;
border:2px
solid $color-ui-border;
cursor:pointer;
}
.default-swatches{
width:$swatches-width;
.swatch:nth-child(6n + 1){
margin-left:0;
}
}
.color-cursor{
border-radius:100%;
background:#ccc;
box-sizing:border-box;
position:absolute;
pointer-events:none;
z-index:2;
border:2px solid
$color-swatch-border;
transition: all .2s ease;
&.dragging{
transition:none;
}
&#spectrum-cursor{
width:$spectrum-cursor-width;
height:$spectrum-cursor-width;
margin-left:-
$spectrum-cursor-width/2;
margin-top:-
$spectrum-cursor-width/2;
top:0;
left:0;
}
&#hue-cursor{
top:0;
left:50%;
height:20px;
width:20px;
margin-top:-10px;
margin-left:-10px;
pointer-events:none;
}
}
.spectrum-map{
position:relative;
width:$map-width;
height:$map-height;
overflow:hidden;
}
#spectrum-canvas{
position:absolute;
width:100%;
height:100%;
top:0;
left:0;
right:0;
bottom:0;
background:#ccc;
}
.hue-map{
position:absolute;
top:$spacer/2;
bottom:$spacer/2;
right:$eyedropper-width/2 - $spacer/2;
width:$spacer;
}
#hue-canvas{
border-radius:8px;
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
width:100%;
height:100%;
background:#ccc;
}
.button{
background:$color-ui-panel-light;
border:0;
border-radius:4px;
color:$color-text;
font-size:1rem;
box-shadow:0 2px 4px rgba(0,0,0,.2);
outline:none;
cursor:pointer;
padding:4px;
&:active{
background:darken($color-ui-panel-light,2%);
}
&.eyedropper{
position:absolute;
right:0;
top:0;
width:$eyedropper-width;
height:$eyedropper-width;
display:block;
}
&.add-swatch{
display:block;
padding:6px;
width:200px;
margin:10px auto 0;
}
&.mode-toggle{
position:absolute;
top:0;
right:0;
width:$eyedropper-width;
height: $input-height;
}
}
.value-fields{
display:none;
align-items:center;
&.active{
display:flex;
}
.field-label{
margin-right:6px;
}
.field-input{
background: $color-input-bg;
border: 1px solid
$color-ui-border;
box-sizing:border-box;
border-radius:2px;
line-height:$input-height -
2px;
padding:0 4px;
text-align:center;
color: $color-text;
font-size:1rem;
display:block;
}
}
.rgb-fields{
.field-group{
display:flex;
align-items:center;
}
.field-input{
width:42px;
margin-right:$spacer;
}
}
.hex-field{
.field-input{
width:170px;
}
}
.color-indicator{
display:inline-block;
vertical-align:middle;
margin-right:10px;
width:20px;
height:20px;
border-radius:4px;
background:#ccc;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button
{
/* display: none; <- Crashes Chrome on hover */
-webkit-appearance: none;
margin: 0; /* <-- Apparently some
margin are still there even though it's hidden */
}
Color Picker JAVASCRIPT
//https://github.com/bgrins/TinyColor
var addSwatch =
document.getElementById('add-swatch');
var modeToggle =
document.getElementById('mode-toggle');
var swatches =
document.getElementsByClassName('default-swatches')[0];
var
colorIndicator = document.getElementById('color-indicator');
var
userSwatches = document.getElementById('user-swatches');
var
spectrumCanvas = document.getElementById('spectrum-canvas');
var
spectrumCtx = spectrumCanvas.getContext('2d');
var spectrumCursor =
document.getElementById('spectrum-cursor');
var spectrumRect =
spectrumCanvas.getBoundingClientRect();
var hueCanvas =
document.getElementById('hue-canvas');
var hueCtx =
hueCanvas.getContext('2d');
var hueCursor =
document.getElementById('hue-cursor');
var hueRect =
hueCanvas.getBoundingClientRect();
var currentColor = '';
var hue
= 0;
var saturation = 1;
var lightness = .5;
var rgbFields =
document.getElementById('rgb-fields');
var hexField =
document.getElementById('hex-field');
var red =
document.getElementById('red');
var blue =
document.getElementById('blue');
var green =
document.getElementById('green');
var hex =
document.getElementById('hex');
function ColorPicker(){
this.addDefaultSwatches();
createShadeSpectrum();
createHueSpectrum();
};
ColorPicker.prototype.defaultSwatches =
[
'#FFFFFF',
'#FFFB0D',
'#0532FF',
'#FF9300',
'#00F91A',
'#FF2700',
'#000000',
'#686868',
'#EE5464',
'#D27AEE',
'#5BA8C4',
'#E64AA9'
];
function
createSwatch(target, color){
var swatch =
document.createElement('button');
swatch.classList.add('swatch');
swatch.setAttribute('title',
color);
swatch.style.backgroundColor = color;
swatch.addEventListener('click', function(){
var color =
tinycolor(this.style.backgroundColor);
colorToPos(color);
setColorValues(color);
});
target.appendChild(swatch);
refreshElementRects();
};
ColorPicker.prototype.addDefaultSwatches
= function() {
for(var i = 0; i <
this.defaultSwatches.length; ++i){
createSwatch(swatches,
this.defaultSwatches[i]);
}
}
function
refreshElementRects(){
spectrumRect =
spectrumCanvas.getBoundingClientRect();
hueRect =
hueCanvas.getBoundingClientRect();
}
function
createShadeSpectrum(color) {
canvas = spectrumCanvas;
ctx = spectrumCtx;
ctx.clearRect(0, 0, canvas.width,
canvas.height);
if(!color) color = '#f00';
ctx.fillStyle = color;
ctx.fillRect(0, 0, canvas.width,
canvas.height);
var whiteGradient = ctx.createLinearGradient(0,
0, canvas.width, 0);
whiteGradient.addColorStop(0, "#fff");
whiteGradient.addColorStop(1, "transparent");
ctx.fillStyle =
whiteGradient;
ctx.fillRect(0, 0, canvas.width,
canvas.height);
var blackGradient = ctx.createLinearGradient(0,
0, 0, canvas.height);
blackGradient.addColorStop(0,
"transparent");
blackGradient.addColorStop(1, "#000");
ctx.fillStyle = blackGradient;
ctx.fillRect(0, 0, canvas.width,
canvas.height);
canvas.addEventListener('mousedown',
function(e){
startGetSpectrumColor(e);
});
};
function
createHueSpectrum() {
var canvas = hueCanvas;
var
ctx = hueCtx;
var hueGradient = ctx.createLinearGradient(0, 0,
0, canvas.height);
hueGradient.addColorStop(0.00,
"hsl(0,100%,50%)");
hueGradient.addColorStop(0.17, "hsl(298.8,
100%, 50%)");
hueGradient.addColorStop(0.33, "hsl(241.2, 100%,
50%)");
hueGradient.addColorStop(0.50, "hsl(180, 100%,
50%)");
hueGradient.addColorStop(0.67, "hsl(118.8, 100%,
50%)");
hueGradient.addColorStop(0.83, "hsl(61.2,100%,50%)");
hueGradient.addColorStop(1.00, "hsl(360,100%,50%)");
ctx.fillStyle = hueGradient;
ctx.fillRect(0, 0, canvas.width,
canvas.height);
canvas.addEventListener('mousedown',
function(e){
startGetHueColor(e);
});
};
function
colorToHue(color){
var color = tinycolor(color);
var
hueString = tinycolor('hsl '+ color.toHsl().h + ' 1 .5').toHslString();
return hueString;
};
function colorToPos(color){
var
color = tinycolor(color);
var hsl = color.toHsl();
hue = hsl.h;
var hsv = color.toHsv();
var x =
spectrumRect.width * hsv.s;
var y = spectrumRect.height * (1 -
hsv.v);
var hueY = hueRect.height - ((hue / 360) *
hueRect.height);
updateSpectrumCursor(x,y);
updateHueCursor(hueY);
setCurrentColor(color);
createShadeSpectrum(colorToHue(color));
};
function
setColorValues(color){
//convert to tinycolor
object
var color = tinycolor(color);
var rgbValues =
color.toRgb();
var hexValue = color.toHex();
//set
inputs
red.value = rgbValues.r;
green.value =
rgbValues.g;
blue.value = rgbValues.b;
hex.value =
hexValue;
};
function setCurrentColor(color){
color =
tinycolor(color);
currentColor = color;
colorIndicator.style.backgroundColor = color;
document.body.style.backgroundColor = color;
spectrumCursor.style.backgroundColor = color;
hueCursor.style.backgroundColor = 'hsl('+ color.toHsl().h +', 100%,
50%)';
};
function updateHueCursor(y){
hueCursor.style.top = y + 'px';
}
function updateSpectrumCursor(x,
y){
//assign position
spectrumCursor.style.left = x
+ 'px';
spectrumCursor.style.top = y + 'px';
};
var
startGetSpectrumColor = function(e) {
getSpectrumColor(e);
spectrumCursor.classList.add('dragging');
window.addEventListener('mousemove', getSpectrumColor);
window.addEventListener('mouseup', endGetSpectrumColor);
};
function
getSpectrumColor(e) {
// got some help here -
http://stackoverflow.com/questions/23520909/get-hsl-value-given-x-y-and-hue
e.preventDefault();
//get x/y coordinates
var x =
e.pageX - spectrumRect.left;
var y = e.pageY -
spectrumRect.top;
//constrain x max
if(x >
spectrumRect.width){ x = spectrumRect.width}
if(x < 0){ x =
0}
if(y > spectrumRect.height){ y = spectrumRect.height}
if(y < 0){ y = .1}
//convert between hsv and
hsl
var xRatio = x / spectrumRect.width * 100;
var
yRatio = y / spectrumRect.height * 100;
var hsvValue = 1 -
(yRatio / 100);
var hsvSaturation = xRatio / 100;
lightness = (hsvValue / 2) * (2 - hsvSaturation);
saturation =
(hsvValue * hsvSaturation) / (1 - Math.abs(2 * lightness - 1));
var color = tinycolor('hsl ' + hue + ' ' + saturation + ' ' + lightness);
setCurrentColor(color);
setColorValues(color);
updateSpectrumCursor(x,y);
};
function endGetSpectrumColor(e){
spectrumCursor.classList.remove('dragging');
window.removeEventListener('mousemove', getSpectrumColor);
};
function
startGetHueColor(e) {
getHueColor(e);
hueCursor.classList.add('dragging');
window.addEventListener('mousemove', getHueColor);
window.addEventListener('mouseup', endGetHueColor);
};
function
getHueColor(e){
e.preventDefault();
var y = e.pageY
- hueRect.top;
if (y > hueRect.height){ y =
hueRect.height};
if (y < 0){ y = 0};
var percent = y / hueRect.height;
hue = 360 - (360 *
percent);
var hueColor = tinycolor('hsl '+ hue + ' 1
.5').toHslString();
var color = tinycolor('hsl '+ hue + ' ' +
saturation + ' ' + lightness).toHslString();
createShadeSpectrum(hueColor);
updateHueCursor(y, hueColor)
setCurrentColor(color);
setColorValues(color);
};
function
endGetHueColor(e){
hueCursor.classList.remove('dragging');
window.removeEventListener('mousemove', getHueColor);
};
// Add
event listeners
red.addEventListener('change', function(){
var color = tinycolor('rgb ' + red.value + ' ' + green.value + ' ' +
blue.value );
colorToPos(color);
});
green.addEventListener('change',
function(){
var color = tinycolor('rgb ' + red.value + '
' + green.value + ' ' + blue.value );
colorToPos(color);
});
blue.addEventListener('change',
function(){
var color = tinycolor('rgb ' + red.value + '
' + green.value + ' ' + blue.value );
colorToPos(color);
});
addSwatch.addEventListener('click',
function(){
createSwatch(userSwatches,
currentColor);
});
modeToggle.addEventListener('click',
function(){
if(rgbFields.classList.contains('active') ?
rgbFields.classList.remove('active') :
rgbFields.classList.add('active'));
if(hexField.classList.contains('active') ?
hexField.classList.remove('active') : hexField.classList.add('active'));
});
window.addEventListener('resize',
function(){
refreshElementRects();
});
new
ColorPicker();
Material Color Picker With Color Codes
Material Color Picker HTML
<div class="container">
<div
class="material-color-picker">
<div
class="material-color-picker__left-panel">
<ol class="color-selector" data-bind="foreach:
materialColors">
<li>
<input name="material-color" type="radio"
data-bind="attr: { id: 'materialColor' + $index() }, checked: selectedColor,
value: color" >
<label data-bind="attr: { for: 'materialColor' +
$index(), title: color }, style: { 'color': $data.variations[4].hex
}"></label>
</li>
</ol>
</div>
<div class="material-color-picker__right-panel"
data-bind="foreach: materialColors">
<div class="color-palette-wrapper" data-bind="css: {
'js-active': selectedColor() === color }">
<h2 class="color-palette-header"
data-bind="text: color"></h2>
<ol class="color-palette" data-bind="foreach:
variations">
<li id="clipboardItem" class="color-palette__item"
data-bind="attr: { 'data-clipboard-text': hex }, style: {
'background-color': hex }">
<span data-bind="text:
weight"></span>
<span data-bind="text:
hex"></span>
<span class="copied-indicator"
data-bind="css: { 'js-copied': copiedHex() === hex }">Color
copied!</span>
</li>
</ol>
</div>
</div>
</div>
</div>
Material Color Picker CSS
@import
url(https://fonts.googleapis.com/css?family=Roboto:400,500|Roboto+Mono:500);
html
{
background-color: #b0bec5;
font-family: "Roboto", sans-serif;
font-weight: 500;
}
.container
{
padding: 1em;
}
.material-color-picker {
display: flex;
width: 32em;
margin: 0 auto;
background-color: white;
border: 1px solid #78909c;
border-radius:
0.5em;
box-shadow: 0 1em 8em rgba(black, 0.35);
&__left-panel {
z-index: 1;
}
&__right-panel {
position:
relative;
flex-grow: 1;
overflow: hidden;
}
}
.color-selector
{ // this whole chunk could be done better/smarter
@include list-reset;
display: flex;
flex-direction: column;
padding: 1em 0;
border-right: 0.25em solid #E0E0E0;
input[type='radio'] {
display:
none;
}
label
{
position: relative;
display: inline-block;
padding: 0.5em 1.5em;
cursor: pointer;
&:before
{
content: '';
display: inline-block;
vertical-align: middle;
padding: 0.75em;
background-color: currentColor;
border-radius: 50%;
}
&:after {
content:
'';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding:
0.5em;
border: 0.25em
solid;
border-radius: 50%;
transition: padding 250ms;
}
}
input[type='radio']:checked + label:after {
padding: 1em;
}
} // end sucky chunk
.color-palette-wrapper
{
position: absolute;
top: 0;
right: 0;
bottom: 0;
left:
0;
transform: translateX(-100%);
//transition: transform 250ms;
display: flex;
flex-direction: column;
padding: 1.5em;
&.js-active
{
transform: translateX(0);
}
}
.color-palette-header {
display:
flex;
justify-content: space-between;
margin: 0;
margin-bottom: 1em;
font-weight: 400;
color: #757575;
}
.color-palette
{
@include list-reset;
display:
flex;
flex-direction: column;
flex-grow: 1;
&__item {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
flex-grow: 1;
margin: 0.25em 0;
padding: 0 1em;
border-radius: 0.25em;
font-family: "Roboto Mono", monospace;
transition:
transform 250ms;
cursor: pointer;
&:hover {
transform: scale(1.05);
}
}
}
.copied-indicator
{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, 0);
opacity: 0;
transition: all 250ms;
&.js-copied {
transform:
translate(-50%, -50%);
opacity: 0.75;
}
}
Material Color Picker JAVASCRIPT
var copiedHex = ko.observable();
var clipboard = new
Clipboard('#clipboardItem');
clipboard.on('success', function(el) {
console.clear();
console.info('Action:',
el.action);
console.info('Text:', el.text);
console.info('Trigger:', el.trigger);
el.clearSelection();
copiedHex(el.text);
});
///
var selectedColor =
ko.observable("Red"); // lazy
ko.applyBindings({
materialColors: [
{
color: "Red",
variations: [
{
weight: 50,
hex: "#FFEBEE"
},
{
weight: 100,
hex: "#FFCDD2"
},
{
weight: 200,
hex: "#EF9A9A"
},
{
weight: 300,
hex: "#E57373"
},
{
weight: 400,
hex: "#EF5350"
},
{
weight: 500,
hex: "#F44336"
},
{
weight: 600,
hex: "#E53935"
},
{
weight: 700,
hex: "#D32F2F"
},
{
weight: 800,
hex: "#C62828"
},
{
weight: 900,
hex: "#B71C1C"
}
]
},
{
color:
"Pink",
variations: [
{
weight: 50,
hex:
"#FCE4EC"
},
{
weight: 100,
hex:
"#F8BBD0"
},
{
weight: 200,
hex:
"#F48FB1"
},
{
weight: 300,
hex:
"#F06292"
},
{
weight: 400,
hex:
"#EC407A"
},
{
weight: 500,
hex:
"#E91E63"
},
{
weight: 600,
hex:
"#D81B60"
},
{
weight: 700,
hex:
"#C2185B"
},
{
weight: 800,
hex:
"#AD1457"
},
{
weight: 900,
hex:
"#880E4F"
}
]
},
{
color:
"Purple",
variations: [
{
weight: 50,
hex:
"#F3E5F5"
},
{
weight: 100,
hex:
"#E1BEE7"
},
{
weight: 200,
hex:
"#CE93D8"
},
{
weight: 300,
hex:
"#BA68C8"
},
{
weight: 400,
hex:
"#AB47BC"
},
{
weight: 500,
hex:
"#9C27B0"
},
{
weight: 600,
hex:
"#8E24AA"
},
{
weight: 700,
hex:
"#7B1FA2"
},
{
weight: 800,
hex:
"#6A1B9A"
},
{
weight: 900,
hex:
"#4A148C"
}
]
},
{
color:
"Deep Purple",
variations:
[
{
weight:
50,
hex: "#EDE7F6"
},
{
weight:
100,
hex: "#D1C4E9"
},
{
weight:
200,
hex: "#B39DDB"
},
{
weight:
300,
hex: "#9575CD"
},
{
weight:
400,
hex: "#7E57C2"
},
{
weight:
500,
hex: "#673AB7"
},
{
weight:
600,
hex: "#5E35B1"
},
{
weight:
700,
hex: "#512DA8"
},
{
weight:
800,
hex: "#4527A0"
},
{
weight:
900,
hex: "#311B92"
}
]
},
{
color: "Indigo",
variations: [
{
weight: 50,
hex: "#E8EAF6"
},
{
weight: 100,
hex: "#C5CAE9"
},
{
weight: 200,
hex: "#9FA8DA"
},
{
weight: 300,
hex: "#7986CB"
},
{
weight: 400,
hex: "#5C6BC0"
},
{
weight: 500,
hex: "#3F51B5"
},
{
weight: 600,
hex: "#3949AB"
},
{
weight: 700,
hex: "#303F9F"
},
{
weight: 800,
hex: "#283593"
},
{
weight: 900,
hex: "#1A237E"
}
]
},
{
color:
"Blue",
variations: [
{
weight: 50,
hex:
"#E3F2FD"
},
{
weight: 100,
hex:
"#BBDEFB"
},
{
weight: 200,
hex:
"#90CAF9"
},
{
weight: 300,
hex:
"#64B5F6"
},
{
weight: 400,
hex:
"#42A5F5"
},
{
weight: 500,
hex:
"#2196F3"
},
{
weight: 600,
hex:
"#1E88E5"
},
{
weight: 700,
hex:
"#1976D2"
},
{
weight: 800,
hex:
"#1565C0"
},
{
weight: 900,
hex:
"#0D47A1"
}
]
},
{
color:
"Light Blue",
variations:
[
{
weight:
50,
hex: "#E1F5FE"
},
{
weight:
100,
hex: "#B3E5FC"
},
{
weight:
200,
hex: "#81D4FA"
},
{
weight:
300,
hex: "#4FC3F7"
},
{
weight:
400,
hex: "#29B6F6"
},
{
weight:
500,
hex: "#03A9F4"
},
{
weight:
600,
hex: "#039BE5"
},
{
weight:
700,
hex: "#0288D1"
},
{
weight:
800,
hex: "#0277BD"
},
{
weight:
900,
hex: "#01579B"
}
]
},
{
color: "Cyan",
variations: [
{
weight: 50,
hex: "#E0F7FA"
},
{
weight: 100,
hex: "#B2EBF2"
},
{
weight: 200,
hex: "#80DEEA"
},
{
weight: 300,
hex: "#4DD0E1"
},
{
weight: 400,
hex: "#26C6DA"
},
{
weight: 500,
hex: "#00BCD4"
},
{
weight: 600,
hex: "#00ACC1"
},
{
weight: 700,
hex: "#0097A7"
},
{
weight: 800,
hex: "#00838F"
},
{
weight: 900,
hex: "#006064"
}
]
},
{
color:
"Teal",
variations: [
{
weight: 50,
hex:
"#E0F2F1"
},
{
weight: 100,
hex:
"#B2DFDB"
},
{
weight: 200,
hex:
"#80CBC4"
},
{
weight: 300,
hex:
"#4DB6AC"
},
{
weight: 400,
hex:
"#26A69A"
},
{
weight: 500,
hex:
"#009688"
},
{
weight: 600,
hex:
"#00897B"
},
{
weight: 700,
hex:
"#00796B"
},
{
weight: 800,
hex:
"#00695C"
},
{
weight: 900,
hex:
"#004D40"
}
]
},
{
color:
"Green",
variations: [
{
weight: 50,
hex:
"#E8F5E9"
},
{
weight: 100,
hex:
"#C8E6C9"
},
{
weight: 200,
hex:
"#A5D6A7"
},
{
weight: 300,
hex:
"#81C784"
},
{
weight: 400,
hex:
"#66BB6A"
},
{
weight: 500,
hex:
"#4CAF50"
},
{
weight: 600,
hex:
"#43A047"
},
{
weight: 700,
hex:
"#388E3C"
},
{
weight: 800,
hex:
"#2E7D32"
},
{
weight: 900,
hex:
"#1B5E20"
}
]
},
{
color:
"Light Green",
variations:
[
{
weight:
50,
hex: "#F1F8E9"
},
{
weight:
100,
hex: "#DCEDC8"
},
{
weight:
200,
hex: "#C5E1A5"
},
{
weight:
300,
hex: "#AED581"
},
{
weight:
400,
hex: "#9CCC65"
},
{
weight:
500,
hex: "#8BC34A"
},
{
weight:
600,
hex: "#7CB342"
},
{
weight:
700,
hex: "#689F38"
},
{
weight:
800,
hex: "#558B2F"
},
{
weight:
900,
hex: "#33691E"
}
]
},
{
color: "Lime",
variations: [
{
weight: 50,
hex: "#F9FBE7"
},
{
weight: 100,
hex: "#F0F4C3"
},
{
weight: 200,
hex: "#E6EE9C"
},
{
weight: 300,
hex: "#DCE775"
},
{
weight: 400,
hex: "#D4E157"
},
{
weight: 500,
hex: "#CDDC39"
},
{
weight: 600,
hex: "#C0CA33"
},
{
weight: 700,
hex: "#AFB42B"
},
{
weight: 800,
hex: "#9E9D24"
},
{
weight: 900,
hex: "#827717"
}
]
},
{
color:
"Yellow",
variations: [
{
weight: 50,
hex:
"#FFFDE7"
},
{
weight: 100,
hex:
"#FFF9C4"
},
{
weight: 200,
hex:
"#FFF59D"
},
{
weight: 300,
hex:
"#FFF176"
},
{
weight: 400,
hex:
"#FFEE58"
},
{
weight: 500,
hex:
"#FFEB3B"
},
{
weight: 600,
hex:
"#FDD835"
},
{
weight: 700,
hex:
"#FBC02D"
},
{
weight: 800,
hex:
"#F9A825"
},
{
weight: 900,
hex:
"#F57F17"
}
]
},
{
color:
"Amber",
variations: [
{
weight: 50,
hex:
"#FFF8E1"
},
{
weight: 100,
hex:
"#FFECB3"
},
{
weight: 200,
hex:
"#FFE082"
},
{
weight: 300,
hex:
"#FFD54F"
},
{
weight: 400,
hex:
"#FFCA28"
},
{
weight: 500,
hex:
"#FFC107"
},
{
weight: 600,
hex:
"#FFB300"
},
{
weight: 700,
hex:
"#FFA000"
},
{
weight: 800,
hex:
"#FF8F00"
},
{
weight: 900,
hex:
"#FF6F00"
}
]
},
{
color:
"Orange",
variations: [
{
weight: 50,
hex:
"#FFF3E0"
},
{
weight: 100,
hex:
"#FFE0B2"
},
{
weight: 200,
hex:
"#FFCC80"
},
{
weight: 300,
hex:
"#FFB74D"
},
{
weight: 400,
hex:
"#FFA726"
},
{
weight: 500,
hex:
"#FF9800"
},
{
weight: 600,
hex:
"#FB8C00"
},
{
weight: 700,
hex:
"#F57C00"
},
{
weight: 800,
hex:
"#EF6C00"
},
{
weight: 900,
hex:
"#E65100"
}
]
},
{
color:
"Deep Orange",
variations:
[
{
weight:
50,
hex: "#FBE9E7"
},
{
weight:
100,
hex: "#FFCCBC"
},
{
weight:
200,
hex: "#FFAB91"
},
{
weight:
300,
hex: "#FF8A65"
},
{
weight:
400,
hex: "#FF7043"
},
{
weight:
500,
hex: "#FF5722"
},
{
weight:
600,
hex: "#F4511E"
},
{
weight:
700,
hex: "#E64A19"
},
{
weight:
800,
hex: "#D84315"
},
{
weight:
900,
hex: "#BF360C"
}
]
},
{
color: "Brown",
variations: [
{
weight: 50,
hex: "#EFEBE9"
},
{
weight: 100,
hex: "#D7CCC8"
},
{
weight: 200,
hex: "#BCAAA4"
},
{
weight: 300,
hex: "#A1887F"
},
{
weight: 400,
hex: "#8D6E63"
},
{
weight: 500,
hex: "#795548"
},
{
weight: 600,
hex: "#6D4C41"
},
{
weight: 700,
hex: "#5D4037"
},
{
weight: 800,
hex: "#4E342E"
},
{
weight: 900,
hex: "#3E2723"
}
]
},
{
color:
"Grey",
variations: [
{
weight: 50,
hex:
"#FAFAFA"
},
{
weight: 100,
hex:
"#F5F5F5"
},
{
weight: 200,
hex:
"#EEEEEE"
},
{
weight: 300,
hex:
"#E0E0E0"
},
{
weight: 400,
hex:
"#BDBDBD"
},
{
weight: 500,
hex:
"#9E9E9E"
},
{
weight: 600,
hex:
"#757575"
},
{
weight: 700,
hex:
"#616161"
},
{
weight: 800,
hex:
"#424242"
},
{
weight: 900,
hex:
"#212121"
}
]
},
{
color:
"Blue Grey",
variations: [
{
weight: 50,
hex:
"#ECEFF1"
},
{
weight: 100,
hex:
"#CFD8DC"
},
{
weight: 200,
hex:
"#B0BEC5"
},
{
weight: 300,
hex:
"#90A4AE"
},
{
weight: 400,
hex:
"#78909C"
},
{
weight: 500,
hex:
"#607D8B"
},
{
weight: 600,
hex:
"#546E7A"
},
{
weight: 700,
hex:
"#455A64"
},
{
weight: 800,
hex:
"#37474F"
},
{
weight: 900,
hex:
"#263238"
}
]
}
]
});
Post a Comment