Логотип 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 по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 1

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — openreachtech. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Hof Css Props Naming в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-css-props-naming
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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

Включите навык Hof Css Props Naming в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Hof Css Props Naming, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Hof Css Props Naming не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл 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.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ 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.

Зачем использовать Hof Css Props Naming в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Hof Css Props Naming — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Hof Css Props Naming в TypingMind?

В 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?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Hof Css Props Naming?

С любым количеством. В TypingMind вы можете использовать Hof Css Props Naming с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Hof Css Props Naming?

Да. Навык опубликован на GitHub по лицензии Apache-2.0. Издатель — openreachtech. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