Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldiwildan77 committed Aug 8, 2023
2 parents 1eddf32 + 2454d97 commit 7131a0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import type { AppProps } from 'next/app';
import Head from 'next/head';
import { GoogleAnalytics } from 'nextjs-google-analytics';

import { theme } from '../theme';

const GA_TRACKING_ID = process.env.NEXT_PUBLIC_GA_TRACKING_ID || '';

function MyApp({ Component, pageProps }: AppProps) {
Expand All @@ -13,7 +15,7 @@ function MyApp({ Component, pageProps }: AppProps) {
<title>Mocha Bot</title>
</Head>
<GoogleAnalytics trackPageViews gaMeasurementId={GA_TRACKING_ID} />
<ChakraProvider>
<ChakraProvider theme={theme}>
<Component {...pageProps} />
</ChakraProvider>
</>
Expand Down
7 changes: 7 additions & 0 deletions src/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// 1. Import `extendTheme`
import { extendTheme } from '@chakra-ui/react';

// 2. Call `extendTheme` and pass your custom values
const theme = extendTheme({});

export { theme };

0 comments on commit 7131a0f

Please sign in to comment.