#1281·linaria

No value no css

Author: zomemCreated Jul 14, 2023Updated Jun 16, 2025
Labelsneeds: triage 🏷feature: proposal 💬
javascript
const Line = styled(div)`
  background-color: ${props => props.bgColor};
  margin-left: ${props => props.margin};
`

if bgColor='#fff' and margin=''

css
{
    --b9s1f2v-1: #fff;
}

.b9s1f2v{
  background-color: var(--b9s1f2v-1);
}

Just like this, margin has no value, and the generated css has no margin-left. How to implement it.