1.0.3 • Published 6 years ago

computed-style-diff v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

computed-style-diff

Toggle style sheets and inspect the effects they have on the elements present on the page.

Installation

yarn add computed-style-diff -D

Usage

import { getStyleDiff } from 'computed-style-diff'

// Toggle the `theme.css` style sheet and print
// the effects this has based on the computed
// styles of the elements on the page, grouped
// by the selectors in the CSS
getStyleDiff(['theme.css']).then(console.table)

Limitations

  • Media queries are not getting taken into account
  • Neither are element states such as :hover
  • The computed changes will only contain absolute values

License

MIT @ m3g4p0p

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

0.0.0

6 years ago

1.0.0

6 years ago