-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[송규경] Chore/Design: Design System 세팅 및 Nested CSS warning 해결 #15
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
'tailwindcss/nesting': {}, | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function Home() { | ||
return <main className="flex min-h-screen flex-col items-center justify-between p-24">마이 페이지</main>; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import type { Metadata } from 'next'; | ||
import { Inter } from 'next/font/google'; | ||
import { Noto_Sans_KR } from 'next/font/google'; | ||
import '../styles/globals.css'; | ||
import ReactQueryProviders from '@/utils/react-query-provider'; | ||
|
||
const inter = Inter({ subsets: ['latin'] }); | ||
// Noto sans 폰트 적용 | ||
const notoSansKr = Noto_Sans_KR({ | ||
preload: false, | ||
weight: ['100', '200', '300', '400', '500', '600', '700', '800', '900'], | ||
}); | ||
Comment on lines
+6
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. notoSansKr의 경우, preload false 값으로 불러옵니다. |
||
|
||
export const metadata: Metadata = { | ||
title: 'Team Six', | ||
|
@@ -17,7 +21,7 @@ export default function RootLayout({ | |
}>) { | ||
return ( | ||
<html lang="ko"> | ||
<body className={inter.className}> | ||
<body className={notoSansKr.className}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 혹시 글로벌 css에 넣으면 안 되는 건가 싶어서요! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. google font를 import 해서 가장 최상단 root Layout에서 감싸주려고 했어요 |
||
<ReactQueryProviders>{children}</ReactQueryProviders> | ||
</body> | ||
</html> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning 해결 포인트입니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오호 클래스명이 아니라 css 파일 내에서 nesting(중첩) 문법을 사용할 때 쓰일 때 필요한 요소로 보이는데 맞나요?!
테일윈드에서 nesting 문법으로
@apply
을 보통 이용하지 않나요?!