Leo Lamprecht
8 years ago
No known key found for this signature in database
GPG Key ID: B08517883D5E0E10
1 changed files with
11 additions and
11 deletions
-
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: |
|
|
|