# next-linaria

> Linaria support for Next.js applications

Latest version **0.11.0** (published 2021-06-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install next-linaria
pnpm add next-linaria
yarn add next-linaria
bun add next-linaria
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.11.0 |
| Published | 2021-06-23 |
| First published | 2020-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 93 |
| Author | Vladimir Alexandrov |
| Maintainers | mistereo |
| Keywords | linaria, next, next.js, css |

## Links

- npm: https://www.npmjs.com/package/next-linaria
- Repository: https://github.com/Mistereo/next-linaria
- Homepage: https://github.com/Mistereo/next-linaria#readme
- Issues: https://github.com/Mistereo/next-linaria/issues
- npm.io page: https://npm.io/package/next-linaria

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.11.0 (latest) — 2021-06-23
- 1.0.1-beta (next) — 2021-08-29
- 1.0.0-beta — 2021-06-23
- 0.10.0 — 2020-10-12
- 0.9.0 — 2020-08-17

## README

# Next.js + Linaria

Adds [Linaria](https://github.com/callstack/linaria) to [built-in CSS support](https://nextjs.org/docs/basic-features/built-in-css-support) in Next.js.

This module is intended to be used with Next.js built-in CSS support (https://nextjs.org/docs/basic-features/built-in-css-support) and probably will not work with custom CSS handling.

Version 0.11 of this package requires Next.js 9.5.4 or above.

For Next.js 9.2-9.5.3 use 0.10.

## Installation

```
npm install --save next-linaria linaria
```

or

```
yarn add next-linaria linaria
```

## Usage

Create a `next.config.js` in your project

```js
// next.config.js
const withLinaria = require('next-linaria');
module.exports = withLinaria({
  /* config options here */
});
```

### Linaria options

```js
// next.config.js
const withLinaria = require('next-linaria');
module.exports = withLinaria({
  linaria: {
    /* linaria options here */
  },
});
```

### Configuring Next.js

Optionally you can add your custom Next.js configuration as parameter

```js
// next.config.js
const withLinaria = require('next-linaria');
module.exports = withLinaria({
  webpack(config, options) {
    return config;
  },
});
```

## License

The MIT License (MIT)

---
_Source: https://npm.io/package/next-linaria · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
