Emphasis and Colors

emphasis is the Marble property that controls the color of a visual control. It maps a boolean expression to a named color constant. Almost every visual control — badges, booleans, state indicators, chart bars, timeline entries — uses emphasis to communicate status, category, or urgency.

This is Marble’s equivalent of a color or variant prop in React component libraries (Material UI, Ant Design, Chakra UI), or a CSS utility class like bg-green-500 in Tailwind.


Syntax

Syntax

emphasis <ColorConstant> = [<boolean expression>];
 
-- Multiple rules — first match wins:
emphasis StateOpen      = [Objstate = "Open"];
emphasis StateReleased  = [Objstate = "Released"];
emphasis StateClosed    = [Objstate = "Closed"];
 
-- Always-on default (catch-all):
emphasis Complementary3 = [true];

Rules are evaluated top to bottom. Only the first matching rule is applied.


State Color Constants

Used for controls that communicate the state of a state machine entity. These are IFS-standard colors — using them consistently across pages means users learn the color-to-meaning mapping once and it applies everywhere in the application.

ConstantStandard ColorTypical meaning
StatePreliminaryDark BlueDraft, not yet started
StateOpenDark BlueActive and open
StatePlannedLight BlueScheduled for future
StateActiveYellowCurrently being worked on
StatePreparedYellowReady to proceed
StatePostedYellowSubmitted / posted
StateDefinedYellowDefined but not started
StateTransferredYellowHanded off
StateReleasedGreenApproved / released
StateCompletedGreenDone / finished
StateBlockedPinkBlocked / error
StateStoppedPinkHalted
StateClosedDark GreyClosed / archived
StateCancelledLight GreyCancelled

Map Objstate to These Constants

Every IFS entity with a state machine has an Objstate attribute. Map its values to these constants in your stateindicator and badge controls. This keeps color semantics consistent across the entire application — what green means in one screen, it means everywhere.


Complementary Color Constants

Used for categorical distinctions — grouping records by category, highlighting specific values, adding visual variety without state-machine semantics.

ConstantColor
Complementary1Pink
Complementary2Light Pink
Complementary3Blue
Complementary4Light Blue
Complementary5Teal / Dark
Complementary6Light Teal
Complementary7Purple
Complementary8Light Purple
Complementary9Orange
Complementary10Light Orange
……
Complementary18(pale variant)

Odd-numbered constants are the main colors; even-numbered are lighter variants of the preceding odd constant.

Verify Colors Against the Icon Library

The exact hex values can change between IFS versions. The authoritative source is the Icon Library at https://<your-server>/main/ifsapplications/web/iconlibrary. The base URL (<your-server>) must be replaced with your environment’s application server address.


Color Picker Constants

Used specifically with the color picker control to set the default selected color.

RangeUsage
Colorpicker0 – Colorpicker18Pre-defined palette entries for the color picker control
colorpicker CategoryColor {
   defaultemphasis Colorpicker4 = [true];   -- starts with the 5th palette color selected
}

Where emphasis Is Used

ControlWhat it colors
BadgeThe chip background/text color
BooleanThe true/false toggle color
State IndicatorThe state bubble background
Progress FieldProgress bar segment color
Bar ChartIndividual bars
Line ChartLine series
Funnel ChartFunnel segments
Pie ChartPie slices
TimelineEntry color
Tree DiagramNode color stripe
Box-matrixBox border top color
CalendarEvent chip color
Markdown TextText/background color

Examples

-- State indicator: Objstate → standard IFS state colors
stateindicator Objstate {
   emphasis StatePreliminary = [Objstate = "Preliminary"];
   emphasis StateOpen        = [Objstate = "Open"];
   emphasis StateReleased    = [Objstate = "Released"];
   emphasis StateCompleted   = [Objstate = "Completed"];
   emphasis StateClosed      = [Objstate = "Closed"];
   emphasis StateCancelled   = [Objstate = "Cancelled"];
}
 
-- Badge: map a category attribute to colors (A/B/C priority)
badge PriorityLevel {
   label = "Priority";
   emphasis Complementary1 = [PriorityLevel = "High"];
   emphasis Complementary3 = [PriorityLevel = "Medium"];
   emphasis Complementary5 = [PriorityLevel = "Low"];
}
 
-- Boolean with semantic colors:
boolean IsActive {
   truelabel  = "Active";
   falselabel = "Inactive";
   emphasis StateReleased  = [IsActive = "TRUE"];
   emphasis StateCancelled = [IsActive = "FALSE"];
}
 
-- Catch-all default at the bottom:
badge RiskLevel {
   emphasis Complementary1  = [RiskLevel = "High"];
   emphasis Complementary9  = [RiskLevel = "Medium"];
   emphasis Complementary3  = [true];    -- default: blue for anything else
}

Patterns & Tips

First Match Wins — Put Specific Cases First

Place the most specific conditions at the top and use = [true] as the last rule for a fallback color. This is identical to how CSS cascade works — more specific rules earlier, default last.

No emphasis = Default Blue/Grey

If no emphasis is defined on a boolean or badge, true renders blue and false renders grey. For stateindicator, a neutral grey is used. Adding even one explicit emphasis rule opts the control out of this default.

Emphasis Colors Are Theme-Controlled

Color constants map to the active IFS theme’s palette. You cannot override specific colors with custom CSS without modifying the theme. After an IFS upgrade, re-verify colors against the Icon Library if a color looks wrong.

emphasis Is Not a Style Property on field

Standard field declarations do not support emphasis. To color a field’s value, wrap it in a badge or boolean control instead. If you need row-level coloring in a list, that requires field-level emphasis on a badge column.


See Also

  • Display Controls — badge, boolean, stateindicator use emphasis most heavily
  • Charts — chart controls use emphasis to color series
  • Data Views — timeline, calendar, tree diagram use emphasis for entry colors
  • Fields and LOV — standard fields do not support emphasis directly