diff --git a/index.js b/index.js index c2aed94..5a3bb65 100644 --- a/index.js +++ b/index.js @@ -11,7 +11,7 @@ function getThemeValue(name, props, values) { if (typeof value === 'function') { themeValue = value(values); } else { - themeValue = values[value]; + themeValue = values[value] || values.defaultValue; } if (typeof themeValue === 'function') {