# gatsby-theme-stitches

> GatsbyJS plugin for styling with Stitches

Latest version **1.0.1** (published 2022-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install gatsby-theme-stitches
pnpm add gatsby-theme-stitches
yarn add gatsby-theme-stitches
bun add gatsby-theme-stitches
```

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-11-10 |
| First published | 2020-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Hyeseong Kim |
| Maintainers | cometkim |
| Keywords | gatsby, gatsby-plugin, gatsby-theme, css-in-js |

## Links

- npm: https://www.npmjs.com/package/gatsby-theme-stitches
- Repository: https://github.com/cometkim/gatsby-theme-stitches
- npm.io page: https://npm.io/package/gatsby-theme-stitches

## 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

- 1.0.1 (latest) — 2022-11-10
- 1.0.0-pre.2 (prerelease) — 2021-09-02
- 0.1.0-alpha.1 (alpha) — 2021-03-30
- 1.0.0 — 2021-09-02
- 1.0.0-pre.1 — 2021-09-02
- 0.1.2 — 2021-09-02
- 0.1.1 — 2021-04-22
- 0.1.0 — 2021-03-30
- 0.1.0-alpha.0 — 2021-03-29
- 0.0.2 — 2020-09-09
- 0.0.2-alpha.0 — 2020-09-02
- 0.0.1 — 2020-09-02
- 0.0.0-alpha.2 — 2020-09-02

## README

# gatsby-theme-stitches

![npm](https://img.shields.io/npm/v/gatsby-theme-stitches)
![GitHub](https://img.shields.io/github/license/cometkim/gatsby-theme-stitches)

A GatsbyJS plugin for styling with [Stitches](https://stitches.dev/)

## Install

```bash
yarn add gatsby-theme-stitches @stitches/react
```

## Usage

```js
// Add plugin to gatsby-config.js
plugin: ['gatsby-theme-stitches']
```

That's it! You can import sitiches module from `gatsby-plugin-stitches/src/config`;

```js
import { styled } from 'gatsby-theme-stitches/src/config';

const Container = styled("div", {
  margin: 10,
  backgroundColor: 'red',
});
```

And also you can create your own config by shadowing the `gatsby-theme-stitches/src/config` module.

```js
// src/gatsby-theme-stitches/config.ts

import { createStitches } from '@stitches/react';

// You should exports all properties
export const {
  styled,
  css,
  globalCss,
  keyframes,
  getCssText,
  theme,
  createTheme,
  config,
} = createStitches({
  // See the [configuration guide](https://stitches.dev/docs/tokens)
});
```

### TypeScript

Add a module resolution to your `tsconfig.json` file to get autocompletion.

```json
{
  "baseUrl": ".",
  "paths": {
    "gatsby-theme-stitches/src/*": ["./src/gatsby-theme-stitches/*"]
  }
}
```

## LICENSE

MIT

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