2.6.1 • Published 6 years ago
styletron-legacy v2.6.1
styletron
A generic server-rendering helper for css-in-js tools
This module provides functionality for:
- Injection of CSS into the document head in browsers
- Buffering of multiple injections into a single update
- Ignoring of duplicate style injections
- Extraction of CSS at render-time on the server, which can be sent down along with markup
This concept behind this module is originally from https://github.com/Khan/aphrodite, but this module is smaller in scope and more generic.
Usage
Injecting a style into document <head>
const styletron = require('styletron');
styletron.injectOnce('.foo { color: red }', 'someUniqueId');
Extracting "injected" CSS at render-time on the server
See styletron-server
API documentation
2.6.1
6 years ago
2.6.0
7 years ago
2.5.1
7 years ago
2.0.5
7 years ago
2.0.2-beta.3
8 years ago
2.0.2-beta.2
8 years ago
2.0.2-beta.1
8 years ago
2.0.2-beta.0
8 years ago
2.0.0-beta.3
8 years ago