Logo de Hof Lib Tokens

Hof Lib Tokens

Organização
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.

Visão geral

Publicado poropenreachtech
Repositóriohora-skills-ort-furo
Nome da habilidadehof-lib-tokens
Estrelas
32
Forks
0
Arquivos incluídos
Somente instruções
LicençaApache-2.0
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por openreachtech no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Hof Lib Tokens no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-lib-tokens
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Hof Lib Tokens em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Hof Lib Tokens automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Hof Lib Tokens não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Perguntas frequentes

O que a habilidade de IA Hof Lib Tokens faz?

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.

Por que usar Hof Lib Tokens no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Hof Lib Tokens é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Hof Lib Tokens no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-lib-tokens. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Hof Lib Tokens?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Hof Lib Tokens?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Hof Lib Tokens com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Hof Lib Tokens é gratuita?

Sim. A habilidade é publicada no GitHub por openreachtech sob a licença Apache-2.0. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