forked from Quramy/vim-js-pretty-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I assume you are familiar with the styled-components library? It uses a syntax similar to the following:
const StyledH1 = styled.h1`
/* CSS syntax goes here */
`;Or the equivalent with a React component:
import { SomeReactComponent } from "some-react-library";
const StyledReactComponent = styled(SomeReactComponent)`
/* CSS syntax goes here */
`;In my understanding of this plugin, we can make it work by doing something like the following:
const css = styled.h1;
const StyledH1 = css`
/* CSS syntax goes here */
`;however, that seems like a pretty non-standard way of doing things. Would you consider adding a way to do something more generic (e.g. "styled*": "css") in the syntax map?
Metadata
Metadata
Assignees
Labels
No labels