emotion-js / emotion-js/facepaint

Styled-Component Object Notation Example

Open
#27 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
594
Forks
12
PR merge metrics
No merged PRs in 30d

Description

I would like to use facepaint inside an object, but I am not sure this is possible.

Something like:

```jsx
const mq = facepaint([
'@media(min-width: 420px)',
])
const Container = styled.div({
...mq({
color: ['#f2f', '#00ff00'],
}),
})
```

Is this not possible?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.