Files
NapCatQQ/.pnpm-store/v3/files/55/485cd2e0dab2f7968a0506f2cfa503933ee8bd315e9211170be3b53c36d59c7517f64c6b1df9f5c4c4621ff2ec0281a77f2fffca8ddde0b8e4ce4d4f4a9d35
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

35 lines
713 B
Plaintext

<!-- To edit this file, edit /src/README.md, not /README.md -->
# style-mod
Minimal CSS module shim for generating CSS rules for sets of style
-declarations and attaching such a set to a document or shadow root.
Using it would look something like this:
```javascript
const {StyleModule} = require("style-mod")
const myModule = new StyleModule({
"#main": {
fontFamily: "Georgia, 'Nimbus Roman No9 L'",
margin: "0"
},
".callout": {
color: "red",
fontWeight: "bold",
"&:hover": {color: "orange"}
}
})
StyleModule.mount(document, myModule)
```
This code is open source, released under an MIT license.
## Documentation
@StyleModule
Where the `Style` type is defined as:
@Style