microsoft/flint-chart/flint-theme-author
Claude Code and agent skill by microsoft/flint-chart
- vendor
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Use when: creating, translating, refining, reviewing, or validating a custom Flint ThemeSpec from brand guidelines, websites, slide decks, publication references, design tokens, or an existing visual identity. Produce a reusable ThemeSpec JSON object for Flint Theme Lab without inventing fields or changing chart semantics.
Install
npx vskill@latest install microsoft/flint-chart/flint-theme-authorSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as microsoft/flint-chart/flint-theme-author.
Flint ThemeSpec authoring
Create a reusable visual system for Flint charts. Translate the user's reference materials into one valid ThemeSpec that can be pasted directly into Theme Lab.
Authoritative references
Read these before authoring. When prose and source disagree, the TypeScript contract is authoritative.
- Theme guide: https://github.com/microsoft/flint-chart/blob/main/docs/theme-spec.md
- Exhaustive ThemeSpec types and allowed values: https://github.com/microsoft/flint-chart/blob/main/packages/flint-js/src/core/theme/types.ts
- Real preset implementations: https://github.com/microsoft/flint-chart/tree/main/packages/flint-js/src/core/theme/presets
- Theme Lab: https://microsoft.github.io/flint-chart/#/theme-lab
Do not invent keys. If a requested decision cannot be represented by ThemeSpec, omit it and briefly identify the unsupported decision outside the JSON only when the user asked for an explanation.
Output contract
Unless the user asks for commentary, return exactly one valid JSON object:
- Return the bare
ThemeSpec, not{ "theme_spec": ... }and not a complete
ChartAssemblyInput.
- Do not wrap JSON in a Markdown fence.
- Do not include comments, placeholders, ellipses, or trailing commas.
- Include a stable kebab-case
idand a human-readablelabel. - Include only supported fields and only decisions justified by the references.
- Omit unspecified optional fields rather than guessing.
The top-level output schema is:
Every block except id and label may be omitted. The skeleton shows the shape, not a requirement to emit empty blocks.
Theme boundary
A theme controls presentation and compiler behavior across many charts. It may decide color, typography, surfaces, grids, axes, mark geometry, labels, legends, annotations, density, spacing, facets, and reusable chart defaults.
A theme does not choose data fields, encodings, aggregation, filtering, sorting, chart titles, or data values. Never put those decisions in a ThemeSpec. Outside chartDefaults, authored policy must not name a chart type, positional channel, mark type, field, or backend property.
Workflow
- Inspect the supplied references. Extract recurring decisions, not isolated
decoration from one screenshot.
- Ask only for missing decisions that materially affect the theme:
identity, required colors, typography, surface/background, density, accessibility constraints, and whether an existing Flint preset is a useful base.
- Separate evidence into system roles:
- surfaces and text hierarchy;
- categorical, sequential, diverging, and status color;
- typography roles;
- axes, grids, baselines, frames, and structural ink;
- mark weight, corners, points, separators, and spacing;
- labels, legends, annotations, facets, and layout behavior.
- Choose standalone authoring or inheritance.
- Author the smallest coherent spec that expresses the system.
- Check every key and enum against
types.ts. - Return the bare JSON object.
Choosing inheritance
Use extends when a built-in preset already supplies the intended compiler behavior and the new theme is a focused variation. Available preset IDs are:
nyt, economist, swiss, nature, mckinsey, datawrapper, powerbi, powerbi-light, pop, cartoon, apple, de-stijl, bbc, and material.
Nested objects merge. Arrays and scalar values replace the preset value. If you replace ink.series.categorical, also consider replacing categoricalExtended; otherwise high-cardinality charts may return to the base preset's extended palette.
How series colour holds up past the palette and on the page:
- Past
categorical(andcategoricalExtended), the largest series keep the
house inks and the rest take ink.series.overflow; with no overflow ink they take a grey derived from ink.text.muted. A single extra series keeps its own name. The renderer's default scheme is never used.
ink.series.categoricalTextgives each categorical ink a text variant, used
where a series is written in its colour (line-end names, matched values). Without it, an ink under 3:1 against the plot is darkened in its hue for text.
ink.series.minContrast: { fill, stroke }(defaults 1.25 and 1.6) sets when a
faint ink is made visible: fills gain a darker edge, lines darken in hue.
geometry.point.ink(series,text, or a colour) sets the ink of a line's
vertex dots; by default they take the line's own ink.
ink.series.categoricalByCount: { 2: [...], 3: [...] }states a set for an
exact series count, when the guide publishes one; ink.series.repeat: true restarts the palette past its end when the guide says colours repeat.
ink.series.byMark: { line, area, bar, arc, point }(each `{ single,
categorical }`) gives one family of marks its own inks, when the guide does.
ink.series.roles: { other, total, missing }colours values that play a role
(Other, Total, No data) in every chart. Do not put particular values (parties, products) in the theme: those belong to the chart's field annotation colors.
ink.series.selection.ordered: "ramp"withink.series.ordinalgives a
series whose order the chart declares (sortOrder) tints of one ramp.
geometry.area.fill: "fade"andgeometry.line.wash: "tint" | "fade"
(with washOpacity) draw gradient fills; use them only for a guide that shows them.
- Mark rules stay with their marks:
geometry.area.edgeis a line on areas
only; geometry.band.opacity and outlineInk: "series" are for bars; geometry.band.minLength keeps a near-zero bar visible; geometry.point.density (countable, all, sparse) says which lines keep dots; geometry.point.shape (circle, square, diamond, triangle, cross) is the glyph every dot is drawn as, and geometry.point.opacity how opaque (unset, a scatter's dots are 0.7; on a full plot shrunk dots rise toward solid); geometry.point.halo: { presence, width } rings a scatter's dots in the plot colour (declare it only where the house's dots carry a ring; a halo and an opacity below 1 are not combined, so declare one or the other); geometry.arc.order (data, largestFirst), startAngle and hole state pie rules.
marks.redundantChannels: ["texture"]withmarks.texturedraws pattern
fills on bars, wedges and areas: pattern: "vary" | "hatch", or the guide's own order as patterns (solid, diagonal, antidiagonal, horizontal, vertical, cross, dots), lines ink: "darker" | "white". Pair it with redundantEncoding: "always" only when the guide patterns every chart.
Type roles take the full weight scale (thin, extralight, light, regular, medium, semibold, bold, extrabold, black, or 100–900) and a case (upper, lower, title, sentence, asIs) that is applied before text is measured. State the weight the guide names rather than the nearest old one. display styles a KPI's big number; annotation a fitted statistic's note; footnote is not drawn by Flint.
Furniture says where it sits and what it is measured against. canvasTop is the canvas's own top edge (y = 0, outside the margin) — use it for a house that rules the top of the graphic (the Economist's red line, UNHCR's top bar), with frame: "canvas" to run edge to edge or "content" to stay inside the margin. aboveTitle is a line over the headline (a wordmark, a logo); besideTitle sits level with the headline and narrows it; belowTitle is a rule over the plot block. Logos are kind: "image" with inline svg or a src, a size, an alt and an optional href. The figure label itself is the chart's chart_spec.label; the theme styles it with type.kicker.
Use a standalone theme when the reference system does not honestly inherit a preset's layout, typography, and presentation behavior.
Schema map
Use the source contract for exhaustive nested fields and enum values. These are the authored blocks and their jobs:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 31 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent-skills/flint-theme-author/SKILL.md
Popularity
- Repository stars
- 4,321
- Repository forks
- 245
- 7-day trend score
- 42
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/flint-chart/flint-theme-author)