primary
Returns the value of the
primary record component.- Returns:
- the value of the
primaryrecord component
page - the app background behind the islandssurface - card / panel fillborder - hairline strokes and separatorstext - primary foregroundmuted - secondary / caption foregroundprimary - brand accent (active nav, links, primary buttons)primarySoft - the tint painted behind the active/selected accentnull keeps the renderer's default for that slot, so an app can
override just primary and inherit the rest of the neutral scale. The
renderer (onec-ui-starter's Palette) merges a non-null value over
its built-in LIGHT/DARK constant, which is how the DivKit chrome
picks up brand colors.
The slots mirror the ones the issue calls out as the brandable minimum plus the
two that visibly carry the brand accent — primary (active/selected) and
primarySoft (its tint behind the active item).
border()border record component.static BrandPaletteempty()final booleanfinal inthashCode()booleanisEmpty()muted()muted record component.page()page record component.primary()primary record component.primarySoft record component.surface()surface record component.text()text record component.final StringtoString()BrandPalette record class.page - the value for the page record componentsurface - the value for the surface record componentborder - the value for the border record componenttext - the value for the text record componentmuted - the value for the muted record componentprimary - the value for the primary record componentprimarySoft - the value for the primarySoft record componentObjects::equals(Object,Object).page record component.page record componentsurface record component.surface record componentborder record component.border record componenttext record component.text record componentmuted record component.muted record componentprimary record component.primary record componentprimarySoft record component.primarySoft record component