1.2.4 • Published 7 years ago

@cezaraugusto/venus v1.2.4

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

venus: Inline Styles that work

npm version Build Status Coverage Status Gitter chat

Support for colocating your styles with your JavaScript component.

  • Works great with and without React
  • Supports media queries without window.matchMedia
  • Supports pseudo-selectors like :hover, :active, etc. without needing to store hover or active state in components. :visited works just fine too.
  • Supports automatic global @font-face detection and insertion.
  • Respects precedence order when specifying multiple styles
  • Requires no AST transform
  • Injects only the exact styles needed for the render into the DOM.
  • Can be used for server rendering
  • Few dependencies, small (20k, 6k gzipped)
  • No external CSS file generated for inclusion
  • Autoprefixes styles

Installation

venus is distributed via npm:

npm install --save venus

License (MIT)

Copyright (c) 2016 Khan Academy