Логотип 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

    Навички ШІ — це звичайний 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. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-css-props-naming
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
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?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Hof Css Props Naming — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Hof Css Props Naming?

Так. Навичку опубліковано на GitHub: openreachtech, за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