Skip to content

Instantly share code, notes, and snippets.

@arm5077
Last active December 2, 2015 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arm5077/0775aab95c0a54e124b3 to your computer and use it in GitHub Desktop.
Save arm5077/0775aab95c0a54e124b3 to your computer and use it in GitHub Desktop.
Color palette for Poseidon
<!doctype html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular.min.js"></script>
<script src="swatches.json"></script>
<script type="text/javascript">
angular.module("swatchApp", [])
.controller('swatchController', ['$scope', function($scope){
$scope.colors = swatches;
$scope.height = window.innerHeight / swatches.length;
}]);
</script>
<style type="text/css">
body {
padding:0;
margin:0;
}
li {
width:100%;
height:15px;
list-style-type:none;
padding:0;
margin:0;
left:0;
text-align:center;
font-size:10px;
font-color:rgba(0,0,0,.3);
}
ul {
padding:0;
margin:0;
}
</style>
</head>
<body ng-app = "swatchApp">
<ul ng-controller = "swatchController">
<li ng-repeat="color in colors" ng-attr-id = "{{ 'swatch' + ($index + 1) }}" style = "background-color:{{color.color}}; height: {{height}}px; line-height: {{height}}px"" data-clipboard-text = "yoyoyoyoyo">
{{color.color}}
</li>
</ul>
</body>
</html>
swatches=[
{
"color": "#FFF200"
},
{
"color": "#FFDD00"
},
{
"color": "#FDB913"
},
{
"color": "#B8800D"
},
{
"color": "#F58025"
},
{
"color": "#003A63"
},
{
"color": "#455560"
},
{
"color": "#83A2A3"
},
{
"color": "#00A8CB"
},
{
"color": "#00AEEF"
},
{
"color": "#007D68"
},
{
"color": "#576423"
},
{
"color": "#8DC63F"
},
{
"color": "#B0B579"
},
{
"color": "#CBB677"
},
{
"color": "#5C2946"
},
{
"color": "#69321F"
},
{
"color": "#EE2A24"
},
{
"color": "#EC008C"
},
{
"color": "#E6E7E8"
},
{
"color": "#979B93"
},
{
"color": "#000000"
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment