Skip to content

Commit 7c941a3

Browse files
committed
add default value to colorVariable helper
1 parent 2f1592e commit 7c941a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const withRgb = (variable, forceRGB) => {
99
return startsWith(variable, 'var') ? variable.replace(')', '-rgb)') : 'var(' + variable + '-rgb)'
1010
}
1111

12-
const colorVariable = (variable, forceRGB) => {
12+
const colorVariable = (variable, forceRGB = false) => {
1313
return function ({ opacityVariable, opacityValue }) {
1414
if (opacityValue !== undefined) {
1515
return `rgba(${withRgb(variable, forceRGB)}, ${opacityValue})`

0 commit comments

Comments
 (0)