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

Need support for styled-component interpolated values (e.g. css) #11

Open
jdconner opened this issue Nov 1, 2019 · 0 comments
Open
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@jdconner
Copy link
Owner

jdconner commented Nov 1, 2019

Expected code:

import styled, { css } from 'styled-components';
import createTheme from 'styled-variants';
import { keyframes } from 'styled-components';

const spin = keyframes`
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
`;

const LoaderTheme = createTheme('Loader', {
    borderRadius: '50%',
    width: '2em',
    height: '2em',
    animation: css`${spin} 0.6s linear infinite`,
});

Error when trying to use the code above:
Screen Shot 2019-11-01 at 4 07 11 PM

Related: https://www.styled-components.com/docs/api#css

@jdconner jdconner added the enhancement New feature or request label Nov 1, 2019
@jdconner jdconner added bug Something isn't working help wanted Extra attention is needed and removed enhancement New feature or request labels Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant