tako
tako copied to clipboard
styled-components support
When previewing a file in the collapsible tree view, my styled-components code:
const ActionText = styled.button`
${props => props.theme.ActionText(props.theme)[props.variant]};
`;
displays like this:
const ActionText = styled.button`
___CSS_0___;
`;
Oh wow I noticed this today as well and never put it together that this was due to Tako. I'll check it out!
Awesome! Not sure if it is styled-components specifically cause it does seem to work with some styled-components code 🤷
This seems to have turned up in the package I'm using already https://github.com/conorhastings/react-syntax-highlighter/issues/223
I'll keep an eye on it, thanks for reporting!
Ah nice find. 🍻