Community画像github.com

palette

カラーパレットの作成、チェック、エクスポートを行います。写真やムードボードから色を抽出したり、OKLCHで50~950のティント&シェードやハーモニーを生成し、WCAGコントラストをチェック、CSS変数、Tailwind、デザイントークン、Adobe ASE(Illustrator/InDesign/Photoshop)、GIMP/Krita GPL、スウォッチシートにエクスポートできます。ユーザーがカラーパレット、カラースケール、「~に合う色」、コントラスト・アクセシビリティチェック、またはデザインツール用のスウォッチを必要とするときに使用します。

palette とは?

これは、開発者やデザイナーが使いやすいカラーパレット管理スキルです。写真からのk-meansクラスタリングによる色抽出、OKLCH色空間での知覚的に均一なスケール(50~950)生成、補色・類似色・トライアド・スプリットコンプリメンタリー・テトラディックなどのハーモニー生成、WCAG AA/AAAコントラストチェックを実行します。CSS変数、SCSS、Tailwind CSS v4 @theme、JSONデザイントークン、Adobe ASE(Illustrator/InDesign/Photoshop用)、GIMP/Krita GPLパレット、SVG/PNGスウォッチシートなど複数のフォーマットにエクスポート可能で、Figma(Tokens Studioプラグイン経由)とも連携できます。このスキルはClaude CodeなどのAIエージェントで動作し、ユーザーの要件に基づいてパレットの設計判断をサポートします。カラーパレットの役割分担(背景60%、インク30%、アクセント10%)、テキスト用コントラスト比(本文4.5:1以上、大テキスト3:1以上)の遵守、写真から抽出した色の編集判断など、デザインのベストプラクティスをガイドします。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Remicht0/graphic-design-skills/tree/HEAD/skills/palette

Installed? Explore more 画像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

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

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

ドキュメント

パレット

scripts/palette.py は色の計算(OKLab/OKLCH、WCAGコントラスト、k-means抽出)を行い、デザインツール用のファイルを書き出します。あなたの役割はその上にデザイン判断を加えることです。どの色にどの役割を与えるか、そのパレットが実際にテキストに使えるかどうか、そして選択の理由を平易な言葉で説明することです。

コマンド

# 1. 画像から:代表色とその画像内の占有率、さらにスウォッチシート
python3 scripts/palette.py extract photo.jpg -n 6 -o palette.json --sheet palette.png

# 2. アクセシビリティ:どの組み合わせがテキスト表示に適しているか
python3 scripts/palette.py contrast palette.json
python3 scripts/palette.py contrast "#111111,#F2EFE9,#FF4F12"

# 3. 単一ブランドカラーから完全なスケール(50…950)、知覚的に均等
python3 scripts/palette.py scale "#2D4CB4" --name cobalt --keep -o cobalt.json

# 4. ハーモニー:補色 | 類似色 | トライアド | スプリットコンプリメンタリー | テトラディック
python3 scripts/palette.py harmony "#FF4F12" --type split

# 5. エクスポート:css | scss | tailwind | tokens | json | ase | gpl | svg | png
python3 scripts/palette.py export palette.json --to ase -o palette.ase
python3 scripts/palette.py export palette.json --to tailwind

パレットはスクリプトによって書き出されたJSONファイル、または単純にカンマ区切りの16進コードリストです。JSONを手動編集(色の名前変更、色の削除)して、contrast や export に再投入できます。

