Skip to content

typescript type for styled component breaks syntax highlighting #265

@lubelski

Description

@lubelski

Observed

when using types on the styled component, the syntax highlighting is not applied

image

Code

const Component = styled.div`
    border: 1px solid red;
    color: blue;
`;

const Component2 = styled.div<{ color: string }>`
    border: 1px solid red;
    color: ${p => p.color || 'blue'};
`;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions