Package Exports
- @linaria/core
- @linaria/core/esm/index.js
- @linaria/core/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@linaria/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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
Installation
npm install @linaria/core @linaria/react @linaria/babel-preset @linaria/shaker
or
yarn add @linaria/core @linaria/react @linaria/babel-preset @linaria/shaker