I am trying to use CSS variables but something weird is going on. I declared the variables like this:
:root {
--primary: '#fff';
--black: '#1b1f23';
--gray: '#586069';
--orange: '#f9826c';
--logo: '#fff';
--header: '#24292e';
--search: 'rgba(255; 255; 255; 0.13)';
}
Then I used them like this:
input {
background: var(--search);
}
But for some reason the style is not being applied. When I hover the mouse over the variable in Chrome Devtools it shows me the correct value, but it doesn't apply.
I'm pretty lost on how to make it work.
Edit:
I'm using React, so this is the render <input />

