Skip to content

Commit

Permalink
tweak plette
Browse files Browse the repository at this point in the history
  • Loading branch information
ZYinMD committed Dec 10, 2018
1 parent 9a78271 commit 805c89a
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 38 deletions.
1 change: 0 additions & 1 deletion palettes/sepia/palette.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<link rel="stylesheet" href="style.css">
<script defer src="./palette.js"></script>
<script defer src="./script.js"></script>

</head>

<body>
Expand Down
11 changes: 6 additions & 5 deletions palettes/sepia/palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ var palette = {
default: '#836e69',
grey: '#999d',
red: '#f00',
maroon: '#c10c',
green: '#094e',
blue: '#08ad',
yellow: '#b82',
purple: '#940094ab',
cyan: '#099e',
orange: '#f77b00e6',
olive: '#890',
maroon: '#c10c',
yellow: '#b82',
pink: '#fad',
teal: '#088',
purple: '#940094ab',
tan: '#97733dd0',
blue: '#08ad',
magenta: '#b36d',
green: '#094e',
black: '#000'
};

Expand Down
6 changes: 3 additions & 3 deletions palettes/sepia/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ colors.forEach((color, index, colors) => {
line.classList.add(color);
lines.append(line);
let block = document.createElement('p');
block.innerText = color + ": Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
block.innerText = color + ": Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
block.classList.add(color);
blocks.append(block);

Expand All @@ -19,9 +19,9 @@ colors.forEach((color, index, colors) => {
continue;
let combo = document.createElement('p');
let A = `<span class="${color}">${color}</span>`;
let B = `<span class="${color2}">${color2}</span>`
let B = `<span class="${color2}">${color2}</span>`;
// // combo.innerHTML = `<span class="${color}">${color}</span><span class="${color2}">${color2}</span><span class="${color}">${color}</span><span class="${color2}">${color2}</span>`
combo.innerHTML = A + B + A + B + A + A + B + B;
combinations.append(combo);
}
})
});
71 changes: 43 additions & 28 deletions palettes/sepia/style.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@

.default {
color: #0009;
color: #0008;
color: #222b;
color: #333b;
color: #334b;
color: #323a;
color: #102a;
color: #323a;
color: #836e69;
color: #3239;
color: #2118;
color: #8d796b;
}

.grey {
Expand All @@ -18,64 +19,78 @@
color: #f00;
}

.maroon {
color: #c10c;
}

.green {
color: #094e;

}

.blue {
color: #08ad;
}

.yellow {
color: #b82;
color: #971c;
color: #b93;
color: #a82d;
color: #bb9a38;
color: #b69235;
color: #b39330;
color: #b69235f5;
color: #b79533;
}

.purple {
color: #909a;
}

.cyan {
color: #24a197;
color: #099e;
color: #2a9;

}

.orange {
color: #f77b00e6;
}
color: #f77b00e6;
color: #f67a00;
color: #f77b00;

.olive {
color: #890;
}

.maroon {
color: #c10c;
.olive {
color: #890;
}


.yellow {
color: #b82;
.pink {
color: #f7c;
color: #f977c0;
}

.teal {
color: #088;
}

.purple {
color: #990099a5;
color: #940094ab;
}

.tan {
color: #974c;
color: #963c;
color: #97733dd0;
}

.blue {
color: #08ad;
}

.magenta {
color: #b36e;
color: #bb3366d6;
color: #b36d;
}

.green {
color: #094e;


}

.black {
color: #000;

}

body {
padding-top: 30px;
background-color: #fec;
Expand Down
2 changes: 1 addition & 1 deletion scripts/tweak.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const officialThemeName = (() => {
case 'sepia-from-cuttle-fish':
return 'Sepia from Cuttlefish';
default:
break;
throw `Unrecognized theme name "${themeName}"`;
}
})();

Expand Down

0 comments on commit 805c89a

Please sign in to comment.