-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typographyをtailwind.configに追加 #46
base: develop
Are you sure you want to change the base?
Conversation
komura-c
commented
Jan 14, 2025
- Typographyをtailwind.configに追加しました
- https://www.figma.com/design/JKCppXvTVKtFGRa6hNYXBz/Web%E3%83%87%E3%82%B6%E3%82%A4%E3%83%B3?node-id=447-1035&t=1XRW1yQKA8YQIFFR-0
- text-10, text-32-bold などで利用できます
tailwind.config.ts
Outdated
"10": ["10px", { fontWeight: 400 }], | ||
"12": ["12px", { fontWeight: 400 }], | ||
"14": ["14px", { fontWeight: 400 }], | ||
"14-bold": ["14px", { fontWeight: 700 }], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@komura-c
[Q]
font weightは別でクラス指定してあげれば良いのかなと思ったんですがどう思いますか?
https://tailwindcss.com/docs/font-weight
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kp047i
それであれば、font weightはデフォルトでfont-normal
, font-bold
があるので要らないですかね?
この組み合わせしか使われてないのであれば、text-xxx
でどちらも指定できた方が便利かなと思い追加しました!
kpさん的にはどちらの方が使いやすいでしょうか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@komura-c
個人的にはシンプルにサイズだけで良いかなと思いました!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM