@linaria/vite
TypeScript icon, indicating that this package has built-in type declarations

5.0.4 • Public • Published

Linaria

Zero-runtime CSS in JS library.


📖 Please refer to the GitHub for full documentation.

Features

  • Write CSS in JS, but with zero runtime, CSS is extracted to CSS files during build
  • Familiar CSS syntax with Sass like nesting
  • Use dynamic prop based styles with the React bindings, uses CSS variables behind the scenes
  • Easily find where the style was defined with CSS sourcemaps
  • Lint your CSS in JS with stylelint
  • Use JavaScript for logic, no CSS preprocessor needed
  • Optionally use any CSS preprocessor such as Sass or PostCSS

Why use Linaria

Installation

npm install @linaria/core @linaria/react @linaria/babel-preset

or

yarn add @linaria/core @linaria/react @linaria/babel-preset

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.0.42,579latest

Version History

VersionDownloads (Last 7 Days)Published
5.0.42,579
5.0.3303
5.0.20
5.0.10
5.0.00
4.5.42,160
4.5.310
4.5.22
4.5.11
4.5.00
4.2.11310
4.2.1018
4.2.920
4.2.80
4.2.70
4.2.60
4.2.542
4.2.48
4.2.30

Package Sidebar

Install

npm i @linaria/vite

Weekly Downloads

5,453

Version

5.0.4

License

MIT

Unpacked Size

36.9 kB

Total Files

8

Last publish

Collaborators

  • thymikee
  • satya164
  • zamotany
  • anber