Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 18-Dec-2021 | - | ||||
.circleci/ | H | 18-Dec-2021 | - | 84 | 79 | |
.github/workflows/ | H | 18-Dec-2021 | - | 24 | 18 | |
addon/ | H | 03-May-2022 | - | |||
node_modules/stylis/ | H | 18-Dec-2021 | - | 436 | 329 | |
preset/ | H | 03-May-2022 | - | |||
LICENSE | H A D | 18-Dec-2021 | 1.2 KiB | 25 | 20 | |
README.md | H A D | 18-Dec-2021 | 4 KiB | 71 | 62 | |
package.json | H A D | 18-Dec-2021 | 3.4 KiB | 144 | 143 | |
renovate.json | H A D | 18-Dec-2021 | 25 | 4 | 3 |
README.md
1# nano-css 2 3[![][npm-badge]][npm-url] [![][travis-badge]][travis-url] 4 5__Tiny [5<sup>th</sup> generation](https://github.com/streamich/freestyler/blob/master/docs/en/generations.md#5th-generation) CSS-in-JS library__ that you can actually use in production. 6__Motto of `nano-css` is simple__: *create the smallest possible CSS-in-JS library and provide all features of any other library through addons.* 7 8- __Only [0.5 Kb](https://bundlephobia.com/result?p=nano-css@1.15.3)__ in base configuration, *e.g. [`styled-components`](https://github.com/styled-components/styled-components) is [15.1Kb](https://bundlephobia.com/result?p=styled-components@3.2.5)* 9- __Library-agnostic__ — use it standalone, with React, Preact, Vue.js, or any other library 10- __Isomorphic__ — render on server and browser, generates stable class names, and re-hydrates 11- __Performant__ — [*simply the fastest library*](https://github.com/streamich/CSS-IN-JS-Benchmarks/blob/master/RESULT.md); does not create wrapper components, does not use inline styles or inline `<style>` elements, but caches all styles for re-use and injects CSS using `.insertRule()` for performance 12- __`@media` queries__ and __animation `@keyframes`__ are supported 13- __Auto-prefixes__ your styles 14- __Extract CSS__ into external style sheet 15- __Public domain__ — [Unlicense license](./LICENSE) 16 17 18## Reference 19 20- [Installation](./docs/Installation.md) 21- [Addons](./docs/Addons.md) 22 - [`put()`](./docs/put.md) — [*demo!*](https://codesandbox.io/s/nkovxrzyv4) 23 - [`rule()`](./docs/rule.md) — [*demo!*](https://codesandbox.io/s/oxlj92m1m9) 24 - [`drule()`](./docs/drule.md) — [*demo!*](https://codesandbox.io/s/9jq5zmm91p) 25 - [`sheet()`](./docs/sheet.md) — [*demo!*](https://codesandbox.io/s/wyw093m7kw) 26 - [`dsheet()`](./docs/dsheet.md) — [*demo!*](https://codesandbox.io/s/q7rx4981vq) 27 - [`jsx()`](./docs/jsx.md) — [*demo!*](https://codesandbox.io/s/5y63x88504) 28 - [`useStyles()`](./docs/useStyles.md) — [*demo!*](https://codesandbox.io/s/o5k9jjo306) 29 - [`withStyles()`](./docs/withStyles.md) — [*demo!*](https://codesandbox.io/s/5k3jvkk31l) 30 - [`decorator`](./docs/decorator.md) — [*demo № 1*](https://codesandbox.io/s/j442958125) and [*demo № 2*](https://codesandbox.io/s/3qjzv35941) 31 - [`component`](./docs/component.md) — [*demo!*](https://codesandbox.io/s/yk8pk4v95j) 32 - [`style()`](./docs/style.md) — [*demo!*](https://codesandbox.io/s/53qk3qkopn) 33 - [`styled()()`](./docs/styled.md) — [*demo!*](https://codesandbox.io/s/w667y036p5) 34 - [`hyperstyle()`](./docs/hyperstyle.md) — [*demo!*](https://codesandbox.io/s/wqny7z17x8) 35 - [`stable`](./docs/stable.md) 36 - [`atoms`](./docs/atoms.md) — [*demo!*](https://codesandbox.io/s/rlkxl6o9v4) 37 - [`emmet`](./docs/emmet.md) 38 - [`nesting`](./docs/nesting.md) 39 - [`keyframes()`](./docs/keyframes.md) 40 - [`hydrate()`](./docs/hydrate.md) 41 - [`prefixer`](./docs/prefixer.md) 42 - [`stylis`](./docs/stylis.md) 43 - [`unitless`](./docs/unitless.md) 44 - [`!important`](./docs/important.md) 45 - [`:global`](./docs/global.md) 46 - [`animate/*`](./docs/animations.md) 47 - [`reset/*`](./docs/resets.md) 48 - [`reset-font`](./docs/reset-font.md) 49 - [`googleFont()`](./docs/googleFont.md) 50 - [`limit`](./docs/limit.md) 51 - [`amp`](./docs/amp.md) 52 - [`virtual`](./docs/virtual.md) 53 - [`spread`](./docs/spread.md) 54 - [`array`](./docs/array.md) 55 - [`snake`](./docs/snake.md) — [*demo!*](https://codesandbox.io/s/mo7n1857zj) 56 - [`tachyons`](./docs/tachyons.md) 57 - [`rtl`](./docs/rtl.md) 58 - [`extract`](./docs/extract.md) 59 - [`sourcemaps`](./docs/sourcemaps.md) 60 - [`.units`](./docs/units.md) 61 - [`cssom`](./docs/cssom.md) 62 - [`vcssom`](./docs/vcssom.md) 63- [Presets](./docs/Presets.md) 64- [Server-side rendering](./docs/SSR.md) 65 66 67[npm-url]: https://www.npmjs.com/package/nano-css 68[npm-badge]: https://img.shields.io/npm/v/nano-css.svg 69[travis-url]: https://travis-ci.org/streamich/nano-css 70[travis-badge]: https://travis-ci.org/streamich/nano-css.svg?branch=master 71