-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from devping-kr/THKV-110
Fix[THKV-110]: Typography variants 수정
- Loading branch information
Showing
2 changed files
with
58 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,62 @@ | ||
import { cva } from 'class-variance-authority'; | ||
|
||
export const typographyVariants = cva( | ||
'whitespace-pre-line text-wrap font-semibold', | ||
{ | ||
variants: { | ||
type: { | ||
heading1: 'text-[24px] leading-[145%]', | ||
heading2: 'text-[22px] leading-[145%]', | ||
heading3: 'text-[18px] leading-[155%]', | ||
heading4: 'text-[16px] leading-[155%]', | ||
title1: 'text-[20px] leading-[155%]', | ||
title2: 'text-[18px] leading-[155%]', | ||
title3: 'text-[16px] leading-[155%]', | ||
title4: 'text-[14px] leading-[155%]', | ||
title5: 'text-[12px] leading-[155%]', | ||
body1: 'text-[18px] leading-[155%]', | ||
body2: 'text-[16px] leading-[155%]', | ||
body3: 'text-[14px] leading-[155%]', | ||
subLabel1: 'text-[16px] leading-[155%]', | ||
subLabel2: 'text-[14px] leading-[155%]', | ||
caption1: 'text-[12px] leading-[155%]', | ||
caption2: 'text-[8px] leading-[155%]', | ||
question: 'text-[22px] leading-[145%]', | ||
mealHeaderTitle: 'text-[42px] leading-[150%]', | ||
authTitle: 'text-[50px] leading-[150%]', | ||
pageHeaderTitle: 'text-[28px] leading-[145%]', | ||
mealCalendarTitle: 'text-[24px] leading-[155%]', | ||
}, | ||
weight: { | ||
bold: 'font-bold', | ||
thin: 'font-thin', | ||
normal: 'font-normal', | ||
}, | ||
color: { | ||
white: 'text-white-100', | ||
darken: 'text-dark-200', | ||
dark: 'text-dark-100', | ||
gray: 'text-gray-500', | ||
}, | ||
export const typographyVariants = cva('whitespace-pre-line text-wrap', { | ||
variants: { | ||
type: { | ||
H1: 'text-[40px] leading-[1.44] tracking-[-0.008em] font-bold', | ||
H2: 'text-[32px] leading-[1.44] tracking-[-0.008em] font-bold', | ||
H3: 'text-[28px] leading-[1.44] tracking-[-0.008em] font-bold', | ||
H4: 'text-2xl leading-[1.44] tracking-[-0.008em] font-bold', | ||
H5: 'text-xl leading-[1.44] tracking-[-0.008em] font-bold', | ||
Subtitle1: 'text-lg leading-[1.44] tracking-[-0.008em] font-bold', | ||
Subtitle2: 'text-base leading-[1.44] tracking-[-0.008em] font-bold', | ||
Subtitle3: 'text-sm leading-[1.44] tracking-[-0.008em] font-bold', | ||
Body1: 'text-lg leading-[1.52] tracking-[-0.008em] font-medium', | ||
Body2: 'text-base leading-[1.52] tracking-[-0.008em] font-medium', | ||
Body3: 'text-sm leading-[1.52] tracking-[-0.008em] font-medium', | ||
label1: 'text-sm leading-[1.28] tracking-[-0.008em] font-bold', | ||
label2: 'text-xs leading-[1.28] tracking-[-0.008em] font-bold', | ||
label3: 'text-[10px] leading-[1.28] tracking-[-0.008em] font-bold', | ||
Caption1: 'text-xs leading-[1.28] tracking-[-0.008em] font-medium', | ||
Caption2: 'text-[10px] leading-[1.28] tracking-[-0.008em] font-normal', | ||
|
||
// 리디자인 변경 전 type | ||
heading1: 'text-[24px] leading-[145%]', | ||
heading2: 'text-[22px] leading-[145%]', | ||
heading3: 'text-[18px] leading-[155%]', | ||
heading4: 'text-[16px] leading-[155%]', | ||
title1: 'text-[20px] leading-[155%]', | ||
title2: 'text-[18px] leading-[155%]', | ||
title3: 'text-[16px] leading-[155%]', | ||
title4: 'text-[14px] leading-[155%]', | ||
title5: 'text-[12px] leading-[155%]', | ||
body1: 'text-[18px] leading-[155%]', | ||
body2: 'text-[16px] leading-[155%]', | ||
body3: 'text-[14px] leading-[155%]', | ||
subLabel1: 'text-[16px] leading-[155%]', | ||
subLabel2: 'text-[14px] leading-[155%]', | ||
caption1: 'text-[12px] leading-[155%]', | ||
caption2: 'text-[8px] leading-[155%]', | ||
question: 'text-[22px] leading-[145%]', | ||
mealHeaderTitle: 'text-[42px] leading-[150%]', | ||
authTitle: 'text-[50px] leading-[150%]', | ||
pageHeaderTitle: 'text-[28px] leading-[145%]', | ||
mealCalendarTitle: 'text-[24px] leading-[155%]', | ||
}, | ||
weight: { | ||
bold: 'font-bold', | ||
thin: 'font-thin', | ||
normal: 'font-normal', | ||
}, | ||
defaultVariants: { | ||
type: 'body3', | ||
color: 'dark', | ||
color: { | ||
white: 'text-white-100', | ||
darken: 'text-dark-200', | ||
dark: 'text-dark-100', | ||
gray: 'text-gray-500', | ||
}, | ||
}, | ||
); | ||
defaultVariants: { | ||
type: 'body3', | ||
color: 'dark', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters