Browse Source

Put usage to the top

add-plugins-support
Leo Lamprecht 8 years ago
parent
commit
51c6119901
No known key found for this signature in database GPG Key ID: B08517883D5E0E10
  1. 22
      README.md

22
README.md

@ -6,17 +6,6 @@
Full, scoped and component-friendly CSS support for JSX (SSR + browser).
## Features
- Full CSS support, no tradeoffs in power
- Runtime size of just **500 bytes**
- Complete isolation: Selectors, animations, keyframes
- Built-in CSS-prefixing
- Very fast, minimal and efficient transpilation (see below)
- High-performance runtime-CSS-injection when not server-rendering
- Future-proof: Equivalent to server-renderable "Shadow CSS"
- Works like the deprecated `<style scoped>`, but the styles get injected only once per component
## Usage
Firstly, install the package:
@ -54,6 +43,17 @@ export default () => (
)
```
## Features
- Full CSS support, no tradeoffs in power
- Runtime size of just **500 bytes**
- Complete isolation: Selectors, animations, keyframes
- Built-in CSS-prefixing
- Very fast, minimal and efficient transpilation (see below)
- High-performance runtime-CSS-injection when not server-rendering
- Future-proof: Equivalent to server-renderable "Shadow CSS"
- Works like the deprecated `<style scoped>`, but the styles get injected only once per component
## How It Works
The example above compiles to the following:

Loading…
Cancel
Save