Hof Lib Tokensのロゴ

Hof Lib Tokens

組織
openreachtech
hof-lib-tokens

Use when re-theming or overriding the component library's own semantic tokens from a consumer app, such as "change the library's primary colour", "make the field borders lighter", "our brand red", "retime the library's transitions". Covers where an override sits in the cascade, the published token prefixes, the two border tiers, the intent roles, the text roles, the easing tokens and the control size tokens.

概要

公開者openreachtech
リポジトリhora-skills-ort-furo
スキル名hof-lib-tokens
スター
32
フォーク
0
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    openreachtechがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Hof Lib Tokens」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-lib-tokens
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openreachtech/hora-skills-ort-furo.git /tmp/hora-skills-ort-furo
mkdir -p .claude/skills
cp -r /tmp/hora-skills-ort-furo/kit/skills/hof-lib-tokens .claude/skills/hof-lib-tokens
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでHof Lib Tokensを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にHof Lib Tokensを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Hof Lib Tokensは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

The component library's semantic tokens

This is about the tokens the component library itself publishes and reads — not the host app's own assets/css/variables.css tokens, which are a separate vocabulary with separate rules. Reach for this skill when a library component renders in the wrong colour, weight or timing and the fix belongs in the token layer rather than in a component's <style>.

The library ships its own token reference under docs/ inside the installed package. Read it before overriding anything — it is the authority, and it carries the reasoning behind each role.

How a consumer re-themes

Redefine semantic tokens only, never a --palette-* primitive and never a library component's CSS, and keep the light and dark blocks in sync so both schemes stay legible. Where the override sits depends on the library version:

Before 1.5.0From 1.5.0
Library tokensDeclared outside any cascade layerDeclared inside @layer furo
Unlayered override fileWins only when it loads after the library stylesheetWins wherever it loads
Override inside @layer app, which /hof-css-layers orders after furoLoses to the library tokens, because an unlayered declaration beats every layered oneWins
Override on bare :rootCompetes with the library's [data-theme="..."] blocks on load order and specificityBeats both theme blocks, so the token holds one value in both themes

Before 1.5.0:

  1. Keep the override file outside any cascade layer, and load it after the library stylesheet.
  2. Write the override under [data-theme="light"] / [data-theme="dark"], not bare :root, whenever the app sets data-theme.

From 1.5.0:

  1. Keep the override file outside any layer, where its load order no longer matters, or put it in @layer app, declared after furo.
  2. Write a token that differs per theme under [data-theme="light"] / [data-theme="dark"]. Put a token that holds in both themes, such as a size, on :root.

The published prefixes

A library component reads these and nothing else. --palette-* is off limits in component CSS, and a non-colour value never carries --color-.

PrefixHolds
--color-*Semantic colour roles
--size-*Spacing, radius, layout sizes
--font-*Family, size, weight, line height, and the composite text roles
--shadow-*Elevation
--transition-*Duration and easing
--value-*Constants, and the z-index layers

Two narrowing rules apply on top: gap takes --size-space-*, and text is set through a composite --font-* role rather than a bare font-size.

The two border tiers

TokenWhat reads it
--color-borderContainer outlines and dividers: menus, overlays, table rules, separators, toolbar and stepper outlines, outline toggles and toggle group items, a scrollbar thumb, a splitter grip, a column-resize bar
--color-inputControl boundaries: field, textarea, select and editor borders, radio and checkbox boxes, outline buttons, the switch off track

There is no --color-border-strong. A control that needs the stronger edge reads --color-input.

The intent roles

Each intent family ships these roles:

RoleRead as
--color-{destructive,error,info,success,warning}The fill and the border of an invalid control. Before 1.6.0 it was also the family read as text
--color-{destructive,info,warning}-textFrom 1.6.0, the family read as text on the page. See The text roles
--color-…-foregroundA label sitting on that fill
--color-{error,info,success,warning}-subtleA tinted surface, such as a badge
--color-…-subtle-foregroundText sitting on that tinted surface

--color-error and --color-success ship no -text sibling, because the library's contrast check finds no color: declaration that reads either. Text set through a --furo-* knob sits outside that check, so an app that paints either as text checks the contrast itself.

The text roles

Text on the page has to clear 4.5:1 against --color-background. Before 1.6.0 several roles the library paints as text fell short in the light theme, and the fill of a family doubled as its text. From 1.6.0 each role below clears 4.5:1 in both themes, except the glyph role, which is held to 3:1.

