Skip to main content

Design Language

1. Why​

Camouflage is a design system of its own, not a wrapper around Material. It has its own principles, its own vocabulary, and its own component set. Existing design languages (Material, Apple, Fluent, …) are dialects: a skin renders Camouflage's language in that dialect's look and feel.

That's what makes the promise work:

  • Designers design in Camouflage's words (a Camouflage Figma kit).
  • Developers write the same words in code.
  • Code Connect / AI agents map one to one.
  • The skin decides whether the result looks like Material, Apple or your own brand.

Nobody has to translate "Material's tonal" into "Apple's bordered" by hand.

2. Shape​

LayerWhere it's defined
FoundationsTheme (with alignment tables to other systems in §3.3)
Vocabularythis note, §3.2
ComponentsComponents — Overview
Interaction modelSkin Contract (feedback), Overlays
Dialectseach skin note (Skins), which must include an alignment table (§3.4). Camouflage's own dialect is Minimal Skin.

3. API​

3.1 Principles​

  1. Intent over look. Parameters describe what something is (how prominent, what status), never how one design system draws it.
  2. One component, many dialects. A component is written once. Its look comes from the skin (structure) and the theme (values).
  3. Accessible under every dialect. Semantics, focus, touch targets and contrast rules belong to Camouflage, not to a skin, so no skin can break them.
  4. Values, not code, for brands. A brand is a theme: tokens plus component themes. Code changes are only for structural differences (a renderer override or a new skin).
  5. Platform-idiomatic integration. Camouflage plugs into each platform's framework the way that platform's own design library does (routes in Flutter, Navigation 3 scenes in Compose).

3.2 Vocabulary​

The four words that appear in every Camouflage API, Figma property and doc:

WordAxisValuesUsed by
Appearancevisual weight: how much a component stands outSolid, Soft, Raised, Outline, Ghost, Linkbutton, icon button, card, chip, badge, banner, tabs, FAB
Tonecolor family: what the component meansDefault, Error, Success, Warning, Infobutton, icon button, card, chip, badge, avatar colors, progress, snackbar, banner, menu items, FAB
Levelseparation from the backgroundSurface, Lowest, Low, Container, High, Highestsurface (and every container, through its skin)
Rolesnamed token slotscolor roles, type styles, shape roles, spacing, elevation levels, motioneverything

Appearance, defined:

AppearanceMeaningContainerContentEmphasis
Solidthe strongest: full tone colorthe tone's strong colorthe tone's on-strong colorhighest
Softa tinted, quieter fillthe tone's container colorthe tone's on-container colorhigh
Raisedlifted by depth, not by colora surface level + elevationthe tone's strong colormedium
Outlinea border, no fillnonethe tone's strong color, border in outline (or the tone color)medium
Ghostno container, just contentnonethe tone's strong colorlow
Linkinline, text-like, underlinednone, no padding beyond the touch targetthe tone's strong color, underlinedlowest

Appearance and Tone are independent: any appearance works with any tone (Outline + Error is a red outlined button). Components support the subset that makes sense for them (§3.3).

3.3 Appearance per component​

ComponentSupportedDefaultUnsupported values fall back to
CamoButtonSolid, Soft, Raised, Outline, Ghost, LinkSolid–
CamoIconButtonSolid, Soft, Outline, GhostGhostRaised → Soft, Link → Ghost
CamoCardSolid, Soft, Raised, OutlineRaisedGhost → Outline, Link → Outline
CamoChipOutline, Soft, SolidOutlineothers → Outline
CamoBadgeSolid, Soft, OutlineSolidothers → Solid
CamoBannerSoft, Solid, OutlineSoftothers → Soft
CamoTabsSolid (prominent), Ghost (quiet)Solidothers → Solid
CamoFabSoft, Solid, RaisedSoftothers → Soft

A fallback is applied by core (never an error), and debug builds log it, so a design token or Figma property can never crash an app.

3.4 Dialect alignment (required in every skin)​

Every skin documents how it renders the vocabulary. Here's how the design systems line up today (→ means "nearest equivalent, used as the fallback"):

Buttons

AppearanceMaterial 3Apple (classic / Liquid Glass)Fluent 2IBM CarbonShopify PolarisBootstrap
SolidFilled.borderedProminent / .glassProminentPrimaryprimaryprimarybtn-primary
SoftFilled tonal.bordered (tinted) / .glassSecondarysecondarysecondarybtn-secondary
RaisedElevated→ Soft→ Soft→ Soft→ Soft→ Soft
OutlineOutlined→ .borderedOutlinetertiary→ secondarybtn-outline-*
GhostText.borderlessSubtle / Transparentghosttertiary / plain→ btn-link
Link→ Text.plain→ Link style→ Linkplainbtn-link

Rank names differ between systems: Carbon's "tertiary" is outlined, while Polaris's "tertiary" is text-like. That's why Camouflage names appearance, not rank.

Tone

ToneMaterial 3AppleFluent 2Carbon
Defaultprimarytint / accentbrandinteractive
Errorerrorrole: .destructive, systemReddangerdanger / support-error
Success– (Camouflage addition)systemGreensuccesssupport-success
Warning–systemOrange / systemYellowwarningsupport-warning
Info–systemBlue– (brand)support-info

Level

The level alignment is in Theme §3.3 (Material surface containers, Apple grouped backgrounds, Fluent neutral backgrounds 1–6, Carbon layers).

3.5 In Figma​

The Camouflage Figma kit uses the same words as component properties: appearance = solid | soft | raised | outline | ghost | link, tone = default | error | success | warning | info. Code Connect maps them one to one (Figma and AI).

4. Build steps​

  1. Keep this note the single source of the vocabulary. Every component note links here instead of redefining words.
  2. Appearance, Tone, SurfaceLevel enums in core, with the per-component fallback function (Appearance.supportedBy(component)).
  3. Each skin's note gets its alignment table (v1: Minimal Skin §3.3; the Later skins have theirs too).
  4. The sample app gets a "Language" screen: every appearance × tone for buttons and cards, switchable between skins. It's the visual proof of this note, and a strong episode.

Done when

  • Every component with variants uses appearance + tone from this vocabulary.
  • The Minimal skin's alignment table covers every appearance, tone and level.
  • The Language screen renders identically-structured grids under DebugSkin and MinimalSkin.

5. Edge cases​

CaseDecided behavior
A design system has an appearance Camouflage lacks (e.g. Polaris "monochrome plain")The skin maps it to the nearest Camouflage appearance, and the brand uses a component theme to fine-tune colors. The vocabulary grows only when two real designs need the same new appearance (an ADR).
A designer asks for "Primary button"That's rank, not appearance. Guidance in the Figma kit: "primary action = Solid" (most dialects), "secondary action = Soft or Outline", "tertiary action = Ghost".
Appearance unsupported by a component (a Link card)Falls back per §3.3, and debug builds log it.
New components (chips, badges, banners)Reuse Appearance and Tone. Don't invent component-specific variant names.