Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

付録C チートシート

1 ページで引ける早見表です。

ブレークポイント(第17章)

プレフィックス最小幅
sm:40rem (640px)
md:48rem (768px)
lg:64rem (1024px)
xl:80rem (1280px)
2xl:96rem (1536px)

※ コンテナクエリは @container@sm: @md: ...(親要素の幅に反応)

spacing スケール(第10章)

基準 --spacing は既定 0.25rem(4px)。数値 × 0.25rem

クラス
p-10.25rem (4px)
p-20.5rem (8px)
p-41rem (16px)
p-61.5rem (24px)
p-82rem (32px)
p-123rem (48px)

フォントサイズ(第11章)

クラス
text-xs12px
text-sm14px
text-base16px
text-lg18px
text-xl20px
text-2xl24px
text-3xl30px

色の段階(第12章)

50(最も明るい)→ 100 → … → 500(基準)→ … → 900950(最も暗い)。 例: bg-gray-50 text-gray-500 border-gray-900。不透明度は /数値(例 bg-black/50)。

影(v4・第13章)

小 → 大: shadow-2xs shadow-xs shadow-sm shadow-md shadow-lg shadow-xl shadow-2xl(無: shadow-none) ※ v3 の shadow-sm は v4 の shadow-xs、v3 の shadow は v4 の shadow-sm

v3 → v4 主な変更(第29章)

v3v4
@tailwind base; ...@import "tailwindcss";
tailwind.config.js@theme(CSS)
!bg-red-500bg-red-500!
shadow-sm / shadowshadow-xs / shadow-sm
rounded-smrounded-xs
ring(3px)ring-3(既定は 1px)
outline-noneoutline-hidden
既定のボーダー色 gray-200currentColor