Skip to content

Commit

Permalink
feat: move tailwind to using globals stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloanan committed Mar 2, 2022
1 parent 5417816 commit 3d4a5c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '@fontsource/inter/variable.css'
import 'tailwindcss/tailwind.css'
import '../style/globals.css'

import type { NextPage } from 'next'
import type { AppProps } from 'next/app'
Expand All @@ -14,7 +14,7 @@ function CustomApp({ Component, pageProps }: CustomAppProps) {
return Component.disableLayout ? (
<Component {...pageProps} />
) : (
<div className='min-h-screen bg-gray-100'>
<div className='stylized-bg min-h-screen'>
<Component {...pageProps} />
</div>
)
Expand Down
9 changes: 9 additions & 0 deletions src/style/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

.stylized-bg {
background: radial-gradient(circle at bottom center, #ffb1e165, transparent 60%),
radial-gradient(circle at bottom left, #fff5f160, transparent 80%),
radial-gradient(circle at bottom right, #ffb09660, transparent 40%), rgb(245, 245, 245);
}

0 comments on commit 3d4a5c1

Please sign in to comment.