cssinjs / cssinjs/jss

Using Isolate in react-jss

Open
#1,281 6 comments 0 reactions 0 assignees View on GitHub
complexity:high docs feature request
Dominant language
JavaScript
Stars
7.1k
Forks
386
PR merge metrics
No merged PRs in 30d

Description

I'm trying to use isolate with react-jss, but there's no docs. I'm currently trying like this:

```
const useStyles = createUseStyles({
mark: props => ({
isolate: true,
color: [ [ props.headingColor ], '!important' ],
fontFamily: [ [ props.fontFamily ], '!important' ],
'& mark': {
color: props.highlightColor,
background: props.highlightBackground
}
})
});
```

Any ideas?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.