This commit is contained in:
syuilo 2018-12-30 14:00:57 +09:00
parent 12286f4915
commit 4f76acd249
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
30 changed files with 67 additions and 43 deletions

View file

@ -99,12 +99,12 @@ function compile(theme: Theme): { [key: string]: string } {
props['primaryAlpha0' + i] = genValue(color);
}
for (let i = 1; i < 100; i++) {
for (let i = 5; i < 100; i += 5) {
const color = primary.clone().lighten(i);
props['primaryLighten' + i] = genValue(color);
}
for (let i = 1; i < 100; i++) {
for (let i = 5; i < 100; i += 5) {
const color = primary.clone().darken(i);
props['primaryDarken' + i] = genValue(color);
}