Skip to content

Commit

Permalink
feat(ui): apply initial tailwind settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Nov 20, 2022
1 parent a9e8c1d commit 5b31ff4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import Head from 'next/head'
import { AppProps } from 'next/app'
import { ThemeProvider } from 'styled-components'

import GlobalStyle from '../styles/global'
import defaultTheme from '../styles/theme'

import '../styles/main.css'

const MyApp: React.FC<AppProps> = ({ Component, pageProps }) => {
return (
<>
Expand All @@ -19,7 +20,6 @@ const MyApp: React.FC<AppProps> = ({ Component, pageProps }) => {
</Head>
<ThemeProvider theme={defaultTheme}>
<Component {...pageProps} />
<GlobalStyle />
</ThemeProvider>
</>
)
Expand Down
3 changes: 3 additions & 0 deletions src/styles/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
6 changes: 3 additions & 3 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [],
content: ['./src/**/*.{ts,tsx}'],
theme: {
extend: {},
extend: {}
},
plugins: [],
plugins: []
}

0 comments on commit 5b31ff4

Please sign in to comment.