Open4

Stitches勉強記録

ToshikiToshiki

StitchesにおけるリセットCSS

https://github.com/hauptrolle/stitches-reset

特にカスタムしなければこんな感じで使う

_app.tsx
import type { AppProps } from 'next/app';
import { reset } from 'stitches-reset';
import { globalCss } from '../../stitches.config';

function MyApp({ Component, pageProps }: AppProps) {
  globalCss(reset)();
  return <Component {...pageProps} />;
}

export default MyApp;