Skip to content

Commit b790a49

Browse files
committed
feat(docs): add readme
1 parent 88a023e commit b790a49

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# postcss-prefix
2+
Replace `:host` elements with a prefix of your choosing
3+
4+
## Usage
5+
```js
6+
const prefix = require('postcss-prefix')
7+
const postcss = require('postcss')
8+
9+
const css = `
10+
:host { color: blue }
11+
.hello { color: black }
12+
`
13+
14+
const newCss = postcss()
15+
.use(prefix('#hello-world'))
16+
.process(css)
17+
.toString()
18+
19+
console.log(newCss)
20+
// => #hello-world { color: blue }
21+
// => .hello { color: black }
22+
`
23+
```
24+
25+
## See Also
26+
- [sheetify](https://github.com/stackcss/sheetify)
27+
28+
## License
29+
[MIT](https://tldrlegal.com/license/mit-license)

0 commit comments

Comments
 (0)