Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol diffdown.com
at main 34 lines 713 B view raw view rendered
1<!-- To edit this file, edit /src/README.md, not /README.md --> 2 3# style-mod 4 5Minimal CSS module shim for generating CSS rules for sets of style 6-declarations and attaching such a set to a document or shadow root. 7 8Using it would look something like this: 9 10```javascript 11const {StyleModule} = require("style-mod") 12const myModule = new StyleModule({ 13 "#main": { 14 fontFamily: "Georgia, 'Nimbus Roman No9 L'", 15 margin: "0" 16 }, 17 ".callout": { 18 color: "red", 19 fontWeight: "bold", 20 "&:hover": {color: "orange"} 21 } 22}) 23StyleModule.mount(document, myModule) 24``` 25 26This code is open source, released under an MIT license. 27 28## Documentation 29 30@StyleModule 31 32Where the `Style` type is defined as: 33 34@Style