Colors
Primitive Colorが基本パレットを、Semantic Colorがテーマ対応の配色を提供する2層構造。CSS変数ベースでフレームワーク非依存です。
Primitive Colors
基礎となるカラーパレット。これらの値はSemantic Tokenから参照されます。
カスタマイズ可能
ブランドに合わせて自由にカスタマイズ可能です。実装時は bg-primary などのSemantic Token経由でご利用ください。
gray
背景、ボーダー、テキストなど、UIの基盤となるニュートラルカラー。ダークモード最適化設計
primary
ブランドカラー。主要なアクション、リンク、強調に使用
secondary
セカンダリアクション、補助的なUI要素に使用
blue
情報、リンク、進行中の状態を表すInfoカラー
green
成功、完了、肯定的な状態を表すSuccessカラー
yellow
警告、注意が必要な状態を表すWarningカラー
red
エラー、削除、危険な操作を表すErrorカラー
Semantic Colors
ライトモードとダークモード間で自動的に適応するテーマ対応カラー。同じCSS変数が各モードで異なる値を持ちます。
Tailwind Class — 開発者がコードで直接使用するクラス
Background
ページやカードの背景色。4階層で深度を表現
Border
区切り線、入力フィールドの枠線
Text
テキストの階層(本文、補足、リンクなど)
Primary
主要なアクションボタン、リンク、強調
Secondary
セカンダリボタン、補助的なUI要素
Status
成功・警告・エラー・情報の状態表示
Token Mapping
Figma → CSS → Tailwind の3段階マッピング
Background
bg-background--color-backgroundbg-background-paper--color-background-paperbg-background-elevated--color-background-elevatedbg-background-muted--color-background-muted| Figma Token | CSS Variable | Tailwind Class |
|---|---|---|
| background.default | --color-background | bg-background |
| background.paper | --color-background-paper | bg-background-paper |
| background.elevated | --color-background-elevated | bg-background-elevated |
| background.muted | --color-background-muted | bg-background-muted |
AaText
text-foreground--color-texttext-text-muted--color-text-mutedtext-text-subtle--color-text-subtletext-text-link--color-text-linktext-text-primary--color-text-primarytext-text-info--color-text-infotext-text-success--color-text-successtext-text-error--color-text-errortext-text-warning--color-text-warning| Figma Token | CSS Variable | Tailwind Class |
|---|---|---|
| text.default | --color-text | text-foreground |
| text.muted | --color-text-muted | text-text-muted |
| text.subtle | --color-text-subtle | text-text-subtle |
| text.link | --color-text-link | text-text-link |
| text.primary | --color-text-primary | text-text-primary |
| text.info | --color-text-info | text-text-info |
| text.success | --color-text-success | text-text-success |
| text.error | --color-text-error | text-text-error |
| text.warning | --color-text-warning | text-text-warning |
Border
border-border--color-borderborder-border-strong--color-border-strongborder-border-subtle--color-border-subtle| Figma Token | CSS Variable | Tailwind Class |
|---|---|---|
| border.default | --color-border | border-border |
| border.strong | --color-border-strong | border-border-strong |
| border.subtle | --color-border-subtle | border-border-subtle |
Primary
bg-primary--color-primarybg-primary-hover--color-primary-hoverbg-primary-active--color-primary-activebg-primary-tint--color-primary-tinttext-primary-foreground--color-primary-text| Figma Token | CSS Variable | Tailwind Class |
|---|---|---|
| primary.default | --color-primary | bg-primary |
| primary.hover | --color-primary-hover | bg-primary-hover |
| primary.active | --color-primary-active | bg-primary-active |
| primary.tint | --color-primary-tint | bg-primary-tint |
| primary.text | --color-primary-text | text-primary-foreground |
Secondary
bg-secondary--color-secondarybg-secondary-hover--color-secondary-hoverbg-secondary-active--color-secondary-activebg-secondary-tint--color-secondary-tinttext-secondary-foreground--color-secondary-text| Figma Token | CSS Variable | Tailwind Class |
|---|---|---|
| secondary.default | --color-secondary | bg-secondary |
| secondary.hover | --color-secondary-hover | bg-secondary-hover |
| secondary.active | --color-secondary-active | bg-secondary-active |
| secondary.tint | --color-secondary-tint | bg-secondary-tint |
| secondary.text | --color-secondary-text | text-secondary-foreground |
Status (Success / Warning / Error / Info)
bg-success--color-successbg-success-hover--color-success-hoverbg-success-active--color-success-activebg-success-tint--color-success-tinttext-success-foreground--color-success-textbg-warning--color-warningbg-warning-hover--color-warning-hoverbg-warning-active--color-warning-activebg-warning-tint--color-warning-tinttext-warning-foreground--color-warning-textbg-error--color-errorbg-error-hover--color-error-hoverbg-error-active--color-error-activebg-error-tint--color-error-tinttext-error-foreground--color-error-textbg-error-bg--color-error-bgbg-info--color-infobg-info-hover--color-info-hoverbg-info-active--color-info-activebg-info-tint--color-info-tinttext-info-foreground--color-info-text| Figma Token | CSS Variable | Tailwind Class |
|---|---|---|
| success.default | --color-success | bg-success |
| success.hover | --color-success-hover | bg-success-hover |
| success.active | --color-success-active | bg-success-active |
| success.tint | --color-success-tint | bg-success-tint |
| success.text | --color-success-text | text-success-foreground |
| warning.default | --color-warning | bg-warning |
| warning.hover | --color-warning-hover | bg-warning-hover |
| warning.active | --color-warning-active | bg-warning-active |
| warning.tint | --color-warning-tint | bg-warning-tint |
| warning.text | --color-warning-text | text-warning-foreground |
| error.default | --color-error | bg-error |
| error.hover | --color-error-hover | bg-error-hover |
| error.active | --color-error-active | bg-error-active |
| error.tint | --color-error-tint | bg-error-tint |
| error.text | --color-error-text | text-error-foreground |
| error.bg | --color-error-bg | bg-error-bg |
| info.default | --color-info | bg-info |
| info.hover | --color-info-hover | bg-info-hover |
| info.active | --color-info-active | bg-info-active |
| info.tint | --color-info-tint | bg-info-tint |
| info.text | --color-info-text | text-info-foreground |
Disabled & Focus
bg-disabled--color-disabledtext-disabled-foreground--color-disabled-textfocus-ring--color-focus-ringring-error--color-focus-ring-error| Figma Token | CSS Variable | Tailwind Class |
|---|---|---|
| disabled.default | --color-disabled | bg-disabled |
| disabled.text | --color-disabled-text | text-disabled-foreground |
| focus.ring | --color-focus-ring | focus-ring |
| focus.ring-error | --color-focus-ring-error | ring-error |
Chart Colors (Chart-1~5)
bg-chart-1--color-chart-1bg-chart-2--color-chart-2bg-chart-3--color-chart-3bg-chart-4--color-chart-4bg-chart-5--color-chart-5| Figma Token | CSS Variable | Tailwind Class |
|---|---|---|
| chart.1 | --color-chart-1 | bg-chart-1 |
| chart.2 | --color-chart-2 | bg-chart-2 |
| chart.3 | --color-chart-3 | bg-chart-3 |
| chart.4 | --color-chart-4 | bg-chart-4 |
| chart.5 | --color-chart-5 | bg-chart-5 |
CSS → Tailwind 命名ルール
--color- を除いた部分がそのままTailwindクラス名になります。
基本
--color-primary → bg-primary
--color-text-*
--color-text-link → text-text-link
CSS × Tailwind 命名変換
同名
text- → text-text-*
CSSプレフィックスとTailwindユーティリティが同名
Tailwind 標準
*-text → *-foreground
Tailwindエコシステムの標準パターンに合わせたエイリアス
shadcn/ui 等が採用する開発者向けの短縮命名とは目的が異なり、Figma → コード 1:1 同期により、デザイナーと開発者が同じトークン名で会話できる命名体系です。