cssinjs / cssinjs/jss

[jss-use] Plugin which applies any other plugin to the specific rule

Open
#189 0 comments 0 reactions 0 assignees View on GitHub
complexity:moderate idea
Dominant language
JavaScript
Stars
7.1k
Forks
386
PR merge metrics
No merged PRs in 30d

Description

Sometimes we don't need plugins to be global, we need to apply them more granular, to a specific rule.

Inspired by https://github.com/postcss/postcss-use

```
{
button: {
use: somePlugin, // or [somePlugin1, somePlugin2]
color: 'red'
}
}
```

cc @ai

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.