I want to define a variable in a CSS file like this:
:root {
--sidebar-width: 56;
}
I'd like to now refer to that in a component to define that component's width:
<div className="w-[var(--sidebar-width)]">
<MySidebar>
</div>
This doesn't work. What I'm trying to achieve is to add the w-56 class to that component and to do so as a variable so that I can refer to that variable in several places. Is this possible and if so, how do I specify this?