_app.js 597 B

123456789101112131415161718192021222324
  1. import { ChakraProvider, extendTheme } from "@chakra-ui/react";
  2. import { Global, css } from "@emotion/react";
  3. import theme from "/utils/theme";
  4. import '../styles/tailwind.css'
  5. const GlobalStyles = css`
  6. /* Hide the blue border around Chakra components. */
  7. .js-focus-visible :focus:not([data-focus-visible-added]) {
  8. outline: none;
  9. box-shadow: none;
  10. }
  11. `;
  12. function MyApp({ Component, pageProps }) {
  13. return (
  14. <ChakraProvider theme={extendTheme(theme)}>
  15. <Global styles={GlobalStyles} />
  16. <Component {...pageProps} />
  17. </ChakraProvider>
  18. );
  19. }
  20. export default MyApp;