Skip to content

streamich/nano-css

Folders and files

NameName
Last commit message
Last commit date
Nov 20, 2023
Jul 28, 2021
Mar 16, 2018
Nov 25, 2023
Mar 15, 2018
Mar 26, 2019
Mar 22, 2019
Jul 28, 2021
Mar 13, 2018
Nov 20, 2023
Mar 13, 2018
Nov 20, 2023
Mar 13, 2018
Nov 20, 2023
Feb 17, 2020
Jul 28, 2021
Jul 20, 2024
Jul 28, 2021
Mar 14, 2018
Jul 9, 2024

Repository files navigation

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