Nano Css
nano-css
Smallest 5th gen CSS-in-JS library
Component Libraries
css
style
styles
pico
nano
lite
react
js
in-js
css-in-js
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB
Installation
npm install nano-cssCode example
import { Button } from "nano-css";
export function Example() {
return (
<div className="flex gap-2">
<Button>Primary</Button>
<Button variant="outline">Secondary</Button>
</div>
);
}Pros & cons
Pros
- Actively maintained by streamich
- 0 weekly downloads. Battle tested
- First-class TypeScript definitions
- Unlicense licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 0 open issues on GitHub