문의드립니다!
안녕하세요, 강사님!
친절하고 상세하게 답변 남겨주셔서 감사합니다:)
남겨주신 답변 참고해서 제가 임의로 폰트 사이즈를 정한 후 피그마 토큰에 적용해 보았는데요, 제대로 작업한게 맞는지 궁금해서요. 스케일값 없이 작업했는데 한 번 확인해주시면 감사하겠습니다~!
{
"140": {
"value": "140%",
"type": "lineHeights"
},
"150": {
"value": "150%",
"type": "lineHeights"
},
"160": {
"value": "160%",
"type": "lineHeights"
},
"170": {
"value": "170%",
"type": "lineHeights"
},
"Default": {
"value": "16",
"type": "fontSizes"
},
"heading": {
"H1": {
"value": "{Default} * 5",
"type": "fontSizes"
},
"H2": {
"value": "{Default} * 4",
"type": "fontSizes"
},
"H3": {
"value": "{Default} * 3.375",
"type": "fontSizes"
},
"H4": {
"value": "{Default} * 3",
"type": "fontSizes"
}
},
"subtitle": {
"S1": {
"value": "{Default} * 2.25",
"type": "fontSizes"
},
"S2": {
"value": "{Default} * 1.75",
"type": "fontSizes"
},
"S3": {
"value": "{Default} * 1.375",
"type": "fontSizes"
}
},
"button": {
"button": {
"value": "{Default} + 2",
"type": "fontSizes"
}
},
"Pretendard": {
"value": "Pretendard",
"type": "fontFamilies"
},
"bold": {
"value": "Bold",
"type": "fontWeights"
},
"firescope_red": {
"value": "#bd382b",
"type": "color"
},
"content primary": {
"value": "#1c1918",
"type": "color"
},
"body": {
"B1": {
"value": "{Default}",
"type": "fontSizes"
},
"B2": {
"value": "{Default}",
"type": "fontSizes"
}
},
"caption": {
"C1": {
"value": "{Default} - 2",
"type": "fontSizes"
},
"C2": {
"value": "{Default} - 4",
"type": "fontSizes"
}
},
"Heading": {
"H1": {
"value": {
"fontFamily": "{Pretendard}",
"fontWeight": "{bold}",
"lineHeight": "{140}",
"fontSize": "{heading.H1}",
"letterSpacing": "{letterSpacing.0}",
"paragraphSpacing": "{paragraphSpacing.0}",
"textCase": "{textCase.none}",
"textDecoration": "{textDecoration.none}"
},
"type": "typography"
},
"H2": {
"value": {
"fontFamily": "{Pretendard}",
"fontWeight": "{bold}",
"lineHeight": "{140}",
"fontSize": "{heading.H2}",
"letterSpacing": "{letterSpacing.0}",
"paragraphSpacing": "{paragraphSpacing.0}",
"textCase": "{textCase.none}",
"textDecoration": "{textDecoration.none}"
},
"type": "typography"
},
"H3": {
"value": {
"fontFamily": "{Pretendard}",
"fontWeight": "{bold}",
"lineHeight": "{140}",
"fontSize": "{heading.H3}",
"letterSpacing": "{letterSpacing.0}",
"paragraphSpacing": "{paragraphSpacing.0}",
"textCase": "{textCase.none}",
"textDecoration": "{textDecoration.none}"
},
"type": "typography"
},
"H4": {
"value": {
"fontFamily": "{Pretendard}",
"fontWeight": "{bold}",
"lineHeight": "{140}",
"fontSize": "{heading.H4}",
"letterSpacing": "{letterSpacing.0}",
"paragraphSpacing": "{paragraphSpacing.0}",
"textCase": "{textCase.none}",
"textDecoration": "{textDecoration.none}"
},
"type": "typography"
}
},
"Subtitle": {
"S1": {
"value": {
"fontFamily": "{Pretendard}",
"fontWeight": "{semiBold}",
"lineHeight": "{150}",
"fontSize": "{subtitle.S1}",
"letterSpacing": "{letterSpacing.0}",
"paragraphSpacing": "{paragraphSpacing.0}",
"textCase": "{textCase.none}",
"textDecoration": "{textDecoration.none}"
},
"type": "typography"
},
"S2": {
"value": {
"fontFamily": "{Pretendard}",
"fontWeight": "{semiBold}",
"lineHeight": "{150}",
"fontSize": "{subtitle.S2}",
"letterSpacing": "{letterSpacing.0}",
"paragraphSpacing": "{paragraphSpacing.0}",
"textCase": "{textCase.none}",
"textDecoration": "{textDecoration.none}"
},
"type": "typography"
},
"S3": {
"value": {
"fontFamily": "{Pretendard}",
"fontWeight": "{semiBold}",
"lineHeight": "{150}",
"fontSize": "{subtitle.S3}",
"letterSpacing": "{letterSpacing.0}",
"paragraphSpacing": "{paragraphSpacing.0}",
"textCase": "{textCase.none}",
"textDecoration": "{textDecoration.none}"
},
"type": "typography"
}
},
"semiBold": {
"value": "SemiBold",
"type": "fontWeights"
},
"regular": {
"value": "Regular",
"type": "fontWeights"
},
"medium": {
"value": "Medium",
"type": "fontWeights"
},
"Button": {
"Button": {
"value": {
"fontFamily": "{Pretendard}",
"fontWeight": "{bold}",
"lineHeight": "{160}",
"fontSize": "{button.button}",
"letterSpacing": "{letterSpacing.0}",
"paragraphSpacing": "{paragraphSpacing.0}",
"textCase": "{textCase.none}",
"textDecoration": "{textDecoration.none}"
},
"type": "typography"
}
},
"Body": {
"B1": {
"value": {
"fontFamily": "{Pretendard}",
"fontWeight": "{semiBold}",
"lineHeight": "{160}",
"fontSize": "{body.B1}",
"letterSpacing": "{letterSpacing.0}",
"paragraphSpacing": "{paragraphSpacing.0}",
"textCase": "{textCase.none}",
"textDecoration": "{textDecoration.none}"
},
"type": "typography"
},
"B2": {
"value": {
"fontFamily": "{Pretendard}",
"fontWeight": "{medium}",
"lineHeight": "{160}",
"fontSize": "{body.B2}",
"letterSpacing": "{letterSpacing.0}",
"paragraphSpacing": "{paragraphSpacing.0}",
"textCase": "{textCase.none}",
"textDecoration": "{textDecoration.none}"
},
"type": "typography"
}
},
"Caption": {
"C1": {
"value": {
"fontFamily": "{Pretendard}",
"fontWeight": "{regular}",
"lineHeight": "{170}",
"fontSize": "{caption.C1}",
"letterSpacing": "{letterSpacing.0}",
"paragraphSpacing": "{paragraphSpacing.0}",
"textCase": "{textCase.none}",
"textDecoration": "{textDecoration.none}"
},
"type": "typography"
},
"C2": {
"value": {
"fontFamily": "{Pretendard}",
"fontWeight": "{regular}",
"lineHeight": "{170}",
"fontSize": "{caption.C2}",
"letterSpacing": "{letterSpacing.0}",
"paragraphSpacing": "{paragraphSpacing.0}",
"textCase": "{textCase.none}",
"textDecoration": "{textDecoration.none}"
},
"type": "typography"
}
}
}
답변 1
0
안녕하세요 SUNA LEE 님 :)
작성해주신 토큰 확인 해봤을 때 잘 작성해주신것 같습니다 ㅎㅎ
다만, 임의의 값을 넣어서 크기를 만드는건 좋으나, 나름의 규칙성을 가져야 시스템이 효율적이지 않을까 라는 생각을 가져봅니다.
지금 작성된 토큰에는 x5, x4, x3.375, x3 이런식으로 규칙적이지 않은 값들이 곱해지고 있는것 같은데요, 개발자 입장에서 보면 규칙적인 값이 곱해지는게 아니기 때문에 개발 작업이 오히려 더 힘들어 질 수 있을것 같아요
제가 오프라인 수업에서 항상 하는 이야기가 있습니다.
"시스템을 구성할 때는 항상 handoff를 고려하며 작업해야 한다" 인데요,
내가 만든 토큰이 어떻게 내보내지는지를 고민해야 하며 개발자가 토큰을 받았을 때 처리가 복잡해진다면, 그건 비효율적인 시스템이 될 수 있다는 것이죠,
오히려 개발자 입장에서는 일정규칙을 가지고 폰트가 증가하고 정수값이 아닌 소수의 값이 떨어지는걸 더 선호할 수 있을것 같아요, 이 부분은 같이 일하는 개발자에게 의사를 물어보는게 제일 좋을듯 보입니다 ^^&
(만약 제가 저 토큰을 받는 개발자라면 일관된 규칙을 사용하는 걸 선호)
borderTransparent를 라이트/다크모드에 이중등록
0
42
2
해결되었습니다.
0
35
1
안녕하세요! 강의잘 들었습니다.
0
94
2
타이포그래피 16 -> 14 변경 시 XXXL만 변경 안 됨
0
66
2
토큰스튜디오에서 폰트 스타일등록 문의
0
77
2
토큰에서 style로 export시 에러
0
81
2
컬러시스템 등록 관련
0
82
2
토큰 light/dark mode 오류
0
74
2
Pretendard 없으면 에러납니다
0
276
2
폰트 토큰 작업 할때
1
114
3
여기 수업에서 엘로우나 레드나 블루 이런 컬러들을 다양하게 만드는 이유가 뭔가요?
0
66
2
토큰을 깃허브에 올리는 방법이 없어진거 같은데요
1
93
2
토큰 export 할때 어떻게 해야 하나요? 버전이 바뀌어서 그런지 못찾겠어요
0
231
2
인프런 할때마다 짜증나는데 수업내용이 너무 오래된건 제발 삭제좀 하던지 다시 찍던지 해주세요
1
84
1
tailwind color generator 이게 작동이 잘 안되네요
0
86
2
figma tokens플러그인 안나오는데요??
0
137
2
혹시 토큰 가공할 수 있는 강의도 따로 있을까요??
1
64
2
피그마 배리어블에 export시 값 저장 안됨
0
230
3
Style - variable 문으ㅣ ㅜㅜ
0
73
2
borderTransparent 임포트가 안됩니다
1
73
2
화면이 보이지가 않아요?
0
72
1
컬러맵핑하고 라이트/다크 모드 설정시 색상 반전이 안돼요 ㅠㅠ
1
284
2
피그마 토큰 플러그인
1
299
2
깃허브 sync 오류
1
194
2





