Fix getColors: add blue/blueLight to keys and map
The previous commit used ASH.blue and ASH.blueLight but these were not registered in the getColors() key list or CSS-variable map, so they were undefined and hexToInt blew up trying to call .replace on undefined. Added both as proper keys, mapped to the existing --blue / --blue-light CSS variables.
This commit is contained in:
1 parent
cf9999a919
commit
1067754ae8
1 file changed
+5
-2
+5
-2
@@ -554,7 +554,8 @@ if (useVanta && typeof VANTA !== 'undefined') {
|
|||||||
var keys = [
|
var keys = [
|
||||||
'void', 'panel', 'raised', 'border', 'mid', 'ash',
|
'void', 'panel', 'raised', 'border', 'mid', 'ash',
|
||||||
'icon', 'stone', 'bone', 'chalk',
|
'icon', 'stone', 'bone', 'chalk',
|
||||||
'ember', 'gold', 'blood', 'rust', 'rot', 'moss', 'steel', 'steelLight', 'violet'
|
'ember', 'gold', 'blood', 'rust', 'rot', 'moss',
|
||||||
|
'steel', 'steelLight', 'blue', 'blueLight', 'violet'
|
||||||
];
|
];
|
||||||
var map = {
|
var map = {
|
||||||
void: 'black',
|
void: 'black',
|
||||||
@@ -570,7 +571,9 @@ if (useVanta && typeof VANTA !== 'undefined') {
|
|||||||
rot: 'pink',
|
rot: 'pink',
|
||||||
moss: 'green',
|
moss: 'green',
|
||||||
steel: 'blue',
|
steel: 'blue',
|
||||||
steelLight: 'blue-light',
|
steelLight: 'blue',
|
||||||
|
blue: 'blue',
|
||||||
|
blueLight: 'blue-light',
|
||||||
violet: 'purple'
|
violet: 'purple'
|
||||||
};
|
};
|
||||||
var result = {};
|
var result = {};
|
||||||
|
|||||||
Reference in new issue
Block a user