azure-app-platform-fluent-theme
Skill11 starsChanged 15 days agoMITView on GitHub
Design and customize web app themes, stacks, and icons on Azure App Platform's Fluent UI Headless token and component foundation.
In this repository30 other files it gives its agents.
- azure-app-platform-agent-instructionsSkill
- azure-app-platform-block-authoringSkill
- azure-app-platform-canvasSkill
- azure-app-platform-hosted-skillSkill
- azure-app-platform-spot-illustrationSkill
- azure-cost-health-checkSkill
- azure-functions-hosted-skills-canvasSkill
- azure-functions-hosted-skills-github-daily-digestSkill
- azure-functions-assessSkill
- azure-functions-best-practicesSkill
- azure-functions-canvasSkill
- azure-functions-commonSkill
- azure-functions-createSkill
- azure-functions-deploySkill
- azure-functions-diagnosticsSkill
- azure-functions-doctorSkill
- azure-functions-feedbackSkill
- azure-functions-health-statusSkill
- azure-functions-helpSkill
- azure-functions-hosted-skillsSkill
- azure-functions-inventorySkill
- azure-functions-setupSkill
- azure-functions-updateSkill
- azure-resources-querySkill
- azure-sre-agent-canvasSkill
- azure-storageSkill
- containersSkill
- kusto-workbenchSkill
- create-canvas-appSkill
- create-spot-illustrationSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 1 is distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when creating or customizing a User Experience / App Service Builder web frontend, selecting or authoring a visual theme …
- Very specific: line 12
Every Azure App Platform web frontend uses the Fluent UI Headless CSS custom-property contract on :root, [data-style="<preset>"], and …
- Very specific: line 31
If the user requests a specific preset or mood (e.g., "warm", "editorial", "minimal", "modern", "dark mode"), set data-style and data-theme …
- Very specific: line 34
Always keep :root, [data-style="copilot"] and the [data-style="warm"], [data-style="modern"], [data-style="editorial"], …
- Distinctive: line 35
Never add an in-page theme switcher toolbar.
- Very specific: line 41
If the user explicitly requests React (or another stack) in a Vite starter, update package.json, tsconfig.json, and entry files …
- Very specific: line 43
Import accessible behavior-first primitives (Button, Input, Checkbox, Switch, Badge, Tag, Tabs, TabList, Tab, Accordion, Dialog, Menu, …
- Very specific: line 50
When using MCP tools in chat, you can search or validate icons with fluent-agent-search_fluent_icons and fluent-agent-validate_fluent_icon.
- Very specific: line 52
When @fluentui/react-icons is not installed (such as zero-dependency Vite + TypeScript starters) or when creating a custom domain icon, …
- Very specific: line 53
ViewBox & Grid: Use viewBox="0 0 20 20" (compact UI controls, buttons, badges) or viewBox="0 0 24 24" (headers, empty states, feature …
- Very specific: line 54
Stroke & Fill: Use fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" for regular outline …
- Very specific: line 55
Corner Radii & Metaphors: Use smooth 2px–3px corner radii (rx="2") and clear, recognizable Fluent metaphors (checkmark circle, task list, …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fluent Headless Theme & Icon Authoring
Use this skill when creating or customizing a User Experience / App Service Builder web frontend, selecting or authoring a visual theme ([data-style] and [data-theme]), scaffolding a requested frontend stack (such as Vite + TypeScript or React + @fluentui/react-headless-components-preview), or adding Fluent icons and custom SVG icons.
1. Fluent Headless Token Foundation
Every Azure App Platform web frontend uses the Fluent UI Headless CSS custom-property contract on :root, [data-style="<preset>"], and [data-theme="light" | "dark"] (tokens.css or src/app/globals.css):
- Backgrounds:
--colorNeutralBackground1(card/surface),--colorNeutralBackground2(page canvas),--colorNeutralBackground3(muted control/code surface),--colorSubtleBackgroundHover - Foregrounds:
--colorNeutralForeground1(primary ink),--colorNeutralForeground2(secondary body copy),--colorNeutralForeground3(captions/metadata),--colorNeutralForegroundOnBrand - Brand:
--colorBrandBackground,--colorBrandBackgroundHover,--colorBrandBackgroundPressed,--colorBrandBackground2(soft badge/tint surface),--colorBrandForeground1(accent text/icons),--colorBrandStroke1,--colorCompoundBrandStroke - Strokes & Status:
--colorNeutralStroke1,--colorNeutralStroke2,--colorStrokeFocus2,--colorStatusSuccessBackground1,--colorStatusSuccessForeground1,--colorStatusWarningBackground1,--colorStatusWarningForeground1,--colorStatusDangerBackground1,--colorStatusDangerForeground1 - Typography & Geometry:
--fontFamilyBase,--fontFamilyMonospace,--fontFamilyDisplay,--borderRadiusSmall,--borderRadiusMedium,--borderRadiusLarge,--borderRadiusXLarge,--borderRadiusCircular,--shadow4,--shadow8,--shadow16
Built-in Style Presets (data-style)
copilot(default): Soft warm stone canvas (#f8f7f4light /#141413dark), purple-blue brand accent (#4f46e5/#818cf8), rounded modern cards (14px). Best for AI assistants, productivity tools, and general-purpose apps.warm: Warm cream & terracotta palette (#faf6f1light /#171311dark,#c2410c/#fb923caccent), editorial display headings. Best for consumer, hospitality, lifestyle, task/todo, and creative workflows.modern: Crisp slate & cyan-blue palette (#f4f6f9light /#0b0f17dark,#0066ff/#3b82f6accent). Best for developer tools, dashboards, analytics, and SaaS portals.editorial: High-contrast warm paper & crimson accent (#fbf9f5light /#121110dark,#991b1b/#f87171accent), serif headings, sharp geometry (2px–4pxradius). Best for publishing, knowledge bases, legal/financial review, and research apps.minimal: Pure monochrome ink & paper (#fffffflight /#0a0a0adark,#171717/#fafafaaccent). Best for distraction-free utilities, note-taking, and minimal trackers.
Selecting or Authoring a Theme
- Match the user's request or domain:
- If the user requests a specific preset or mood (e.g., "warm", "editorial", "minimal", "modern", "dark mode"), set
data-styleanddata-themeon<html>(index.htmlorlayout.tsx) and update the default fallback insrc/main.ts. - If the user names an app topic without a preset (e.g.,
"Create a todo app"), pick the most fitting preset (such aswarmorcopilotfor a personal todo/planner app,modernfor an engineering dashboard,editorialfor a reading/research app) and refine the brand/surface tokens intokens.cssif the prompt asks for custom colors (e.g., "forest green theme" or "ocean blue palette").
- If the user requests a specific preset or mood (e.g., "warm", "editorial", "minimal", "modern", "dark mode"), set
- Preserve Build Panel Switchability:
- Always keep
:root, [data-style="copilot"]and the[data-style="warm"],[data-style="modern"],[data-style="editorial"],[data-style="minimal"], and[data-theme="dark"]blocks intokens.css/globals.cssso the Build panel's Style dropdown and Light | Dark toggle continue to work seamlessly. - Never add an in-page theme switcher toolbar; theme switching belongs exclusively to the Azure App Platform Build panel.
- Always keep
2. Tech Stack & Fluent Headless Component Patterns
- Honor the requested stack:
- If the user asks for an interactive app (e.g.,
"Create a todo app") without specifying a framework, build a complete, interactive app in the existing stack (Vite + TypeScript insrc/main.tsandindex.html, or React/Next.js when the project uses React) with real state, keyboard accessibility, filtering, and persistence (localStorageor wired API endpoints). - If the user explicitly requests React (or another stack) in a Vite starter, update
package.json,tsconfig.json, and entry files (src/main.tsx) to use React and@fluentui/react-headless-components-previewwhile preservingnpm run build->dist/andbuilder.yaml.
- If the user asks for an interactive app (e.g.,
- Using
@fluentui/react-headless-components-preview:- Import accessible behavior-first primitives (
Button,Input,Checkbox,Switch,Badge,Tag,Tabs,TabList,Tab,Accordion,Dialog,Menu,Tooltip,Field,ProgressBar) and style their slots with classes backed bytokens.cssvariables. - Because
@fluentui/react-headless-components-previewintentionally isolates icon packages from its runtime bundle, pass icons through componenticonslots (for example<Tag icon={{ className: "tag-icon", children: <TaskListIcon /> }}>or<Button><AddIcon /> Add task</Button>).
- Import accessible behavior-first primitives (
3. Fluent Icons & Custom SVG Icon Rules
- Standard Icons:
- In React projects with
@fluentui/react-iconsinstalled, prefer*20Regular/*20Filledor*24Regular/*24Filledicons from@fluentui/react-icons. - When using MCP tools in chat, you can search or validate icons with
fluent-agent-search_fluent_iconsandfluent-agent-validate_fluent_icon.
- In React projects with
- Inline & Custom SVG Icons (Fluent System Icon Reference Spec):
- When
@fluentui/react-iconsis not installed (such as zero-dependency Vite + TypeScript starters) or when creating a custom domain icon, author clean inline SVG icons modeled on the Fluent System Icons specification:- ViewBox & Grid: Use
viewBox="0 0 20 20"(compact UI controls, buttons, badges) orviewBox="0 0 24 24"(headers, empty states, feature cards) withwidth="20" height="20"orwidth="24" height="24". - Stroke & Fill: Use
fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"for regular outline icons, orfill="currentColor"for filled Fluent icon paths. - Corner Radii & Metaphors: Use smooth
2px–3pxcorner radii (rx="2") and clear, recognizable Fluent metaphors (checkmark circle, task list, calendar, tag, spark, filter, search, shield, document). - Accessibility & Token Binding: Mark decorative icons beside text with
aria-hidden="true" focusable="false", and bind icon color viacolor: var(--colorBrandForeground1)orcurrentColorso icons automatically adapt to every theme and dark mode.
- ViewBox & Grid: Use
- When
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

