diff --git a/package.json b/package.json index b247e67..522bc61 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "SassDoc's default theme", "title": "SassDoc Default Theme", "author": "SassDoc team", - "version": "2.0.4", + "version": "2.0.5", "keywords": [ "sassdoc-theme" ], diff --git a/src/swig.js b/src/swig.js index b8524f5..e07a7e1 100644 --- a/src/swig.js +++ b/src/swig.js @@ -38,7 +38,7 @@ const yiqContrast = rgb => const getChannel = (start, hex) => parseInt(hex.substr(start, 2), 16); -const hexTorgb = hex => +const hexToRgb = hex => [0, 2, 4].map(x => getChannel(x, hex)); const colorToHex = color =>