Skip to content

Commit bc4a83d

Browse files
committed
fix : Tailwind 적용 오류 및 토큰 재설정
1 parent c170c0b commit bc4a83d

File tree

7 files changed

+222
-146
lines changed

7 files changed

+222
-146
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
"@types/node": "^20",
2222
"@types/react": "^19",
2323
"@types/react-dom": "^19",
24+
"autoprefixer": "^10.4.21",
2425
"eslint": "^9",
2526
"eslint-config-next": "15.5.4",
27+
"postcss": "^8.5.6",
2628
"tailwindcss": "4.1.14",
2729
"typescript": "^5"
2830
}

pnpm-lock.yaml

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
'@tailwindcss/postcss': {},
4+
autoprefixer: {},
5+
},
6+
};

src/pages/_app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import "@/styles/globals.css";
2-
import type { AppProps } from "next/app";
1+
import '../styles/globals.css';
2+
import type { AppProps } from 'next/app';
33

44
export default function App({ Component, pageProps }: AppProps) {
55
return <Component {...pageProps} />;

src/pages/index.tsx

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
export default function Home() {
1+
export default function HomePage() {
22
return (
3-
<>
4-
<div className='flex flex-col items-center justify-center min-h-screen py-2 bg-gray-50'>
5-
<main className='flex flex-col items-center justify-center w-full flex-1 px-4 sm:px-20 text-center'>
6-
<h1 className='text-4xl sm:text-6xl font-extrabold text-gray-900 mb-4'>
7-
초기 세팅 완료
8-
</h1>
9-
<p className='mt-3 text-lg sm:text-2xl text-gray-600'>
10-
Next.js(Page Router) + TS + Tailwind + Axios
11-
</p>
12-
</main>
13-
</div>
14-
</>
3+
<div className='bg-mint-500 text-background p-8 '>
4+
<h1 className='p-20 text-headline-lg-serif'>테스트</h1>
5+
<p className='text-pink-400 text-display-lg'>되거라</p>
6+
</div>
157
);
168
}

0 commit comments

Comments
 (0)