オプション
家家 Skill その他 design-taste-frontend-v1

design-taste-frontend-v1

nexu-io/open-design nexu-io/open-design

v1の「taste-skill」のオリジナル版で、その正確な動作に依存するプロジェクト向けに保存されています。現在のデフォルトは `design-taste-frontend`(v2 実験版)であり、これは大幅に書き直されたものです。完全な下位互換性が必要な場合にのみ、このv1のインストール名を使用してください。

...すべて拡張します
27
更新された時間 2026年8月15日

主体性の高いフロントエンドスキル

1. アクティブなベースライン構成

  • DESIGN_VARIANCE: 8 (1=完全な対称性、10=芸術的なカオス)
  • MOTION_INTENSITY: 6 (1=静的/動きなし、10=映画的/魔法のような物理演算)
  • VISUAL_DENSITY: 4 (1=アートギャラリー/開放感、10=パイロットのコックピット/データがぎっしり)

AIへの指示:すべての生成における標準的なベースラインは、これらの値(8、6、4)に厳密に設定されています。 ユーザーにこのファイルの編集を求めないでください。それ以外の場合、常にユーザーの指示に従ってください:チャットプロンプトでユーザーが明示的に要求した内容に基づいて、これらの値を動的に調整してください。これらの基準値(またはユーザーによって上書きされた値)をグローバル変数として使用し、セクション3から7までの具体的なロジックを駆動させてください。

2. デフォルトのアーキテクチャと規約

ユーザーが明示的に別のスタックを指定しない限り、一貫性を維持するために以下の構造上の制約に従ってください:

  • 依存関係の検証 [必須]:いかなるサードパーティ製ライブラリ(例:framer-motion、lucide-react、zustand)をインポートする前にも、必ずpackage.json を確認してください。 パッケージが存在しない場合は、コードを提供する前に、インストールコマンド(例:npm install package-name)を必ず出力してください。ライブラリが存在すると決して仮定しないでください。
  • フレームワークとインタラクティブ性:React または Next.js。デフォルトはサーバーコンポーネント(RSC)とします。
    • RSCの安全性:グローバル状態はクライアントコンポーネントでのみ機能します。Next.jsでは、プロバイダーを「use client」コンポーネントでラップしてください。
    • インタラクティブ機能の分離:セクション4または7(モーション/リキッドグラス)が有効な場合、特定のインタラクティブなUIコンポーネントは、最上部に「use client」を記述した独立したリーフコンポーネントとして抽出する必要があります。サーバーコンポーネントは、静的なレイアウトのみをレンダリングしなければなりません。
  • 状態管理:分離されたUIにはローカルのuseState/useReducerを使用してください。プロパティの深層ドリルを回避するため、グローバル状態の使用は厳格に制限してください。
  • スタイリング方針:スタイリングの90%にはTailwind CSS(v3/v4)を使用してください。
    • TAILWIND のバージョンロック:まずpackage.jsonを確認してください。v3 プロジェクトでは v4 の構文を使用しないでください。
    • T4設定の注意点:v4の場合、postcss.config.jsでtailwindcssプラグインを使用しないでください。@tailwindcss/postcssまたはViteプラグインを使用してください。
  • 絵文字禁止ポリシー [重要]:コード、マークアップ、テキストコンテンツ、altテキストにおいて、いかなる場合も絵文字を使用してはなりません。記号は高品質なアイコン(Radix、Phosphor)またはシンプルなSVGプリミティブに置き換えてください。絵文字は禁止されています。
  • レスポンシブ設計と余白:
    • ブレークポイント(sm、md、lg、xl)を標準化してください。
    • ページレイアウトはmax-w-[1400px]、max-auto、またはmax-w-7xl を使用して収めること。
    • ビューポートの安定性 [重要]:全高のヒーローセクションでh-screenを使用してはなりません。モバイルブラウザ(iOS Safari)でのレイアウトの急激なずれを防ぐため、常にmin-h-[100dvh]を使用してください。
    • Flex-Mathよりグリッドを優先:複雑なFlexboxのパーセンテージ計算(w-[calc(33%-1rem)])は絶対に使用しないでください。信頼性の高い構造を実現するために、常にCSSグリッド(grid grid-cols-1 md:grid-cols-3 gap-6)を使用してください。
  • アイコン:インポートパスとして、必ず@phosphor-icons/reactまたは@radix-ui/react-iconsを正確に指定してください(インストールされているバージョンを確認してください)。strokeWidth をグローバルに統一してください(例:1.5または2.0 のいずれかのみを使用)。

3. デザインエンジニアリング指針(バイアス補正)

LLMには、特定の陳腐なUIパターンに対する統計的なバイアスが存在します。以下の設計ルールに基づいて、積極的に高品質なインターフェースを構築してください:

ルール1:決定論的なタイポグラフィ

  • 表示/見出し:デフォルトでtext-4xl、md:text-6xl、tracking-tighter、leading-none を設定する。
    • アンチ・スラップ:「プレミアム」や「クリエイティブ」な雰囲気を醸し出すためのInterフォントの使用を控える。Geist、Outfit、Cabinet Grotesk、またはSatoshi を使用して、独自の個性を強制する。
    • 技術的なUIルール:ダッシュボードやソフトウェアのUIにおいて、セリフフォントの使用は厳禁です。これらのコンテキストでは、ハイエンドなサンセリフフォントの組み合わせ(Geist+Geist MonoまたはSatoshi+JetBrains Mono)のみを使用してください。
  • 本文/段落:デフォルトはtext-base text-gray-600 leading-relaxed max-w-[65ch] とする。

ルール 2: カラーキャリブレーション

  • 制約:アクセントカラーは最大1色。彩度 < 80%。
  • LILAによる禁止事項:「AIパープル/ブルー」の美学は厳格に禁止されています。紫色のボタングローやネオン調のグラデーションは使用しないでください。完全にニュートラルなベースカラー(Zinc/Slate)を使用し、高コントラストで単一のアクセントカラー(例:Emerald、Electric Blue、Deep Rose)を組み合わせてください。
  • 色の統一性:出力全体を通じて1つのカラーパレットに統一してください。同じプロジェクト内で、暖色系と寒色系のグレーを混在させないでください。

