1.0.1 • Published 1 year ago
gatsby-theme-stitches v1.0.1
gatsby-theme-stitches
A GatsbyJS plugin for styling with Stitches
Install
yarn add gatsby-theme-stitches @stitches/react
Usage
// Add plugin to gatsby-config.js
plugin: ['gatsby-theme-stitches']
That's it! You can import stitches module from gatsby-plugin-stitches/src/stitches.config
;
import { styled } from 'gatsby-theme-stitches/src/stitches.config';
const Container = styled("div", {
margin: 10,
backgroundColor: 'red',
});
And also you can create your own config by shadowing the gatsby-theme-stitches/src/stitches.config
module.
// src/gatsby-theme-stitches/stitches.config.js
// Or src/gatsby-theme-stitches/stitches.config.ts
import { createStyled } from '@stitches/react';
// You should exports `css`
export const { styled, css } = createStyled({
// See the [configuration guide](https://stitches.dev/docs/tokens)
});
LICENSE
MIT
1.0.1
1 year ago
1.0.0
3 years ago
1.0.0-pre.2
3 years ago
1.0.0-pre.1
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago
0.1.0-alpha.1
3 years ago
0.1.0-alpha.0
3 years ago
0.0.2
4 years ago
0.0.2-alpha.0
4 years ago
0.0.1
4 years ago
0.0.0-alpha.2
4 years ago