JavaScript Unlicense

nano-css

Distilled CSS-in-JS for gourmet developers

S

streamich

Dernière activité 16 févr. 2026
streamich/nano-css

445

étoiles

26

forks

33

issues ouvertes

csscss-in-jscss-in-reactcssomemotionjsnanostyled-componentsstylesstylesheetsts

Ce README est souvent en anglais.

nano-css

Tiny 5th generation CSS-in-JS library that you can actually use in production. Motto of nano-css is simple: create the smallest possible CSS-in-JS library and provide all features of any other library through addons.

  • Only 0.5 Kb in base configuration, e.g. styled-components is 15.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
  • @media queries and animation @keyframes are 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 of nano-css.

Reference

Projets similaires

A lightweight toolset for writing styles in JavaScript ✨

JavaScriptcss-in-jsinline-stylesstyled-components
Sstyled-components
7,7 k étoiles216

👩‍🎤 CSS-in-JS library designed for high performance style composition

JavaScriptbabel-plugincsscss-in-js
Eemotion-js
18 k étoiles1,1 k

Fast, expressive styling for React. Server components, client components, streaming SSR, React Native—one API.

TypeScriptcsscss-in-jsreact
Sstyled-components
41,1 k étoiles2,7 k