Hof Css Props Namingのロゴ

Hof Css Props Naming

組織
openreachtech
hof-css-props-naming

The company's CSS custom property naming convention. Defines the top-prefix rule for denoting a value's kind, and the two-layer palette / color rule. Refer to it when defining or referencing custom properties.

概要

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

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

  • どのLLMでも利用可能

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

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

AIスキルHof Css Props Namingを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-css-props-naming
  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-css-props-naming .claude/skills/hof-css-props-naming
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

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

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

スキルの指示

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

Frontend: CSS Custom Properties Naming

A custom property denotes what kind of value it holds through its top prefix.

The top prefix denotes the kind

The first word right after -- is the top prefix. From the prefix you can tell which kind of value the variable holds.

Top prefixKindExample
--palette-*Raw color values. Colors with no meaning--palette-sky-500
--color-*Semantic colors. Named by their use--color-primary, --color-text
--size-*Dimensions. Length / width / height--size-header-height
--value-*Unitless scalars. Ratios and base values--value-golden-ratio
--motion-*The time axis of transition / animation. duration, easing, delay--motion-duration-base, --motion-easing-standard

Top prefixes are added as needed. The four above are not a fixed set. When a new kind is needed, do not force it into an existing prefix — stand up a new prefix. The set of prefixes stays open; the convention itself is the framework of "stand up a prefix per kind".

Put the more distinctive word last

In custom property naming, the top prefix (the broadest kind) comes first, and the more distinctive — the more specific, more qualifying — a word is, the later it comes. You read left to right, from "broad kind → individual qualifier".

--color-background-header
   └kind  └role       └which (distinctive)

This is the reverse of JavaScript class naming. A class puts its distinctive word in the prefix (front) and keeps the shared, categorical suffix at the back (AlphaSample / BetaSample — the distinctive Alpha / Beta in front, the kind Sample behind). A custom property is the opposite: the fixed kind comes first (the top prefix), and the distinctive word comes last.

This reversal is not a matter of taste; it is forced by what groups the name. The prefix always goes to whatever does the grouping.

  • JavaScript classes are grouped by modules, imports, and the type system. Because the grouping mechanism lives outside the name, the name itself need not carry the taxonomy and is free to follow English noun-phrase grammar (head-final: the head word comes last). AlphaSample reads as "an Alpha Sample" — the kind Sample stands last as the head, the distinctive Alpha in front as the modifier.
  • Custom properties have no namespace, no module, no scope; they are all laid flat in the single global dictionary of :root. With no mechanism outside the name to give structure, the name itself must carry the index (the same idea as reverse-DNS com.company.app, file paths, or BEM). Putting the broadest kind first lets lexical sorting and prefix autocomplete (typing --color-) cluster siblings in one place.

So putting the distinctive word first (--header-background-color) scatters siblings across both sorting and autocomplete, and in CSS — flat and module-less — the namespace stops working as an index. Fixing the kind at the front is what keeps that index intact.

palette and color — colors flow one way through two layers

Colors alone are handled in two layers, --palette-* and --color-*. No other kind has this two-layer structure.

  • palette layer (--palette-*): raw color values. No meaning. The internal layer.
  • color layer (--color-*): colors given meaning by use. The only public interface the application touches.

Colors always flow one way: palette → color → application.

--palette-*  →  --color-*  →  application CSS
(raw, internal)  (meaning, public)  (references color only)

To keep this one-way flow, two rules are imposed.

(1) The application may call only --color-*

The only color variables the application CSS may call are --color-*. It must not call --palette-* directly.

css
.button {
  background: var(--color-primary);      /* ✅ call the color layer */
}
css
.button {
  background: var(--palette-blue-500);   /* ❌ do not call palette directly */
}

Calling palette directly scatters raw color values through the application and skips the layer of meaning. palette is referenced only by the color layer.

(2) A --color-* value is either var(--palette-*) or a literal

When defining a --color-*, only two kinds of value may be passed.

css
:root {
  --color-primary: var(--palette-sky-500);   /* ✅ reference a palette */
  --color-border:  #ccc;                      /* ✅ a directly defined color */
}

A literal color (#ccc and the like) may be written only here, at the color definition. Because the application can call only --color-*, raw color values are sealed in here and never leak into the application CSS.

Refer to the template for palette definitions

For the concrete definition of --palette-*, use ./templates/property-palette.css as the example. Each hue is aligned in 11 steps from 050 to 950.

Related topics

  • the z-index convention: one example of --value-*. The layer base values for z-index and the calc() notation.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Hof Css Props Naming」では何ができますか?

The company's CSS custom property naming convention. Defines the top-prefix rule for denoting a value's kind, and the two-layer palette / color rule. Refer to it when defining or referencing custom properties.

TypingMindでHof Css Props Namingを使うメリットは何ですか?

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

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

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

Hof Css Props Namingを使えるAIモデルはどれですか?

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

Hof Css Props Namingは何個のAIモデルで使えますか?

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

AIスキル「Hof Css Props Naming」は無料ですか?

はい。openreachtechがGitHubでApache-2.0ライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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