Fluig Dark Mode logo

Fluig Dark Mode

Organization
totvs
fluig-dark-mode

Adapta CSS de customizações Fluig ao modo escuro (dark mode) substituindo cores fixas por variáveis CSS de tema no formato var(--fs-color-*), garantindo que o componente acompanhe a troca de tema automaticamente sem código adicional. Use quando o desenvolvedor pedir para dar suporte a dark mode, adaptar estilos ao tema ativo ou remover hexadecimais fixos de cores de um trecho/arquivo CSS.

Overview

Publishertotvs
Repositoryfluig-agent-skills
Skill namefluig-dark-mode
Stars
37
Forks
14
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by totvs on GitHub. Read the source before you install it.

Installation

Install the Fluig Dark Mode AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/totvs/fluig-agent-skills/tree/main/skills/fluig-dark-mode
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/totvs/fluig-agent-skills.git /tmp/fluig-agent-skills
mkdir -p .claude/skills
cp -r /tmp/fluig-agent-skills/skills/fluig-dark-mode .claude/skills/fluig-dark-mode
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Fluig Dark Mode in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Fluig Dark Mode on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Fluig Dark Mode is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Adaptação ao Modo Escuro (Dark Mode)

Esta skill adapta o CSS de customizações Fluig ao dark mode usando variáveis de tema; ela não duplica os tokens de cor nem a tabela de mapeamento de cores (uso comum → var(--fs-color-*) e hexadecimal → var(--fs-color-*)) — o arquivo de context/ é a fonte de verdade, referenciada abaixo.

Passo 0 — Persona

Antes de adaptar o CSS, classifique a persona do desenvolvedor seguindo a cascata em persona-routing.md: conversa > marcador de arquivo > marcador técnico de Store (component.xml ou API de slot)

estrutura do projeto > pergunta. Se restar ambígua, pare e pergunte antes de continuar. Emita Persona: <Parceiro|Consultor> (motivo) — esta skill aplica as mesmas regras técnicas independentemente da persona (não há camada da Store envolvida no dark mode).

Objetivo

Adaptar, com responsabilidade única, o CSS de uma customização ao modo escuro, substituindo cores fixas (hexadecimais, rgb(), nomes de cor) por variáveis CSS de tema no formato var(--fs-color-*), para que o componente acompanhe a troca de tema (claro/escuro) automaticamente, sem alterar o comportamento nem o layout.

