dom-style

Inline CSS manipulation library

Usage no npm install needed!

<script type="module">
  import domStyle from 'https://cdn.skypack.dev/dom-style';
</script>

README

dom-style

Inline CSS manipulation library

var style = require('dom-style')

style(document.body, 'background-color', 'red')

style(document.body, {
  'font-color': 'yellow',
  'border': '5px solid black'
})

Install

$ npm install dom-style