Logo vun Hof Css Props Naming

Hof Css Props Naming

Organisatioun
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.

Iwwersiicht

Editeuropenreachtech
Repositoryhora-skills-ort-furo
Skill-Nummhof-css-props-naming
Stären
32
Forks
0
Matgeliwwert Fichieren
1
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum openreachtech op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Hof Css Props Naming an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-css-props-naming
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Hof Css Props Naming an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Hof Css Props Naming automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Hof Css Props Naming net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Hof Css Props Naming op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Hof Css Props Naming besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Hof Css Props Naming an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-css-props-naming an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Hof Css Props Naming benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Hof Css Props Naming benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Hof Css Props Naming domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Hof Css Props Naming gratis?

Jo. De Skill gëtt vum openreachtech ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