ルール3:レイアウトの多様化

  • 中央配置の回避: LAYOUT_VARIANCE > 4 の場合、中央揃えのヒーローセクション/H1セクションは厳禁です。「スプリットスクリーン」(50/50)、「コンテンツ左揃え/アセット右揃え」、または「非対称の余白」構造を強制してください。

ルール4:重要度、影、および「カードの乱用防止」

  • ダッシュボードの強化: VISUAL_DENSITY > 7の場合、汎用的なカードコンテナの使用は厳禁とする。border-t、divide-y、または純粋なネガティブスペースを用いた論理的なグループ分けを行うこと。機能的にz-indexによる浮き出しが必要な場合を除き、データ指標は枠に閉じ込められず、余裕を持たせること。
  • 実施要領:レイヤーの高さが階層関係を明確に伝える場合にのみ、カードを使用すること。影を使用する場合は、背景の色相に合わせて色調を調整すること。

ルール5:インタラクティブなUIの状態

  • 必須の生成:LLMは自然に「静的な」成功状態を生成します。完全なインタラクションサイクルを必ず実装してください:
    • 読み込み中:レイアウトサイズに合わせたスケルトンローダー(汎用的な円形のスピナーは避ける)。
    • 空の状態:データの入力方法を示す、美しく構成された空の状態。
    • エラー状態:明確でインラインのエラー報告(例:フォーム)。
    • 触覚フィードバック: :active 状態では、-translate-y-[1px]またはscale-[0.98]を使用して、成功やアクションを示す物理的な押し込み感をシミュレートする。

ルール 6:データとフォームのパターン

  • フォーム:ラベルは入力フィールドの上に配置しなければならない。ヘルパーテキストは任意だが、マークアップには記述すべきである。エラーテキストは入力フィールドの下に配置する。入力ブロックには標準のgap-2を使用する。

4. 創造的な先見性(ずさんな実装の防止)

ありきたりなAIデザインに積極的に対抗するため、以下のハイエンドなコーディング概念を体系的に実装し、基本方針としてください:

  • 「リキッド・グラス」の屈折効果:ガラス調の表現が必要な場合は、backdrop-blurにとどまらず、さらに一歩踏み込んだ表現を心がけてください。 1pxの内側ボーダー(border-white/10)と、控えめな内側シャドウ(shadow-[inset_0_1px_0_rgba(255,255,255,0.1)])を追加し、物理的なエッジの屈折をシミュレートする。
  • 磁気マイクロフィジックス(MOTION_INTENSITY > 5 の場合):マウスカーソルに向かってわずかに引き寄せられるボタンを実装してください。重要:磁気ホバーや連続アニメーションに React のuseState を絶対に使用しないでください。 モバイルでのパフォーマンス低下を防ぐため、Reactのレンダリングサイクル外では、Framer MotionのuseMotionValueおよびuseTransformのみを使用してください。
  • 永続的なマイクロインタラクション: MOTION_INTENSITY > 5 の場合、標準コンポーネント(アバター、ステータスドット、背景)に、連続的かつ無限のマイクロアニメーション(Pulse、Typewriter、Float、Shimmer、Carousel)を組み込みます。 すべてのインタラクティブな要素に、プレミアムなスプリング物理演算(type: "spring", stiffness: 100, damping: 20)を適用してください。リニアなイージングは使用しないでください。
  • レイアウト遷移:状態変化に伴うスムーズな順序変更、サイズ変更、および共有要素の遷移を実現するため、常に Framer Motion のlayoutおよびlayoutIdプロパティを利用する。
  • 段階的な演出:リストやグリッドを即座にマウントしないでください。staggerChildren(Framer)または CSS カスケード(animation-delay: calc(var(--index) * 100ms))を使用して、順次表示されるウォーターフォール効果を作成してください。重要: staggerChildren を使用する場合、親(variants)と子要素は必ず同一のクライアントコンポーネントツリー内に存在する必要があります。データが非同期で取得される場合は、そのデータをプロパティとして一元化された親 Motion ラッパーに渡してください。

5. パフォーマンスのガードレール

  • DOM コスト:連続的な GPU 再描画やモバイル端末でのパフォーマンス低下を防ぐため、グレイン/ノイズフィルターは、固定された pointer-events-none 属性を持つ疑似要素(例:fixed inset-0 z-50 pointer-events-none)にのみ適用し、スクロール可能なコンテナには絶対に適用しないでください。
  • ハードウェアアクセラレーション: top、left、width、heightのアニメーションは絶対に避けてください。アニメーションはtransformとopacityのみで行ってください。
  • Z-Indexの制限:理由もなくz-50や z-10を無闇に乱用してはなりません。z-indexは、システム的なレイヤーコンテキスト(スティッキーナビゲーションバー、モーダル、オーバーレイ)にのみ厳密に使用してください。

6. 技術リファレンス(ダイアルの定義)

DESIGN_VARIANCE(レベル 1~10)

  • 1~3(予測可能):Flexboxのjustify-center、厳密な12列の対称グリッド、均等なパディング。
  • 4~7(オフセット): margin-top: -2remによる重なり、異なる画像のアスペクト比(例:4:3 と 16:9 を並べる)、中央揃えのデータの上に左揃えのヘッダーを配置する。
  • 8-10(非対称):メイソンリーレイアウト、分数単位を使用した CSS Grid(例:grid-template-columns: 2fr 1fr 1fr)、広大な空白領域(padding-left: 20vw)。
  • モバイルでのオーバーライド:レベル 4~10 の場合、md以上の非対称レイアウトは、水平スクロールやレイアウトの崩壊を防ぐため、ビューポートが768px 未満の環境では、厳格な単一カラムレイアウト(w-full、px-4、py-8)に積極的にフォールバックしなければなりません。

モーション強度(レベル 1~10)

  • 1~3(静的):自動アニメーションなし。CSSの:hoverおよび:active状態のみ。
  • 4~7(流動的なCSS): transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) を使用する。ロードインにはanimation-delayのカスケードを使用する。transformとopacity に厳密に焦点を当てる。will-change: transform は控えめに使用する。
  • 8~10(高度な演出):スクロールによってトリガーされる複雑な表示効果やパララックス効果。Framer Motionのフックを使用する。window.addEventListener('scroll')は絶対に使用しない。

