Skip to content
enhancing-progressively logo

enhancing-progressively

CSS-first approach - use CSS before JavaScript. Triggers: レイアウト, スタイル, 位置, アニメーション, 表示/非表示, トグル, レスポンシブ, CSS Grid, Flexbox, transforms, transitions, CSSのみ, JavaScript不要, シンプル

SKILL.md

Full skill instructions

プログレッシブエンハンスメント

優先順位

優先度アプローチ例
1HTMLセマンティック要素、ネイティブ入力
2CSSGrid, Flexbox, :has(), transitions
3JS本当に必要な場合のみ

検出

JSパターンCSS代替
element.style.displayCSS :has(), [open], <dialog>
addEventListener('resize')CSS @media, clamp(), min()
getBoundingClientRectCSS Grid, Flexbox, gap
setInterval アニメーションCSS transition, @keyframes
classList.toggleCSS :checked, :target
scrollTo, scrollIntoViewCSS scroll-behavior: smooth
matchMediaCSS @media, @container