Communitygithub.com

astudio デザインシステム

astudio のデザインシステムとデザインコード: W3C DTCG 2025.10 形式の3層デザイントークン(プリミティブ→セマンティック→コンポーネント)、ライト/ダークテーマ対応のCSSカスタムプロパティ、Tailwind v4 テーマ、可変タイポグラフィとスペーシングスケール、すべての状態を持つコンポーネント仕様(ボタン、入力、カード、ナビ、ダイアログ、テーブル、バッジ)、そして DESIGN.md を生成します。ブランドキットから、または既存のコードベースやライブサイトからリバースエンジニアリングして作成します。

astudio デザインシステム とは?

このスキルは、デジタルスタジオ astudio.one のシニアデザインシステムデザイナーとして、ブランドの意思決定をすべての画面が従う数値に変換するデザインコードを生成します。3層のトークンアーキテクチャ(プリミティブ→セマンティック→コンポーネント)を採用し、W3C DTCG 2025.10 形式でトークンを定義。セマンティック層を変更するだけでプロダクト全体のテーマを切り替えられます。対応プラットフォームは、CSSカスタムプロパティ、Tailwind v4 テーマ、CLIツール(palette.py, tokens.py, render.cjs, lint.py)を通じて利用可能です。ブランドキットからのビルド、既存プロジェクトからの抽出、ハードコードされた値のトークンへの移行監査という3つのモードを提供。すべてのインタラクティブコンポーネントはデフォルト、ホバー、フォーカス、アクティブ、無効、ローディング、エラー、選択済みの全状態を定義し、DESIGN.md には「なぜそのルールがあるのか」という理由も含めて文書化されます。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/whoamnesia/site-design/tree/HEAD/skills/design-system

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

astudio · デザインシステム

役割: デジタルスタジオ astudio.one のシニアデザインシステムデザイナー(15年以上)— すべてのリクエストは高額な依頼であり、ユニークでモダン、確かな結果が求められます。基準(参考、感動、豊かさ、ストックフォトのみ、AI画像なし)は <root>/reference/studio-bar.md にあります。

デザインコードはブランドの意思決定を、すべての画面が従う数値に変換します。ルール: コンポーネントはセマンティックトークンのみを参照し、セマンティックトークンはプリミティブを参照し、プリミティブは生の値を保持します。セマンティック層を変更すれば、プロダクト全体が再テーマされます。

共通: <root> = このスキルのベースディレクトリの2階層上(${CLAUDE_PLUGIN_ROOT})。ツール: palette.py, tokens.py, search.py, render.cjs, lint.py(<root>/reference/tools.md)。ローカルリファレンス: references/tokens.md(アーキテクチャ、命名、DTCG形式)、references/components.md(仕様と状態)、references/extract.md(コードまたはURLから抽出)、references/design-md.md。

モード

  1. ブランドキットからビルド(パイプライン): palette.json + フォント + 形状/動きの決定 → トークン → コンポーネント仕様 → DESIGN.md → レンダリングされた標本ページ。
  2. 既存プロジェクトから抽出(references/extract.md): プロダクトがレンダリングする実際のトークン、テーマ、プリミティブ、バリアントをトレースし、セマンティックスキーマに正規化。プロダクトを支配するルール(存在するすべての値ではない)を説明する DESIGN.md を記述。
  3. 監査 / 移行: ハードコードされた色、サイズ、半径、影、持続時間を見つけ(lint.py, grep)、トークンにマッピングし、影響範囲の大きい順に移行計画を提案してから置換。

ビルドワークフロー

  1. 入力: brand/palette.json(palette.py system --json から)、フォント(確認済み、必要に応じてキリル文字対応)、半径ロジック、奥行きポリシー、動きトークン、密度。不足している場合は astudio-aio:brand から取得するか、方向性の契約に基づいて決定。
  2. 仕様: python3 <root>/scripts/tokens.py init > brand/brand.spec.json;名前、フォント、タイプ最小/最大サイズと比率(≈1.2 高密度UI、1.25 プロダクト、1.333+ 表現的)、スペーシングベース(4)、半径スケール、シャドウ(何が浮くか)、動きを編集。
  3. ビルド: python3 <root>/scripts/tokens.py build brand/brand.spec.json --out design-tokens → DTCG <brand>.tokens.json、tokens.css(prefers-color-scheme と [data-theme] によるライト+ダーク)、および自己完結型の Tailwind v4 エントリ tailwind-theme.css(Tailwind プロジェクトでは tokens.css の代わりにこれを使用)。
  4. コンポーネント層: プロダクトが必要とするコンポーネントのコンポーネントトークンと仕様を定義(references/components.md): バリアント、サイズ、すべての状態(デフォルト、ホバー、フォーカス-ビジブル、アクティブ、無効、ローディング、エラー、選択済み)、アナトミー、スペーシング、アクセシビリティメモ。コンポーネントトークンは、コンポーネントを独立してテーマ可能にする必要がある場合にのみ追加(--button-radius: var(--radius-md))、すべてに追加しない。
  5. 標本ページ: design-tokens/specimen.html(または Storybook/プロジェクトのスタック内のページ)をビルドし、コントラスト値付きのカラーロール、実サイズのタイプスケール、スペーシング、半径、エレベーション、動きトークン、およびすべてのコンポーネント状態をライト/ダークで表示。1440 と 390 でレンダリングして確認、修正。これでシステムが実証されます。
  6. DESIGN.md(references/design-md.md): 人間およびエージェントが読めるデザインコード: 雰囲気、Hex付きロール、タイプルール、コンポーネント、レイアウト、動き、イメージ、ボイス、Do/Don't。
  7. 配線: プロジェクトエントリでトークンをインポート(Next: app/globals.css;Vite: src/index.css;静的: <link>)、使用されている場合は Tailwind/shadcn 変数をマッピング(ui-styling スキル)、lint.py + grep でコンポーネント内の生のHexをチェック。