VISUAL_DENSITY(レベル1~10)

  • 1-3(アートギャラリーモード):余白を多めに確保。セクション間の間隔を広く取る。全体的に高級感があり、すっきりとした印象を与える。
  • 4-7(日常アプリモード):標準的なWebアプリ向けの通常の余白。
  • 8~10(コックピットモード):パディングは極小。カードボックスは使用せず、データを区切るには1pxの線のみ。すべてがぎっしりと詰め込まれている。必須:すべての数値には等幅フォント(font-mono)を使用すること。

7. AI TELLS(禁止パターン)

プレミアムで汎用的な印象を与えない出力を保証するため、明示的に要求されない限り、以下の一般的なAIデザインの特徴を厳格に回避しなければなりません:

ビジュアルおよびCSS

  • ネオン/外側グロー禁止:デフォルトのbox-shadowによるグローや自動生成のグローは使用しないでください。内側のボーダーや、控えめな色付きシャドウを使用してください。
  • 純黒( #000000)の使用禁止: #000000は絶対に使用しないでください。オフブラック、Zinc-950、またはチャコールを使用してください。
  • 彩度が高すぎるアクセントは使用禁止:ニュートラルカラーとエレガントに調和するよう、アクセントの彩度を下げてください。
  • テキストの過度なグラデーション禁止:大きな見出しには、text-fillグラデーションを使用しないでください。
  • カスタムマウスカーソルの使用禁止:時代遅れであり、パフォーマンスやアクセシビリティを損なう。

タイポグラフィ

  • 使用禁止フォント:使用禁止。Geist、Outfit、Cabinet Grotesk、またはSatoshiを使用してください。
  • H1の見出しを過度に大きくしない:最初の見出しは目立ちすぎてはいけません。階層構造は、単にサイズを大きくするだけでなく、太さや色で制御してください。
  • セリフ体の使用制限:セリフ体はクリエイティブ/編集デザインにのみ使用してください。シンプルなダッシュボードでは絶対にセリフ体を使用しないでください。

レイアウトと余白

  • 完璧な配置と間隔:パディングとマージンが数学的に完璧であることを確認してください。不自然な隙間が生じる浮動要素は避けてください。
  • 3列カードレイアウトは禁止:一般的な「横に3つの等しいカード」という機能行は禁止です。代わりに、2列のジグザグ配置、非対称グリッド、または水平スクロール方式を使用してください。

コンテンツとデータ(「ジェーン・ドウ」効果)

  • ありきたりな名前は使用禁止:「John Doe」、「Sarah Chan」、「Jack Su」などの使用は禁止です。非常に独創的で、現実味のある名前を使用してください。
  • ありきたりなアバターは禁止:アバターとして、標準的なSVGの「卵」アイコンやLucideのユーザーアイコンを使用しないでください。独創的で信憑性のある写真プレースホルダー、または独自のスタイリングを使用してください。
  • 偽の数値は使用禁止: 99.99%、50%、または単純な電話番号(1234567)のような予測可能な出力は避けてください。自然で雑多なデータ(47.2%、+1 (312) 847-1928)を使用してください。
  • スタートアップのありきたりな社名はNG:「Acme」、「Nexus」、「SmartFlow」など。高級感があり、文脈に即したブランド名を考案してください。
  • NO 無駄な言葉:「Elevate」、「Seamless」、「Unleash」、「Next-Gen」といったAIコピーライティングの決まり文句は避けてください。具体的な動詞を使用してください。

外部リソースおよびコンポーネント

  • Unsplashのリンク切れはNG:Unsplashは使用しないでください。https://picsum.photos/seed/{random_string}/800/600のような絶対パスで信頼性の高いプレースホルダー、またはSVG UIアバターを使用してください。
  • shadcn/uiのカスタマイズ: shadcn/uiの使用は可能ですが、汎用的なデフォルト状態での使用は絶対に避けてください。ハイエンドなプロジェクトの美学に合わせるため、半径、色、影を必ずカスタマイズしてください。
  • 本番環境対応のクリーンさ:コードは極めてクリーンで、視覚的に印象的で、記憶に残り、細部に至るまで入念に洗練されている必要があります。

8. クリエイティブ・アーセナル(ハイエンドなインスピレーション)

汎用的なUIをデフォルトとして使用してはなりません。この高度なコンセプトのライブラリを活用し、視覚的に印象的で記憶に残る成果物を確実に作り上げてください。適切な場合には、基本的なCSSモーションではなく、複雑なスクロールストーリーにはGSAP(ScrollTrigger/Parallax)を、3D/CanvasアニメーションにはThreeJS/WebGLを活用してください。重要:同じコンポーネントツリー内で、GSAP/ThreeJSとFramer Motionを絶対に混在させないでください。UIやBentoのインタラクションには、デフォルトでFramer Motionを使用してください。GSAP/ThreeJSは、厳格なuseEffectクリーンアップブロックで囲まれた、独立したフルページのスクロールストーリーやキャンバス背景にのみ使用してください。

標準的なヒーローセクションのパラダイム

  • 暗い画像の上にテキストを中央揃えにするのはやめましょう。非対称のヒーローセクションを試してみてください。テキストは左または右にすっきり整列させます。背景には、高品質で関連性の高い画像を使用し、微妙なフェード効果(ライトモードかダークモードかによって、背景色へと自然に暗くなったり明るくなったりする)を施してください。

ナビゲーションとメニュー

  • Mac OS ドック風の拡大表示:ナビゲーションバーを端に配置し、ホバー時にアイコンが滑らかに拡大します。
  • マグネティックボタン:カーソルに向かって物理的に引き寄せられるボタン。
  • グーイー・メニュー:サブ項目が粘性のある液体のようにメインボタンから分離する。
  • ダイナミック・アイランド:ステータスやアラートを表示するために変形する、錠剤型のUIコンポーネント。
  • コンテキスト対応ラジアルメニュー:クリックした座標の正確な位置で展開する円形のメニュー。
  • フローティング・スピードダイヤル:FABが飛び出し、二次的なアクションが曲線状に並ぶ。
  • メガメニューの展開:複雑なコンテンツを段階的にフェードインさせるフルスクリーンのドロップダウン。

レイアウトとグリッド

  • Bento Grid:非対称なタイルベースのグループ化(例:Appleのコントロールセンター)。
  • メイソンリー・レイアウト:行の高さが固定されていない、ずらして配置されたグリッド(例:Pinterest)。
  • クロマグリッド:微妙で連続的にアニメーションする色のグラデーションを示すグリッドの境界線やタイル。
  • スプリットスクリーンスクロール:スクロール時に画面の左右半分が反対方向にスライドする。
  • カーテン・リビール:スクロール時にヒーローセクションがカーテンのように中央から開く。

カードとコンテナ

  • パララックス・ティルト・カード:マウスの座標を追跡して3Dで傾くカード。
  • スポットライト・ボーダー・カード:カーソルの下で動的に光るカードの境界線。
  • Glassmorphism パネル:内部に屈折する境界線を持つ、本物のすりガラス風パネル。
  • ホログラフィック・フォイル・カード:ホバーすると、虹色の光の反射が移り変わるカード。
  • Tinder Swipe Stack:ユーザーがスワイプしてめくることができる、物理的なカードの積み重ね。
  • モーフィングモーダル:シームレスに独自のフルスクリーンダイアログコンテナへと展開するボタン。

スクロールアニメーション

  • スティッキー・スクロール・スタック:画面上部に固定され、物理的に重なり合うカード群。
  • 水平スクロールハイジャック:垂直スクロールが、滑らかな水平方向のギャラリーパンに変換されます。
  • ロコモーティブ・スクロール・シーケンス:フレームレートがスクロールバーに直接連動する動画/3Dシーケンス。
  • ズーム・パララックス:スクロールに合わせて中央の背景画像がシームレスに拡大・縮小する。
  • スクロール進行経路:ユーザーがスクロールするにつれて自動的に描画されるSVGベクターラインや経路。
  • リキッド・スワイプ・トランジション:粘性のある液体のように画面を拭い去るようなページ遷移。

ギャラリーとメディア

  • ドームギャラリー:パノラマドームのような感覚を与える3Dギャラリー。
  • Coverflow Carousel:中央が焦点となり、端が後方に傾いた3Dカルーセル。
  • ドラッグ・トゥ・パン・グリッド:あらゆる方向へ自由にドラッグできる、境界のないグリッド。
  • アコーディオン・イメージ・スライダー:ホバーすると完全に展開する、縦または横の細長い画像ストリップ。
  • ホバー・イメージ・トレイル:マウスの移動に合わせて、画像がポップアップしたりフェードアウトしたりする軌跡が残ります。
  • グリッチエフェクト画像:ホバー時にRGBチャンネルが一時的にシフトするデジタル歪み効果。

タイポグラフィとテキスト

  • キネティック・マーキー:スクロールに伴い、方向を反転したり速度を上げたりする、無限に続くテキスト帯。
  • テキストマスクの表示:動画の背景を透かして見せる透明な窓として機能する巨大なタイポグラフィ。
  • テキストスクランブル効果:読み込み時やホバー時に、マトリックス風の文字復号が行われる。
  • 円形テキストパス:回転する円形のパスに沿って湾曲したテキスト。
  • グラデーションストロークアニメーション:ストロークに沿ってグラデーションが連続的に流れるアウトラインテキスト。
  • キネティック・タイポグラフィ・グリッド:カーソルから避けたり、回転して遠ざかったりする文字のグリッド。

マイクロインタラクションとエフェクト

  • パーティクル爆発ボタン:成功時にパーティクルへと砕け散るCTA。
  • リキッド・プル・トゥ・リフレッシュ:水滴が飛び散るような動きをするモバイルのリロードインジケーター。
  • スケルトン・シマー:プレースホルダーボックス上を移動する、揺らめく光の反射。
  • 方向感知型ホバーボタン:マウスが進入した正確な方向から、ホバー時の塗りつぶしが現れる。
  • クリック時の波紋効果:クリック座標から正確に波紋が広がる視覚効果。
  • アニメーション付きSVG線描画:リアルタイムで自身の輪郭を描画するベクター。
  • メッシュグラデーション背景:有機的で、ラヴァランプのようなアニメーションの色の塊。
  • レンズぼけの深度:前景のアクションを強調するために、背景のUIレイヤーに動的なフォーカスぼかしをかける。

9. 「モーションエンジン」というBENTOパラダイム

現代的なSaaSダッシュボードや機能セクションを生成する際は、以下の「Bento 2.0」アーキテクチャとモーション哲学を必ず活用しなければなりません。これは静的なカードを超越し、絶え間ない物理演算に大きく依存した「VercelのコアとDribbbleのクリーンさが融合した」美学を徹底します。

A. コアデザイン哲学

  • 美学:ハイエンド、ミニマル、かつ機能的。
  • カラーパレット:背景は#f9fafb。カードは純白(#ffffff)で、1px のborder-slate-200/50 の枠線があります。
  • 表面:すべての主要なコンテナにrounded-[2.5rem]を使用。 「ディフュージョンシャドウ」(非常に薄く、広範囲に広がる影。例:shadow-[0_20px_40px_-15px_rgba(0,0,0,0.05)])を適用し、ごちゃつかせずに奥行きを演出する。
  • タイポグラフィ: Geist、Satoshi、またはCabinet Groteskのフォントスタックを厳守する。見出しには控えめなトラッキング(tracking-tight)を使用する。
  • ラベル:すっきりとしたギャラリースタイルの表示を維持するため、タイトルと説明文はカードの外側かつ下部に配置する必要があります。
  • ピクセル単位の精度:カード内部には、余裕のあるp-8またはp-10のパディングを使用してください。

B. アニメーションエンジンの仕様(Perpetual Motion)

すべてのカードには「永続的なマイクロインタラクション」を含めること。以下のFramer Motionの原則に従うこと:

  • スプリング物理演算:線形イージングは使用しないでください。高級感があり重厚な感触を得るために、type: "spring", stiffness: 100, damping: 20を使用してください。
  • レイアウト遷移: layoutおよびlayoutIdプロパティを積極的に活用し、順序変更、サイズ変更、および共有要素の状態遷移がスムーズに行われるようにしてください。
  • 無限ループ:ダッシュボードに「生き生きとした」印象を与えるため、すべてのカードには無限にループする「アクティブ状態」(パルス、タイプライター、フロート、またはカルーセル)が必要です。
  • パフォーマンス:動的なリストを でラップし、60fps になるよう最適化してください。パフォーマンス上極めて重要:永続的な動きや無限ループは、必ずメモ化(React.memo)し、独自の微小なクライアントコンポーネント内で完全に隔離する必要があります。親レイアウトで再レンダリングをトリガーしてはいけません。

C. 5つのカードアーキタイプ(マイクロアニメーション仕様)

Bentoグリッドを構築する際は、以下の特定のマイクロアニメーションを実装してください(例:行1:3列 | 行2:2列、70/30分割):

  1. インテリジェントリスト:無限の自動ソートループを持つ、アイテムの垂直スタック。アイテムはlayoutId を使用して位置を入れ替え、タスクの優先順位をリアルタイムで決定する AI をシミュレートします。
  2. コマンド入力:多段階のタイプライター効果を備えた検索/AIバー。点滅するカーソルや、きらめくローディンググラデーションを伴う「処理中」状態など、複雑なプロンプトを順次表示します。
  3. ライブステータス:「呼吸」するステータスインジケーターを備えたスケジューリングインターフェース。「オーバーシュート」のバネ効果で出現し、3秒間表示された後、消えるポップアップ通知バッジを含めてください。
  4. 広範囲のデータストリーム:データカードやメトリクスを表示する水平方向の「無限カルーセル」。ループがシームレス(x: ["0%", "-100%"] を使用)で、自然な速度で流れるようにしてください。
  5. 文脈に応じたUI(フォーカスモード):テキストブロックをずらしてハイライト表示するアニメーションに続き、マイクロアイコン付きのフローティングアクションツールバーが「フロートイン」するドキュメントビュー。

10. 最終出力前チェック

出力する前に、このマトリックスに基づいてコードを評価してください。これはロジックに適用する最後のフィルターとなります。

  • グローバル状態は、恣意的にではなく、深いプロパティドリリングを回避するために適切に使用されていますか?
  • 変動の大きいデザインにおいても、モバイルレイアウトの折りたたみ(w-full、px-4、max-w-7xl、mx-auto)が保証されていますか?
  • 全高セクションでは、バグのある `h-screen` の代わりに `min-h-[100dvh]` を安全に使用していますか?
  • useEffect内のアニメーションには、厳密なクリーンアップ関数が含まれていますか?
  • 空の状態、読み込み中の状態、エラーの状態は用意されていますか?
  • 可能な場合は、スペースを確保するためにカードが省略されていますか?
  • CPU負荷の高い継続的なアニメーションは、独自のクライアントコンポーネント内に厳密に分離されていますか?
GitHubで見る

High-Agency Frontend Skill

1. ACTIVE BASELINE CONFIGURATION

  • DESIGN_VARIANCE: 8 (1=Perfect Symmetry, 10=Artsy Chaos)
  • MOTION_INTENSITY: 6 (1=Static/No movement, 10=Cinematic/Magic Physics)
  • VISUAL_DENSITY: 4 (1=Art Gallery/Airy, 10=Pilot Cockpit/Packed Data)

AI Instruction: The standard baseline for all generations is strictly set to these values (8, 6, 4). Do not ask the user to edit this file. Otherwise, ALWAYS listen to the user: adapt these values dynamically based on what they explicitly request in their chat prompts. Use these baseline (or user-overridden) values as your global variables to drive the specific logic in Sections 3 through 7.

2. DEFAULT ARCHITECTURE & CONVENTIONS

Unless the user explicitly specifies a different stack, adhere to these structural constraints to maintain consistency:

  • DEPENDENCY VERIFICATION [MANDATORY]: Before importing ANY 3rd party library (e.g. framer-motion, lucide-react, zustand), you MUST check package.json. If the package is missing, you MUST output the installation command (e.g. npm install package-name) before providing the code. Never assume a library exists.
  • Framework & Interactivity: React or Next.js. Default to Server Components (RSC).
    • RSC SAFETY: Global state works ONLY in Client Components. In Next.js, wrap providers in a "use client" component.
    • INTERACTIVITY ISOLATION: If Sections 4 or 7 (Motion/Liquid Glass) are active, the specific interactive UI component MUST be extracted as an isolated leaf component with 'use client' at the very top. Server Components must exclusively render static layouts.
  • State Management: Use local useState/useReducer for isolated UI. Use global state strictly for deep prop-drilling avoidance.
  • Styling Policy: Use Tailwind CSS (v3/v4) for 90% of styling.
    • TAILWIND VERSION LOCK: Check package.json first. Do not use v4 syntax in v3 projects.
    • T4 CONFIG GUARD: For v4, do NOT use tailwindcss plugin in postcss.config.js. Use @tailwindcss/postcss or the Vite plugin.
  • ANTI-EMOJI POLICY [CRITICAL]: NEVER use emojis in code, markup, text content, or alt text. Replace symbols with high-quality icons (Radix, Phosphor) or clean SVG primitives. Emojis are BANNED.
  • Responsiveness & Spacing:
    • Standardize breakpoints (sm, md, lg, xl).
    • Contain page layouts using max-w-[1400px] mx-auto or max-w-7xl.
    • Viewport Stability [CRITICAL]: NEVER use h-screen for full-height Hero sections. ALWAYS use min-h-[100dvh] to prevent catastrophic layout jumping on mobile browsers (iOS Safari).
    • Grid over Flex-Math: NEVER use complex flexbox percentage math (w-[calc(33%-1rem)]). ALWAYS use CSS Grid (grid grid-cols-1 md:grid-cols-3 gap-6) for reliable structures.
  • Icons: You MUST use exactly @phosphor-icons/react or @radix-ui/react-icons as the import paths (check installed version). Standardize strokeWidth globally (e.g., exclusively use 1.5 or 2.0).

3. DESIGN ENGINEERING DIRECTIVES (Bias Correction)

LLMs have statistical biases toward specific UI cliché patterns. Proactively construct premium interfaces using these engineered rules:

Rule 1: Deterministic Typography

  • Display/Headlines: Default to text-4xl md:text-6xl tracking-tighter leading-none.
    • ANTI-SLOP: Discourage Inter for "Premium" or "Creative" vibes. Force unique character using Geist, Outfit, Cabinet Grotesk, or Satoshi.
    • TECHNICAL UI RULE: Serif fonts are strictly BANNED for Dashboard/Software UIs. For these contexts, use exclusively high-end Sans-Serif pairings (Geist + Geist Mono or Satoshi + JetBrains Mono).
  • Body/Paragraphs: Default to text-base text-gray-600 leading-relaxed max-w-[65ch].

Rule 2: Color Calibration

  • Constraint: Max 1 Accent Color. Saturation < 80%.
  • THE LILA BAN: The "AI Purple/Blue" aesthetic is strictly BANNED. No purple button glows, no neon gradients. Use absolute neutral bases (Zinc/Slate) with high-contrast, singular accents (e.g. Emerald, Electric Blue, or Deep Rose).
  • COLOR CONSISTENCY: Stick to one palette for the entire output. Do not fluctuate between warm and cool grays within the same project.

Rule 3: Layout Diversification

  • ANTI-CENTER BIAS: Centered Hero/H1 sections are strictly BANNED when LAYOUT_VARIANCE > 4. Force "Split Screen" (50/50), "Left Aligned content/Right Aligned asset", or "Asymmetric White-space" structures.

Rule 4: Materiality, Shadows, and "Anti-Card Overuse"

  • DASHBOARD HARDENING: For VISUAL_DENSITY > 7, generic card containers are strictly BANNED. Use logic-grouping via border-t, divide-y, or purely negative space. Data metrics should breathe without being boxed in unless elevation (z-index) is functionally required.
  • Execution: Use cards ONLY when elevation communicates hierarchy. When a shadow is used, tint it to the background hue.

Rule 5: Interactive UI States

  • Mandatory Generation: LLMs naturally generate "static" successful states. You MUST implement full interaction cycles:
    • Loading: Skeletal loaders matching layout sizes (avoid generic circular spinners).
    • Empty States: Beautifully composed empty states indicating how to populate data.
    • Error States: Clear, inline error reporting (e.g., forms).
    • Tactile Feedback: On :active, use -translate-y-[1px] or scale-[0.98] to simulate a physical push indicating success/action.

Rule 6: Data & Form Patterns

  • Forms: Label MUST sit above input. Helper text is optional but should exist in markup. Error text below input. Use a standard gap-2 for input blocks.

4. CREATIVE PROACTIVITY (Anti-Slop Implementation)

To actively combat generic AI designs, systematically implement these high-end coding concepts as your baseline:

  • "Liquid Glass" Refraction: When glassmorphism is needed, go beyond backdrop-blur. Add a 1px inner border (border-white/10) and a subtle inner shadow (shadow-[inset_0_1px_0_rgba(255,255,255,0.1)]) to simulate physical edge refraction.
  • Magnetic Micro-physics (If MOTION_INTENSITY > 5): Implement buttons that pull slightly toward the mouse cursor. CRITICAL: NEVER use React useState for magnetic hover or continuous animations. Use EXCLUSIVELY Framer Motion's useMotionValue and useTransform outside the React render cycle to prevent performance collapse on mobile.
  • Perpetual Micro-Interactions: When MOTION_INTENSITY > 5, embed continuous, infinite micro-animations (Pulse, Typewriter, Float, Shimmer, Carousel) in standard components (avatars, status dots, backgrounds). Apply premium Spring Physics (type: "spring", stiffness: 100, damping: 20) to all interactive elements—no linear easing.
  • Layout Transitions: Always utilize Framer Motion's layout and layoutId props for smooth re-ordering, resizing, and shared element transitions across state changes.
  • Staggered Orchestration: Do not mount lists or grids instantly. Use staggerChildren (Framer) or CSS cascade (animation-delay: calc(var(--index) * 100ms)) to create sequential waterfall reveals. CRITICAL: For staggerChildren, the Parent (variants) and Children MUST reside in the identical Client Component tree. If data is fetched asynchronously, pass the data as props into a centralized Parent Motion wrapper.

5. PERFORMANCE GUARDRAILS

  • DOM Cost: Apply grain/noise filters exclusively to fixed, pointer-event-none pseudo-elements (e.g., fixed inset-0 z-50 pointer-events-none) and NEVER to scrolling containers to prevent continuous GPU repaints and mobile performance degradation.
  • Hardware Acceleration: Never animate top, left, width, or height. Animate exclusively via transform and opacity.
  • Z-Index Restraint: NEVER spam arbitrary z-50 or z-10 unprompted. Use z-indexes strictly for systemic layer contexts (Sticky Navbars, Modals, Overlays).

6. TECHNICAL REFERENCE (Dial Definitions)

DESIGN_VARIANCE (Level 1-10)

  • 1-3 (Predictable): Flexbox justify-center, strict 12-column symmetrical grids, equal paddings.
  • 4-7 (Offset): Use margin-top: -2rem overlapping, varied image aspect ratios (e.g., 4:3 next to 16:9), left-aligned headers over center-aligned data.
  • 8-10 (Asymmetric): Masonry layouts, CSS Grid with fractional units (e.g., grid-template-columns: 2fr 1fr 1fr), massive empty zones (padding-left: 20vw).
  • MOBILE OVERRIDE: For levels 4-10, any asymmetric layout above md: MUST aggressively fall back to a strict, single-column layout (w-full, px-4, py-8) on viewports < 768px to prevent horizontal scrolling and layout breakage.

MOTION_INTENSITY (Level 1-10)

  • 1-3 (Static): No automatic animations. CSS :hover and :active states only.
  • 4-7 (Fluid CSS): Use transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1). Use animation-delay cascades for load-ins. Focus strictly on transform and opacity. Use will-change: transform sparingly.
  • 8-10 (Advanced Choreography): Complex scroll-triggered reveals or parallax. Use Framer Motion hooks. NEVER use window.addEventListener('scroll').

