Skip to content

Commit

Permalink
[Feat] #1 - scss 적용 및 변수 모음집 생성 - scss 인텔리센스 익스텐션 vscode 추천
Browse files Browse the repository at this point in the history
  • Loading branch information
castberry10 committed Jul 15, 2024
1 parent feb191c commit 7bdeace
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 7 deletions.
3 changes: 3 additions & 0 deletions src/app/globals.css → src/app/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
--callout-border-rgb: 172, 175, 176;
--card-rgb: 180, 185, 188;
--card-border-rgb: 131, 134, 135;



}

@media (prefers-color-scheme: dark) {
Expand Down
5 changes: 5 additions & 0 deletions src/app/home/page.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@use '../../lib/styles/palette' as *;

// *{
// color: $main-blue-color;
// }
2 changes: 1 addition & 1 deletion src/app/home/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styles from "./page.module.css";
import styles from "./page.module.scss";

export default function HomePage() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import "./globals.scss";

const inter = Inter({ subsets: ["latin"] });

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/app/login/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styles from "./page.module.css";
import styles from "./page.module.scss";

export default function LoginPage() {
return (
Expand Down
Empty file removed src/app/mypage/page.module.css
Empty file.
4 changes: 4 additions & 0 deletions src/app/mypage/page.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@use '../../lib/styles/palette' as *;
.main{
color: $main-blue-color;
}
4 changes: 2 additions & 2 deletions src/app/mypage/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import styles from "./page.module.css";
import styles from "./page.module.scss";

export default function MyPage() {
return (
<div>
<div className={styles.main}>
MyPage
</div>
);
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from "next/image";
import styles from "./page.module.css";
import styles from "./page.module.scss";

export default function Home() {
return (
Expand Down
Empty file removed src/app/shop/page.module.css
Empty file.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/app/shop/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styles from "./page.module.css";
import styles from "./page.module.scss";

export default function ShopPage() {
return (
Expand Down
2 changes: 2 additions & 0 deletions src/lib/styles/_palette.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// 색상 팔레트
$main-blue-color: rgb(110, 110, 229);

0 comments on commit 7bdeace

Please sign in to comment.