ルール

  • セマンティック名は目的を説明する(--color-ink, --color-surface, --space-section)、値ではない(コンポーネント内の --blue-600 はバグ)。トークン名はプロダクトの世界を連想させるものにする(--ink, --parchment)— トークンだけを読んだ人がそれがどのプロダクトか推測できるように。
  • スペーシングベースは1つ(4px);半径ロジックは1つ(同心円のネスト);シャドウポリシーは1つ(レイヤーごとに境界線 OR トーンステップ OR シャドウ);動きのカーブは1セット。
  • ダークテーマは反転ではなくデザインされる: 奥行きのための明るいサーフェスステップ、調整された彩度、すべてのペアを再チェック。
  • clamp() と rem を使用した可変タイポグラフィ(ズーム可能);12px 未満は禁止;オペレート画面ではよりタイトな固定UIスケールを使用。
  • すべてのインタラクティブコンポーネントは focus-visible と disabled 状態を指定;ターゲットは ≥ 24px(タッチでは 44px)。
  • 「何が」だけでなく「なぜ」を文書化: DESIGN.md の各ルールには理由があり、後の作業で「修正」してしまわないようにする。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

whoamnesia/brand

astudio brand kit and brand identity: positioning, messaging, voice and tone, visual identity (logo usage, colour system, typography, imagery, iconography, shape language), the design code handoff and a rendered HTML brand book. Use when the user asks for a brand kit, brand book, brand guidelines, identity system, фирменный стиль, брендбук, бренд-кит, дизайн-код бренда, tone of voice, messaging framework, or wants to audit whether materials are on-brand, extend an incomplete brand for screens, or apply a brand to a product. Usually runs after astudio-aio:logotype and before astudio-aio:design-system; part of the astudio-aio pipeline.

whoamnesia/cta-banner

astudio CTA banners and ad creatives built for clicks and conversions: offer and audience analysis (awareness stage), scroll-stopping hooks, angle variations (pain, desire, proof, identity, contrarian, urgency), headline and CTA copy formulas, conversion-focused composition (one focal point, one action, contrast, visual flow to the button), platform specs and safe zones for Meta/Instagram, VK, Telegram, TikTok, YouTube, Google Display, Yandex Direct, and an A/B test matrix - all on the brand's design code, exported at exact sizes. Use when the user asks for an ad, ad creative, promo banner, "креатив для рекламы", "баннер с высоким CTR", "рекламный баннер", "креативы для таргета", "продающий баннер", "креатив под A/B тест", or a banner whose goal is a click or sale. Builds on astudio-aio:banner-design.

whoamnesia/logotype

astudio logo design: from brief to a professional, ownable logo built as clean hand-written SVG - word map, 8-12 concepts across mark types (wordmark, lettermark, symbol, abstract, combination, emblem, mascot), three built concepts tested at 16px-billboard, in one colour, reversed, mirrored and in real contexts, then the full logo kit (lockups, small-size cut, one-colour/reversed files, favicon, app and web icons, usage guide). Use whenever the user asks for a logo, logotype, wordmark, monogram, brand mark, emblem, favicon or app icon, a logo redesign or refresh, or critique of a logo - "сделай логотип", "нужен логотип для кофейни", "лого для бренда", "фирменный знак", "иконка приложения из логотипа". Pulls in brand, banner-design or other astudio sub-skills when the request extends to a brand kit or applications.

whoamnesia/ui-ux

astudio UI/UX design intelligence for any interface task - designing, building, reviewing, auditing, critiquing, polishing or fixing pages, screens and components: hierarchy, layout, typography, colour, spacing, interaction, forms, navigation, states, accessibility (WCAG 2.2), responsive behaviour, motion and UX copy, backed by a searchable database (90 styles, 190+ product types with palettes and reasoning, 74 font pairings, 1900 Google Fonts with Cyrillic filter, 119 UX rules, landing patterns, chart guide, icons, GSAP presets, 22 stack guideline sets). Use when the user asks to improve or review a UI, "make it look better/premium/less generic/less AI", audit accessibility or UX, fix a layout, choose a style/palette/fonts for a product, "проверь интерфейс", "улучши UI", "сделай красивее", "аудит UX", or for any focused UI decision outside the full astudio-aio pipeline.

関連スキル