Skip to main content

Categories & themes

FlipCards declare two visual axes: a category (semantic intent and accent palette) and a theme (light/dark surface family).

Categories

Seven presets ship with the system. Pick the one whose intent matches the content — not just the color you want.

CategoryIntentTypical content
tealPrimary action cards for live content and launch points.Dashboards, hero entry points, run‑this‑now flows.
navyReference cards for specifications, docs, and durable context.Spec links, ADRs, reference tables.
goldHighlight cards for featured content, wins, and callouts.Launch announcements, awards, featured guides.
greenHealthy‑state cards for success metrics and positive status.SLO greens, completed runs, positive trends.
redAlert cards for urgent issues, risks, and destructive paths.Incidents, risks, irreversible actions.
plumInsight cards for analytics, experiments, and recommendations.Experiment results, recommendations, what‑if cards.
slateNeutral utility cards for system metadata and supporting details.Build info, version metadata, neutral chrome.

Programmatically:

import { CATEGORY_DESCRIPTIONS } from '@microsoft/flipcard-mcp';

CATEGORY_DESCRIPTIONS.forEach(({ category, description }) =>
console.log(`${category}: ${description}`),
);

Or via the MCP list_categories tool when authoring with an agent.

Themes

Themes change the surrounding surface palette while categories keep their semantic accent.

ThemeWhen to use
lightDefault, neutral background, blue accent.
darkInverse of light with brighter accent.
midnight-sapphireSaturated dark theme with a gold secondary; designed for showcase / hero pages.

Apply a theme by importing its CSS or by setting the corresponding class on a wrapper:

import { getThemeClassName } from '@microsoft/flipcard';

document.body.classList.add(getThemeClassName('midnight-sapphire'));

Picking the right combination

A few rules of thumb:

  • Mix categories freely within a single grid — that's what the catalog is for.
  • Don't change category to mean "I want red instead of teal." Use category to communicate intent; use theme + token overrides for color preferences.
  • Use gold and red sparingly so they keep their salience.
  • Reserve slate for chrome that should fade into the background.

See also