@symbo.ls/scratch 2.10.189 → 2.10.198

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/scratch",
3
3
  "description": "Φ / CSS framework and methodology.",
4
4
  "author": "symbo.ls",
5
- "version": "2.10.189",
5
+ "version": "2.10.198",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
@@ -36,5 +36,5 @@
36
36
  "> 1%",
37
37
  "ie >= 9"
38
38
  ],
39
- "gitHead": "8c7496816c98a3cdfe6a83ecf8b5d925713ac3bd"
39
+ "gitHead": "7ff355eb06c0bd54608f39225a9cb55bc5234324"
40
40
  }
@@ -37,6 +37,7 @@ export const getColor = (value, key) => {
37
37
  else if (CONFIG.verbose) console.warn(value, ' - does not have ', key)
38
38
  }
39
39
 
40
+
40
41
  // TODO: support variables
41
42
  // if (alpha) return `rgba(var(${val[shade || ''].var}), ${modifier})`
42
43
 
@@ -57,6 +58,7 @@ export const getColor = (value, key) => {
57
58
  val[tone] = { rgb, var: `${val.var}-${tone}` }
58
59
  } else rgb = val[tone].rgb
59
60
  }
61
+
60
62
  if (alpha) return `rgba(${rgb}, ${alpha})`
61
63
  return CONFIG.useVariable ? `var(${val.var})` : `rgb(${rgb})`
62
64
  } else return CONFIG.useVariable ? `var(${val.var})` : val.value