We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f1592e commit 7c941a3Copy full SHA for 7c941a3
src/helpers.js
@@ -9,7 +9,7 @@ const withRgb = (variable, forceRGB) => {
9
return startsWith(variable, 'var') ? variable.replace(')', '-rgb)') : 'var(' + variable + '-rgb)'
10
}
11
12
-const colorVariable = (variable, forceRGB) => {
+const colorVariable = (variable, forceRGB = false) => {
13
return function ({ opacityVariable, opacityValue }) {
14
if (opacityValue !== undefined) {
15
return `rgba(${withRgb(variable, forceRGB)}, ${opacityValue})`
0 commit comments