Skip to content

Commit 99011bd

Browse files
author
리니_이경린
committed
feat: titleXsm text 추가
1 parent f60947d commit 99011bd

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

src/components/ui/Text/Text.module.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
titleLg,
4343
titleM,
4444
titleSm,
45+
titleXsm,
4546
bodyLg,
4647
bodyM,
4748
bodySm,
@@ -58,7 +59,10 @@
5859
@include titleM;
5960
} @else if $variant-name == titleSm {
6061
@include titleSm;
61-
} @else if $variant-name == bodyLg {
62+
} @else if $variant-name == titleXsm {
63+
@include titleXsm;
64+
}
65+
@else if $variant-name == bodyLg {
6266
@include bodyLg;
6367
} @else if $variant-name == bodyM {
6468
@include bodyM;

src/components/ui/Text/Text.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ type TextVariant =
22
| "titleLg"
33
| "titleM"
44
| "titleSm"
5+
| "titleXsm"
56
| "bodyLg"
67
| "bodyM"
78
| "bodySm"

src/styles/_mixins.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
font-weight: var(--font-weight-bold);
1414
}
1515

16+
@mixin titleXsm {
17+
font-size: var(--font-size-18);
18+
font-weight: var(--font-weight-bold);
19+
}
20+
1621
@mixin bodyLg {
1722
font-size: var(--font-size-16);
1823
font-weight: var(--font-weight-medium);

src/styles/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
--font-size-28: 1.75rem;
88
--font-size-24: 1.5rem;
99
--font-size-22: 1.375rem;
10+
--font-size-18: 1.125rem;
1011
--font-size-16: 1rem;
1112
--font-size-15: 0.9375rem;
1213
--font-size-14: 0.875rem;

0 commit comments

Comments
 (0)