Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backtick support for @styled-system/css #1845

Open
JakeElder opened this issue Feb 26, 2021 · 0 comments
Open

Backtick support for @styled-system/css #1845

JakeElder opened this issue Feb 26, 2021 · 0 comments

Comments

@JakeElder
Copy link

JakeElder commented Feb 26, 2021

It would be useful to be have backtick style syntax support for @styled-system/css like emotion & styled-components, IE

const P = styled.p(
  css`
    font-size: 0;
    color: brand.bodyCopy;
    strong {
      font-weight: 500;
    }
  `
);

It would allow autocompletion via https://github.com/microsoft/typescript-styled-plugin

Ideally we could do something smart to enable auto completion for @styled-system magic too, IE typing

color: |<trigger autocomplete>

would present a list of css colors, in addition to objects in myTheme.colors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant