Framework: UI Style Mapping Framework

Purpose

To provide a structured system for styling UI elements (components, actions, states) by mapping them into consistent visual weight categories — ensuring scalability and brand alignment.


Style Mapping Model

Element TypeStyle TierDefinitionUsage ExampleNotes
ButtonsPrimaryHigh-visibility action (1 per screen)“Book Demo,” “Save Project”Always high contrast, filled style
 SecondarySupportive actions“Cancel,” “Learn More”Outlined/ghost buttons, lower emphasis
 TertiaryInline, low-priority actions“Edit,” “More Options”Icon-only, text links
Form FieldsDefaultStandard inputsName, email fieldsNeutral border + placeholder
 HighlightedFocus/active stateEmail field when user typesAccent border, subtle glow
 ErrorInvalid inputWrong email formatRed border + inline error message
Cards/BlocksPrimaryCore content blocksPricing cards, feature highlightsUse stronger background + shadow
 SecondarySupporting infoNotifications, side blocksLight outline or subtle background
Text StylesHeadingPrimary headersH1/H2 sectionsUse font-heading tokens
 BodyMain copyParagraphs, form instructionsBase font tokens
 HelperSecondary/annotationFootnotes, hintsSmall, muted tone
Alerts & FeedbackSuccessConfirmation messages“Project saved successfully”Green tone + check icon
 ErrorCritical issues“Payment failed”Red tone + alert icon
 WarningNon-blocking risks“Unsaved changes”Yellow tone + icon
 InfoNeutral updates“New version available”Blue tone + info icon

Implementation Rules

  1. One Primary Action per screen — avoid multiple competing CTAs.
  2. Style tiers must cascade — never use primary button + primary card together without spacing hierarchy.
  3. Use tokens from Visual Token Reference Sheet (Doc 4.1) for all colors/spacing.
  4. Accessibility check — contrast ratios must meet WCAG AA.
  5. Consistency across platforms — mobile, web, and dashboard must use same mapping.

Example Mapping – SaaS Dashboard Screen

  • Primary Button: “Create Project” (blue filled)
  • Secondary Button: “Cancel” (outline grey)
  • Card (Primary): Active projects (white bg, shadow)
  • Card (Secondary): Recent activity (light bg, no shadow)
  • Alert: “Project saved successfully” (green success banner)

Usage Notes

  • Apply during wireframe → UI transition.
  • Keep style mapping documented in Figma component library.
  • Review in Design QA (EPIC 6) for consistency.