Logo: Hof Lib Tokens

Hof Lib Tokens

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

Iwwersiicht

Editeuropenreachtech
Repositoryhora-skills-ort-furo
Skill-Nummhof-lib-tokens
Stären
32
Forks
0
Matgeliwwert Dateien
Nëmmen Instruktiounen
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.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

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

Installatioun

Installéiert de KI-Skill Hof Lib Tokens an TypingMind, fir e mat all LLM ze benotzen, oder setzt 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 „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-lib-tokens
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng 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 d'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-lib-tokens .claude/skills/hof-lib-tokens
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Hof Lib Tokens 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 Lib Tokens 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 Lib Tokens 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-Schlësselen.

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

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.

Heefeg gestallte Froen

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

Firwat Hof Lib Tokens op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Hof Lib Tokens 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 en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Hof Lib Tokens 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-lib-tokens an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Hof Lib Tokens 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 Lib Tokens benotzen?

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

Ass de KI-Skill Hof Lib Tokens gratis?

Jo. openreachtech huet de Skill ë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 weiderverwendbare Pak vun Instruktiounen, deen 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 e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

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