Tailwind CSS のコンセプトを読んでいる(後で更新する)
状態
途中だけど公開する。また後で書き足す。
Tailwind CSS
Utility-First のページ
感想
- 書き方を覚えれば書きやすそう
- クラス名の与え方にブレが発生しなくなる
- 他者と共同作業しやすくなる
メモ
- flexbox ユーティリティ
- https://tailwindcss.com/docs/display#flex
flex
,flex-shrink-0
- padding ユーティリティ
- max-width ユーティリティ
- margin ユーティリティ
- background-color ユーティリティ
- border-radius ユーティリティ
- https://tailwindcss.com/docs/border-radius
rounded-xl
- box-shadow ユーティリティ
- https://tailwindcss.com/docs/box-shadow
shadow-md
- width ユーティリティ
- height ユーティリティ
- space-between ユーティリティ
- https://tailwindcss.com/docs/space
space-x-4
space-x-4 > * + *
--tw-space-x-reverse: 0; margin-right: calc(1rem * var(--tw-space-x-reverse)); margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
- font size ユーティリティ
- text color ユーティリティ
- https://tailwindcss.com/docs/text-color
text-black
- font-weight ユーティリティ
- https://tailwindcss.com/docs/font-weight
font-medium
- コロン区切り
- hover や ブレークポイントの指定
- @apply