Quando Usar

  • Quando um widget/Custom Element usa hexadecimais fixos (#fff, #202020) para cores de tema.
  • Quando o componente não acompanha a troca de tema e fica ilegível no modo escuro.
  • Antes de publicar uma customização que precisa dar suporte a dark mode.
  • Ao revisar CSS próprio e detectar cores que deveriam vir do tema (texto, fundo, borda, sombra).

Entradas Esperadas

EntradaDescriçãoObrigatória
Código/CSS alvoTrecho ou arquivo CSS com cores a adaptar ao temasim
Contexto do componenteTipo/função do elemento (cabeçalho, card, botão, texto) para escolher a família de token adequadanão
Tokens já em usoVariáveis var(--fs-color-*) já adotadas no componente, a manter consistentesnão

Contexto de Referência (Fonte de Verdade)

Leia antes de executar — não reproduza o conteúdo aqui:

  • style-guide.md — seção Theming e dark mode (variáveis CSS): regra obrigatória de usar var(--fs-color-*), proibição de hexadecimais fixos e de variáveis SCSS para cores de tema, tabelas completas de todas as famílias de tokens (marca, ação, neutros, feedback com tons lightest→darkest, sombras --fs-shadow-*) e a tabela de mapeamento de cores (uso comum → var(--fs-color-*) e hexadecimal → var(--fs-color-*)) usada para converter cores fixas.
  • Referência completa das variáveis CSS: style-guide.md.

Regras Aplicáveis (Resumo Executivo)

Somente o mínimo para orientar a tarefa; o detalhe e o catálogo de tokens estão no contexto:

  • Para qualquer cor de tema, usar variáveis CSS no formato var(--fs-color-*) → ver style-guide.md.
  • ⚠️ Proibido inventar variáveis CSS. Usar somente as variáveis documentadas em style-guide.md. Se uma variável não estiver nessa referência, ela não existe no Style Guide — nesse caso, use um valor CSS convencional ou CSS próprio escopado.
  • Hexadecimais fixos e variáveis SCSS ($...) para cores de tema são proibidos — não acompanham a troca de tema e quebram o dark mode → ver style-guide.md.
  • Ao converter cores fixas, consultar a tabela de mapeamento de cores (uso comum → variável e hexadecimal → variável) que vive em style-guide.md → ver style-guide.md.
  • Escolher a família de token conforme o papel da cor: marca (--fs-color-brand-*), ação (--fs-color-action-*), neutros (--fs-color-neutral-*), feedback (--fs-color-positive/negative/warning/info-*) → ver style-guide.md.
  • Usar tokens de sombra (--fs-shadow-*) em vez de valores fixos, quando aplicável → ver style-guide.md.
  • Reutilizar componentes/classes do Style Guide já adaptados ao tema, em vez de recriar estilos → ver style-guide.md.
  • Preservar o layout e o comportamento: trocar apenas a origem da cor, não a estrutura.

Procedimento

  1. Ler o CSS alvo e listar todas as cores fixas usadas (hexadecimais, rgb(), nomes de cor) e sombras com valores fixos.
  2. Classificar cada cor pelo seu papel (texto, fundo, borda, ação, feedback) para escolher a família de token correta.
  3. Substituir cada cor fixa pela variável var(--fs-color-*) correspondente, consultando a tabela de mapeamento de cores (uso comum → variável e hexadecimal → variável) em style-guide.md.
  4. Trocar sombras fixas por tokens --fs-shadow-*.
  5. Verificar que nenhum hexadecimal fixo de cor de tema permaneceu e que o layout não mudou.
  6. Conferir o resultado com o checklist abaixo antes de entregar.

Saída Esperada

CSS adaptado ao dark mode, com todas as cores de tema expressas como var(--fs-color-*) (e sombras/tipografia via tokens quando aplicável), sem hexadecimais fixos de tema, com layout e comportamento preservados e adaptação automática à troca de tema. Em conformidade com context/style-guide.md.

Exemplo de Uso

Antes (cores fixas — não acompanham o tema, quebram no dark mode):

css
/* ❌ hexadecimal fixo: ilegível ao trocar para o modo escuro */
.my-widget__header {
  color: #202020;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

Depois (variáveis de tema — adaptam-se automaticamente):

css
/* ✅ usa var(--fs-color-*) e token de sombra: adapta a dark mode sem código extra */
.my-widget__header {
  color: var(--fs-color-neutral-dark-90);
  background-color: var(--fs-color-neutral-light-00);
  box-shadow: var(--fs-shadow-md);
}

Checklist de Validação

  • Toda cor de tema usa var(--fs-color-*); nenhum hexadecimal fixo de tema permaneceu.
  • A família de token escolhida corresponde ao papel da cor (marca/ação/neutros/feedback).
  • Sombras usam --fs-shadow-* quando aplicável.
  • Layout e comportamento preservados (somente a origem da cor mudou).
  • Tokens consistentes com os já adotados no componente e com style-guide.md.

Frequently asked questions

What does the Fluig Dark Mode AI skill do?

Adapta CSS de customizações Fluig ao modo escuro (dark mode) substituindo cores fixas por variáveis CSS de tema no formato var(--fs-color-*), garantindo que o componente acompanhe a troca de tema automaticamente sem código adicional. Use quando o desenvolvedor pedir para dar suporte a dark mode, adaptar estilos ao tema ativo ou remover hexadecimais fixos de cores de um trecho/arquivo CSS.

Why use Fluig Dark Mode on TypingMind?

Because you install it once and use it with any model. Fluig Dark Mode is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Fluig Dark Mode in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/totvs/fluig-agent-skills/tree/main/skills/fluig-dark-mode. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Fluig Dark Mode?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Fluig Dark Mode?

As many as you like. As long as a model supports skills, you can use Fluig Dark Mode with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Fluig Dark Mode AI skill free?

Yes. It is published on GitHub by totvs under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