@symbo.ls/scratch 0.2.28 → 0.3.0

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": "Symbols",
5
- "version": "0.2.28",
5
+ "version": "0.3.0",
6
6
  "files": [
7
7
  "src"
8
8
  ],
@@ -257,6 +257,8 @@ export const generateSequence = ({ type, base, ratio, range, subSequence, ...sta
257
257
  export const fallBack = ({ type, prop, val = 'A', prefix = '--font-size-' }) => {
258
258
  if (typeof val !== 'string') console.warn(prop, val, 'is not a string')
259
259
 
260
+ if (val === 'auto') return ({ [prop]: val })
261
+
260
262
  // const startsWithLetterRegex = /^[a-zA-Z]/i
261
263
  const startsWithLetterRegex = /^-?[a-zA-Z]/i
262
264
  // const hasLetter = /[A-Za-z]+/.test(val)