0.10.1 • Published 5 years ago
@improv/core v0.10.1
@improv/core
Tiny framework agnostic CSS-in-JS utilities.
Try it on codesandbox.io.
Features
- SASS-like nested selectors and ampersand (&) references.
- CSS value arrays for browser compatibility fallbacks.
- At-rules (e.g. @media,@keyframes).
- Tagged templates.
- Written in Typescript.
Getting Started
import { getStyleSheet } from "@improv/core";
const sheet = getStyleSheet({
  body: {
    padding: 0,
  },
});API
Utilities
- getId(prefix?)- Returns a unique identifier.
- This function will work even if multiple versions of this library are in use.
 
- getStyleSheet(style?)- Returns a <style>element wrapper with utility methods:update(style)anddestroy().
 
- Returns a 
- getStyleText(style, namespaceSelector?)- Returns stylesheet text suitable for assignment to HTMLStyleElement.textContent.
 
- Returns stylesheet text suitable for assignment to 
- getBindings(options)- Returns framework (e.g. React or Preact) bindings: useStyle(),<Style>.
- See @improv/react for pre-build React bindings.
- See @improv/preact for pre-build Preact bindings.
 
- Returns framework (e.g. React or Preact) bindings: 
0.10.1
5 years ago
0.10.0
5 years ago
0.9.17
5 years ago
0.9.18
5 years ago
0.9.12
5 years ago
0.9.8
5 years ago
0.9.7-alpha.2
5 years ago
0.9.13
5 years ago
0.9.7
5 years ago
0.9.7-alpha.1
5 years ago
0.9.6-next.0
5 years ago
0.9.14
5 years ago
0.9.15
5 years ago
0.9.9
5 years ago
0.9.4
5 years ago
0.9.10
5 years ago
0.9.11
5 years ago
0.9.5
5 years ago
0.9.6-alpha.0
5 years ago
0.9.16
5 years ago
0.9.7-alpha.0
5 years ago
0.9.3
5 years ago
0.9.2
5 years ago
0.9.1
5 years ago
0.9.0
5 years ago