VISUAL_DENSITY (Level 1-10)

  • 1-3 (Art Gallery Mode): Lots of white space. Huge section gaps. Everything feels very expensive and clean.
  • 4-7 (Daily App Mode): Normal spacing for standard web apps.
  • 8-10 (Cockpit Mode): Tiny paddings. No card boxes; just 1px lines to separate data. Everything is packed. Mandatory: Use Monospace (font-mono) for all numbers.

7. AI TELLS (Forbidden Patterns)

To guarantee a premium, non-generic output, you MUST strictly avoid these common AI design signatures unless explicitly requested:

Visual & CSS

  • NO Neon/Outer Glows: Do not use default box-shadow glows or auto-glows. Use inner borders or subtle tinted shadows.
  • NO Pure Black: Never use #000000. Use Off-Black, Zinc-950, or Charcoal.
  • NO Oversaturated Accents: Desaturate accents to blend elegantly with neutrals.
  • NO Excessive Gradient Text: Do not use text-fill gradients for large headers.
  • NO Custom Mouse Cursors: They are outdated and ruin performance/accessibility.

Typography

  • NO Inter Font: Banned. Use Geist, Outfit, Cabinet Grotesk, or Satoshi.
  • NO Oversized H1s: The first heading should not scream. Control hierarchy with weight and color, not just massive scale.
  • Serif Constraints: Use Serif fonts ONLY for creative/editorial designs. NEVER use Serif on clean Dashboards.

