Skip to content

Commit

Permalink
style: global scss 추가
Browse files Browse the repository at this point in the history
style: global scss 추가
  • Loading branch information
hyuke81 authored Jan 21, 2025
2 parents d723d28 + 38ac8f5 commit 6cafd0d
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 0 deletions.
46 changes: 46 additions & 0 deletions src/styles/_buttons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
@import 'variables';
@import 'mixins';

.button {
@include buttonStyle;

// 버튼 크기
&Small {
@include buttonSize(4px 6px, $fontSizeSmall);
}
&Medium {
@include buttonSize(12px 16px, $fontSizeBase);
}
&Large {
@include buttonSize(12px 34px, $fontSizeLarge);
}

// 버튼 스타일
&Outlined {
border: 1px solid $borderColor;
background: #fafafa;
color: $textSecondaryColor;
border-radius: 29px;

&:hover {
background-color: $borderColor;
color: $textBoldColor;
}
}

&Dark {
background: #424242;
color: #FAFAFA;
border-radius: 5px;

&:hover {
background: black;
}
}

// 버튼 모양
&Rounded {
border-radius: 50px;
border-style: none;
}
}
18 changes: 18 additions & 0 deletions src/styles/_components.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.cardDark {
background: #D9D9D9;
border: 1px solid $borderColor;
border-style: none;
border-radius: 10px;
margin: 45px;
width: 200px;
height: 200px;
}

.cardOutlined{
border: 0.5px solid $borderColor;
border-radius: 5px;
margin: 48px;
padding: 10px;
width: 200px;
height: 240px;
}
6 changes: 6 additions & 0 deletions src/styles/_layout.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
27 changes: 27 additions & 0 deletions src/styles/_reset.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html, body {
font-family: $fontFamily;
font-size: $fontSizeBase;
color: $textPrimaryColor;
background-color: $backgroundColor;
line-height: 1.6;
}

a {
text-decoration: none;
color: inherit;
}

ul, ol {
list-style: none;
}

img {
max-width: 100%;
height: auto;
}
14 changes: 14 additions & 0 deletions src/styles/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// 색상 변수
$colorPrimary: #4A90E2;
$colorSecondary: #999;
$backgroundColor: #F5F5F5;
$borderColor: #9E9E9E;
$textBoldColor: #222;
$textPrimaryColor: #424242;
$textSecondaryColor: #616161;

// 폰트 변수
$fontFamily: 'Pretendard', sans-serif;
$fontSizeBase: 18px;
$fontSizeSmall: 14px;
$fontSizeLarge: 24px;
6 changes: 6 additions & 0 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@import 'variables';
@import 'reset';
@import 'mixins';
@import 'layout';
@import 'buttons';
@import 'components';

0 comments on commit 6cafd0d

Please sign in to comment.