naomi
naomi copied to clipboard
[Styled Components] Variables in code comments should be greyed out
Description
Variables in code comments should also be grey (the color of all commented code). Right now they're white.
Code sample
const Foo = styled.div`
& > div {
/* color: ${ colors.white }; */
}
`;
Possibly related. Single line comments are greyed out in the first level, but not for nested rules.

@ViggoV Unfortunately CSS doesn't allow for that single-line style syntax - see https://developer.mozilla.org/en-US/docs/Web/CSS/Comments
I am well aware of that, but styled-components does. It is not well documented, but see this comment and the rest of the conversation.