Layout & Spacing

  • Align & Space Perfectly: Ensure padding and margins are mathematically perfect. Avoid floating elements with awkward gaps.
  • NO 3-Column Card Layouts: The generic "3 equal cards horizontally" feature row is BANNED. Use a 2-column Zig-Zag, asymmetric grid, or horizontal scrolling approach instead.

Content & Data (The "Jane Doe" Effect)

  • NO Generic Names: "John Doe", "Sarah Chan", or "Jack Su" are banned. Use highly creative, realistic-sounding names.
  • NO Generic Avatars: DO NOT use standard SVG "egg" or Lucide user icons for avatars. Use creative, believable photo placeholders or specific styling.
  • NO Fake Numbers: Avoid predictable outputs like 99.99%, 50%, or basic phone numbers (1234567). Use organic, messy data (47.2%, +1 (312) 847-1928).
  • NO Startup Slop Names: "Acme", "Nexus", "SmartFlow". Invent premium, contextual brand names.
  • NO Filler Words: Avoid AI copywriting clichés like "Elevate", "Seamless", "Unleash", or "Next-Gen". Use concrete verbs.

External Resources & Components

  • NO Broken Unsplash Links: Do not use Unsplash. Use absolute, reliable placeholders like https://picsum.photos/seed/{random_string}/800/600 or SVG UI Avatars.
  • shadcn/ui Customization: You may use shadcn/ui, but NEVER in its generic default state. You MUST customize the radii, colors, and shadows to match the high-end project aesthetic.
  • Production-Ready Cleanliness: Code must be extremely clean, visually striking, memorable, and meticulously refined in every detail.

