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 7efcb4a commit ed95206Copy full SHA for ed95206
src/styles.js
@@ -12,7 +12,7 @@ const opacity = (color, opacity) => {
12
// only handled these values. We keep the old behavior for backward
13
// compatibility with v3 codebases but use color-mix for any other color
14
// values.
15
- hex = color.replace('#', '')
+ let hex = color.replace('#', '')
16
hex = hex.length === 3 ? hex.replace(/./g, '$&$&') : hex
17
const r = parseInt(hex.substring(0, 2), 16)
18
const g = parseInt(hex.substring(2, 4), 16)
0 commit comments