RoleBefore 1.6.0From 1.6.0, lightFrom 1.6.0, darkRead by, from 1.6.0
--color-destructive-textAbsent. Text read --color-destructive, --palette-rose-500, 3.67:1--palette-rose-600, 4.70:1--palette-rose-500, 5.14:1The FuroControlBlock message and required mark, FuroErrorState, the destructive FuroDropdownMenu item, the FuroTable error row
--color-warning-textAbsent. Text read --color-warning, --palette-orange-500, 2.80:1--palette-orange-700, 5.18:1--palette-orange-400, 8.34:1The unresolved-name glyph of FuroIcon
--color-info-textAbsent. Text read --color-info, --palette-blue-500, 3.68:1--palette-blue-600, 5.17:1--palette-blue-400, 7.43:1The FuroAttachment spinner
--color-link--palette-blue-500, 3.68:1--palette-blue-600, 5.17:1--palette-blue-500, 5.13:1, unchangedThe FuroButton link variant, links inside FuroEditor content
--color-foreground-glyphAbsent. Glyphs read --color-foreground-tertiary--palette-gray-600, 3.09:1--palette-gray-300, 12.84:1The FuroSidebar caret, the FuroSearchField icon, the FuroBreadcrumb separator and overflow marker
--color-foreground-secondary--palette-gray-700, 5.27:1. The FuroSidebar group label and section button read --color-foreground-tertiary instead, at 3.09:1Unchanged valueUnchanged valueAlso the FuroSidebar group label and section button
  • The fill roles keep their values. --color-destructive, --color-warning and --color-info still resolve to the same palette steps, because darkening a fill would push its -foreground label under 4.5:1. --palette-gray-950 on --palette-rose-600 is 4.02:1.
  • --color-foreground-tertiary did not move. It stays --palette-gray-600 in light and --palette-gray-300 in dark. At 3.09:1 in light it is below the text floor, so no library component reads it from 1.6.0. Set text with --color-foreground-secondary, never with the tertiary or the glyph role.
  • --color-foreground-glyph is for an icon, a caret or a separator only. Its 3:1 floor is the one WCAG sets for a graphic, and the library cannot tell a glyph from text, so only review keeps text off it.

No colour role was renamed or removed between 1.4.0 and 1.6.0, and every value in the table was the same in 1.4.0 and 1.5.0. Re-pointing a family depends on the version:

Before 1.6.0From 1.6.0
AA-passing danger textRe-point --color-destructive to a darker step, such as --palette-rose-700 (6.29:1), and accept that the fill and the invalid border darken with itNo override needed, because --color-destructive-text already clears 4.5:1
Recolor the danger family to a brand redRe-point --color-destructiveRe-point --color-destructive and --color-destructive-text, or messages keep the library's rose
Same for warning and infoRe-point --color-warning or --color-infoRe-point the fill and its -text sibling together
Link colour in light--palette-blue-500, 3.68:1--palette-blue-600, 5.17:1

A -text override differs per theme, so write it under [data-theme="light"] and [data-theme="dark"] and check it clears 4.5:1 on --color-background in each.

Easing

--transition-timer is the one name for the transition time axis. Two easing tokens sit beside it:

TokenFor
--transition-easingThe default curve
--transition-easing-emphasizedA large surface entering or leaving

Neither is redefined for the dark theme — a curve carries no colour.

Control size tokens

From 1.5.0 the library publishes three size tokens, so an app can raise a row or a close button to a larger touch target without touching component CSS:

TokenDefaultWhat reads it
--size-option-heightcalc(var(--size-input-height) - 0.5rem), 24pxThe minimum height of a FuroSelect option row and a FuroDropdownMenu row
--size-close-button-small1.25rem, 20pxThe FuroToast close button
--size-close-button-medium1.75rem, 28pxThe FuroDialog and FuroDrawer close buttons

Before 1.5.0 these tokens do not exist, and the components fix the same values in their own CSS, so declaring the tokens there changes nothing. No token was renamed or removed between 1.4.0 and 1.5.0.

Rules

  • Override a semantic role, never a --palette-* primitive and never a library component's CSS. A component's own rules live inside a cascade layer, so an app stylesheet outside that layer already wins where it needs to — reaching into the component is never the fix.
  • Re-point an intent family's fill and its -foreground companion together, and check the label still clears 4.5:1 on the new fill. From 1.6.0, also re-point the -text sibling of the destructive, warning and info families, and check it clears 4.5:1 on --color-background.
  • A colour a component needs but the token layer does not publish is a library gap worth reporting, not a hex value to inline in the app.
  • Do not invent a token name in the library's namespace. A new prefix is a change to the library's own token layers, not something an app declares.

よくある質問

AIスキル「Hof Lib Tokens」では何ができますか?

Use when re-theming or overriding the component library's own semantic tokens from a consumer app, such as "change the library's primary colour", "make the field borders lighter", "our brand red", "retime the library's transitions". Covers where an override sits in the cascade, the published token prefixes, the two border tiers, the intent roles, the text roles, the easing tokens and the control size tokens.

TypingMindでHof Lib Tokensを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Hof Lib Tokensはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにHof Lib Tokensをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-lib-tokensを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Hof Lib Tokensを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Hof Lib Tokensで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもHof Lib Tokensを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Hof Lib Tokens」は無料ですか?

はい。openreachtechがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