8. THE CREATIVE ARSENAL (High-End Inspiration)

Do not default to generic UI. Pull from this library of advanced concepts to ensure the output is visually striking and memorable. When appropriate, leverage GSAP (ScrollTrigger/Parallax) for complex scrolltelling or ThreeJS/WebGL for 3D/Canvas animations, rather than basic CSS motion. CRITICAL: Never mix GSAP/ThreeJS with Framer Motion in the same component tree. Default to Framer Motion for UI/Bento interactions. Use GSAP/ThreeJS EXCLUSIVELY for isolated full-page scrolltelling or canvas backgrounds, wrapped in strict useEffect cleanup blocks.

The Standard Hero Paradigm

  • Stop doing centered text over a dark image. Try asymmetric Hero sections: Text cleanly aligned to the left or right. The background should feature a high-quality, relevant image with a subtle stylistic fade (darkening or lightening gracefully into the background color depending on if it is Light or Dark mode).

Navigation & Menüs

  • Mac OS Dock Magnification: Nav-bar at the edge; icons scale fluidly on hover.
  • Magnetic Button: Buttons that physically pull toward the cursor.
  • Gooey Menu: Sub-items detach from the main button like a viscous liquid.
  • Dynamic Island: A pill-shaped UI component that morphs to show status/alerts.
  • Contextual Radial Menu: A circular menu expanding exactly at the click coordinates.
  • Floating Speed Dial: A FAB that springs out into a curved line of secondary actions.
  • Mega Menu Reveal: Full-screen dropdowns that stagger-fade complex content.

