Package Exports
- stitches-normalize-css
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 (stitches-normalize-css) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
stitches-normalize-css
Normalize CSS for stitches.
Installation:
yarn add stitches-normalize-css
or
npm install stitches-normalize-css
Usage:
import * as React from 'react'
import { reset } from 'stitches-normalize-css'
import { globalCss } from 'path-to/stitches.config.js'
// path-to/stitches.config.js - Sample stitches config
/*
export const {
styled,
css,
globalCss,
keyframes,
getCssText,
theme,
createTheme,
config,
} = createStitches({
theme: {
colors: {
gray400: 'gainsboro',
gray500: 'lightgray',
},
},
media: {
bp1: '(min-width: 480px)',
},
})
*/
const globalStyles = globalCss(reset)
const App: React.FC = () => {
globalStyles()
return <div>App</div>
}
Credits
All credit goes to Nicolas Gallagher for Normalize CSS.