作業の進め方

  1. ユーザーが持っているソースから始める:写真、ムードボード、ロゴ、既存のブランドカラー、または言葉でのイメージ。言葉の場合は、自分で4~6個の16進値を提案し、それに対して contrast を実行します。チェックしていないパレットを決して提示しないでください。
  2. すべての色に役割を与える。使いやすいパレットは6色が等価ではありません。役割に名前を付けます:背景(紙)、インク(テキスト)、アクセント(1ページあたり1~2回の使用)、そして補助的なニュートラル。おおよそ背景60%、インクとニュートラル30%、アクセント10%です。extract は自動で背景/インク/アクセントを推測しますが、間違っている場合は修正してください(広い写真領域を「背景」として選ぶことがよくあります)。
  3. 提供前にコントラストをチェックする。本文テキストには 4.5:1(WCAG AA)、大テキスト(24px以上、または18.5px以上で太字)には 3:1 が必要です。ロゴや純粋な装飾は対象外です。インクと背景の組み合わせが基準を満たさない場合は、組み合わせを諦めるのではなく、インクを暗くするか背景を明るくしてください。どの組み合わせがテキストに安全かを明確に述べてください。
  4. スケール(scale)は、ティントが必要なUIやブランドシステム向けです。--keep はブランドカラーを最も近いステップに保持し、そのステップが何であるかを報告します(「あなたのブルーはcobalt-700です」)。彩度は明るい端と暗い端に向かってテーパーされるため、ティントが蛍光色のように見えたり、シェードが濁って見えたりしません。
  5. ユーザーのツールが読める形式でエクスポートする:
    ツール形式
    Illustrator、InDesign、Photoshop、Affinity、Procreate(読み込み)ase
    Figmatokens(Tokens Studioプラグイン経由)または16進コードをペースト
    Webcss、scss、tailwind(v4 @theme)
    GIMP、Krita、Inkscapegpl
    共有用ビジュアルpng(スウォッチシート)または svg

判断に関する注意

  • 写真はそのままでは良いパレットになることはほとんどありません。k-meansの結果は面積を反映し、重要度を反映しません。小さな赤い物体が大きな灰色の壁よりも重要になることがあります。画像を自分で見て、画像のアイデンティティを担う色と差し替えてください。
  • オフホワイトやオフブラック(#F2EFE9、#151515)は、純粋な#FFFや#000よりもデザインされた印象を与え、コントラスト比はほとんど同じままです。
  • 同じ明度の2つの彩度の高い色は、互いに接触すると振動して見えます。OKLCHの明度(テーブル出力の L)を確認してください。2つのアクセントのLがほぼ同じ場合は、分離するか一方を変更します。
  • 印刷の場合、これらはRGB値です。ユーザーには、レイアウトソフトウェアでプリンターのプロファイルを使用してCMYKまたはPantoneに変換するように指示してください。スクリーンから印刷への色のずれは、特に明るい緑、青、オレンジでよく見られます。

Individual skills in this repo

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

art-direction-analyzer

Break down the art direction of a live website — typography, color palette, grid and spacing, motion and interactions, imagery — by inspecting the rendered page (computed styles, screenshots, hover states), and save a structured reference file with screenshots for a design inspiration library. Use whenever the user wants to study, deconstruct, scrape or reverse-engineer a site's design, visual identity, UI or motion, save a site as a reference or moodboard entry, or asks "how did they do this" about a website — even without the word "analysis".

dither

Turn photos and images into dithered, halftoned or bitmap graphics (Floyd–Steinberg, Atkinson, Bayer, halftone dots, duotone, risograph-style color) as PNG or SVG, sized for screen or print. Use when the user wants a dithered, 1-bit, pixel, halftone, newspaper, risograph, screen-print or "old Mac" look, a bitmap/trame effect, or an image prepared for laser engraving or a plotter.

editorial-layout

Design editorial, magazine-style PDF layouts in HTML/CSS — briefs, reports, portfolios, zines, presentations, posters, Instagram carousels — on a 12-column print grid with extreme type scale, one accent color, bleeding images and varied compositions, then render to a print-ready PDF (with bleed) plus PNG previews and automatic layout checks. Use whenever the user wants a document, PDF, deck, booklet or boards that look designed rather than templated, or asks for a magazine, editorial or Swiss-style layout.

print-preflight

Check a PDF before it goes to the printer — bleed, trim size, image resolution at placed size, embedded fonts, RGB vs CMYK vs spot colors, total ink coverage, hairlines, transparency, layers and annotations — and explain each problem with the fix for InDesign, Illustrator, Affinity, Canva or Figma. Use whenever the user is about to print something (flyer, poster, business card, book, zine, packaging) or asks "is my file OK for print", "why did the printer reject my file", or wants a PDF checked.

関連スキル