Layout & Grids

  • Bento Grid: Asymmetric, tile-based grouping (e.g., Apple Control Center).
  • Masonry Layout: Staggered grid without fixed row heights (e.g., Pinterest).
  • Chroma Grid: Grid borders or tiles showing subtle, continuously animating color gradients.
  • Split Screen Scroll: Two screen halves sliding in opposite directions on scroll.
  • Curtain Reveal: A Hero section parting in the middle like a curtain on scroll.

Cards & Containers

  • Parallax Tilt Card: A 3D-tilting card tracking the mouse coordinates.
  • Spotlight Border Card: Card borders that illuminate dynamically under the cursor.
  • Glassmorphism Panel: True frosted glass with inner refraction borders.
  • Holographic Foil Card: Iridescent, rainbow light reflections shifting on hover.
  • Tinder Swipe Stack: A physical stack of cards the user can swipe away.
  • Morphing Modal: A button that seamlessly expands into its own full-screen dialog container.

Scroll-Animations

  • Sticky Scroll Stack: Cards that stick to the top and physically stack over each other.
  • Horizontal Scroll Hijack: Vertical scroll translates into a smooth horizontal gallery pan.
  • Locomotive Scroll Sequence: Video/3D sequences where framerate is tied directly to the scrollbar.
  • Zoom Parallax: A central background image zooming in/out seamlessly as you scroll.
  • Scroll Progress Path: SVG vector lines or routes that draw themselves as the user scrolls.
  • Liquid Swipe Transition: Page transitions that wipe the screen like a viscous liquid.

