Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork25
Distilled CSS-in-JS for gourmet developers
License
NotificationsYou must be signed in to change notification settings
streamich/nano-css
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Tiny5th generation CSS-in-JS library that you can actually use in production.Motto ofnano-css is simple:create the smallest possible CSS-in-JS library and provide all features of any other library through addons.
- Only0.5 Kb in base configuration,e.g.
styled-componentsis15.1Kb - Library-agnostic — use it standalone, with React, Preact, Vue.js, or any other library
- Isomorphic — render on server and browser, generates stable class names, and re-hydrates
- Performant —simply the fastest library; 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 @mediaqueries andanimation@keyframesare supported- Auto-prefixes your styles
- Extract CSS into external style sheet
- Public domain —Unlicense license
For pre-configured simple-to-use package see
nano-theme, which builds on top ofnano-css.
- Installation
- Addons
put()—demo!rule()—demo!drule()—demo!sheet()—demo!dsheet()—demo!jsx()—demo!useStyles()—demo!withStyles()—demo!decorator—demo № 1 anddemo № 2component—demo!style()—demo!styled()()—demo!hyperstyle()—demo!stableatoms—demo!emmetnestingkeyframes()hydrate()prefixerstylisunitless!important:globalanimate/*reset/*reset-fontgoogleFont()limitampvirtualspreadarraysnake—demo!tachyonsrtlextractsourcemaps.unitscssomvcssom
- Presets
- Server-side rendering
About
Distilled CSS-in-JS for gourmet developers
Topics
Resources
License
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.