stylematic
A comprehensive solution for inline styles
Features
- Automatic vendor prefixing 1
- Support for value fallbacks 2
- Support for pseudo selectors and media queries 2
- Automatic generation of scoped CSS, hashed class names 2
- Automatic injection of scoped CSS into document
<head>
with buffering and caching 3 - Support for extraction of CSS on server for server-rendering 4
- Lightweight, only ~5KB bundled, minified, and gzipped
Quick example
const stylematic = ; const passthrough className = ; console;// => {color: 'red'} console;// => '_style_4e1hWd'
Automatically injected into document <head>