Galleries & Media

  • Dome Gallery: A 3D gallery feeling like a panoramic dome.
  • Coverflow Carousel: 3D carousel with the center focused and edges angled back.
  • Drag-to-Pan Grid: A boundless grid you can freely drag in any compass direction.
  • Accordion Image Slider: Narrow vertical/horizontal image strips that expand fully on hover.
  • Hover Image Trail: The mouse leaves a trail of popping/fading images behind it.
  • Glitch Effect Image: Brief RGB-channel shifting digital distortion on hover.

Typography & Text

  • Kinetic Marquee: Endless text bands that reverse direction or speed up on scroll.
  • Text Mask Reveal: Massive typography acting as a transparent window to a video background.
  • Text Scramble Effect: Matrix-style character decoding on load or hover.
  • Circular Text Path: Text curved along a spinning circular path.
  • Gradient Stroke Animation: Outlined text with a gradient continuously running along the stroke.
  • Kinetic Typography Grid: A grid of letters dodging or rotating away from the cursor.

Micro-Interactions & Effects

  • Particle Explosion Button: CTAs that shatter into particles upon success.
  • Liquid Pull-to-Refresh: Mobile reload indicators acting like detaching water droplets.
  • Skeleton Shimmer: Shifting light reflections moving across placeholder boxes.
  • Directional Hover Aware Button: Hover fill entering from the exact side the mouse entered.
  • Ripple Click Effect: Visual waves rippling precisely from the click coordinates.
  • Animated SVG Line Drawing: Vectors that draw their own contours in real-time.
  • Mesh Gradient Background: Organic, lava-lamp-like animated color blobs.
  • Lens Blur Depth: Dynamic focus blurring background UI layers to highlight a foreground action.

9. THE "MOTION-ENGINE" BENTO PARADIGM

When generating modern SaaS dashboards or feature sections, you MUST utilize the following "Bento 2.0" architecture and motion philosophy. This goes beyond static cards and enforces a "Vercel-core meets Dribbble-clean" aesthetic heavily reliant on perpetual physics.

A. Core Design Philosophy

  • Aesthetic: High-end, minimal, and functional.
  • Palette: Background in #f9fafb. Cards are pure white (#ffffff) with a 1px border of border-slate-200/50.
  • Surfaces: Use rounded-[2.5rem] for all major containers. Apply a "diffusion shadow" (a very light, wide-spreading shadow, e.g., shadow-[0_20px_40px_-15px_rgba(0,0,0,0.05)]) to create depth without clutter.
  • Typography: Strict Geist, Satoshi, or Cabinet Grotesk font stack. Use subtle tracking (tracking-tight) for headers.
  • Labels: Titles and descriptions must be placed outside and below the cards to maintain a clean, gallery-style presentation.
  • Pixel-Perfection: Use generous p-8 or p-10 padding inside cards.

B. The Animation Engine Specs (Perpetual Motion)

All cards must contain "Perpetual Micro-Interactions." Use the following Framer Motion principles:

  • Spring Physics: No linear easing. Use type: "spring", stiffness: 100, damping: 20 for a premium, weighty feel.
  • Layout Transitions: Heavily utilize the layout and layoutId props to ensure smooth re-ordering, resizing, and shared element state transitions.
  • Infinite Loops: Every card must have an "Active State" that loops infinitely (Pulse, Typewriter, Float, or Carousel) to ensure the dashboard feels "alive".
  • Performance: Wrap dynamic lists in <AnimatePresence> and optimize for 60fps. PERFORMANCE CRITICAL: Any perpetual motion or infinite loop MUST be memoized (React.memo) and completely isolated in its own microscopic Client Component. Never trigger re-renders in the parent layout.

C. The 5-Card Archetypes (Micro-Animation Specs)

Implement these specific micro-animations when constructing Bento grids (e.g., Row 1: 3 cols | Row 2: 2 cols split 70/30):

  1. The Intelligent List: A vertical stack of items with an infinite auto-sorting loop. Items swap positions using layoutId, simulating an AI prioritizing tasks in real-time.
  2. The Command Input: A search/AI bar with a multi-step Typewriter Effect. It cycles through complex prompts, including a blinking cursor and a "processing" state with a shimmering loading gradient.
  3. The Live Status: A scheduling interface with "breathing" status indicators. Include a pop-up notification badge that emerges with an "Overshoot" spring effect, stays for 3 seconds, and vanishes.
  4. The Wide Data Stream: A horizontal "Infinite Carousel" of data cards or metrics. Ensure the loop is seamless (using x: ["0%", "-100%"]) with a speed that feels effortless.
  5. The Contextual UI (Focus Mode): A document view that animates a staggered highlight of a text block, followed by a "Float-in" of a floating action toolbar with micro-icons.

10. FINAL PRE-FLIGHT CHECK

Evaluate your code against this matrix before outputting. This is the last filter you apply to your logic.

  • Is global state used appropriately to avoid deep prop-drilling rather than arbitrarily?
  • Is mobile layout collapse (w-full, px-4, max-w-7xl mx-auto) guaranteed for high-variance designs?
  • Do full-height sections safely use min-h-[100dvh] instead of the bugged h-screen?
  • Do useEffect animations contain strict cleanup functions?
  • Are empty, loading, and error states provided?
  • Are cards omitted in favor of spacing where possible?
  • Did you strictly isolate CPU-heavy perpetual animations in their own Client Components?

すべてのファイル

2件のファイル

design-taste-frontend-v1をインストール

スキルファイルをダウンロードし、.claude/skills/ ディレクトリに解凍してください。

ZIPをダウンロード

リポジトリをクローンし、スキルファイルをプロジェクトにコピーしてください。

git clone https://github.com/nexu-io/open-design/tree/main/skills/taste-skill-v1 # Copy the skill folder to .claude/skills/ or .codex/skills/

コピー コピー
クイックセットアップ: skill フォルダを .claude/skills/ にコピーすると、Claude が自動的にそのスキルを検出して使用します。
リポジトリ nexu-io/open-design

関連スキル

multica-creating-agents
更新された時間 2026年8月12日
tilemaps
更新された時間 2026年8月4日
v4-new-features
更新された時間 2026年8月4日
pixijs-application
更新された時間 2026年8月4日
OR