Skip to main content

Appearance and tone

Components do not take colors. Two small vocabularies say what you mean; the skin decides what it looks like.

Appearance: visual weight​

AppearanceUse it for
solidThe primary action on a screen.
softA secondary action with a tinted background.
raisedAn action that should lift off a busy surface.
outlineA secondary action with a border.
ghostA low-emphasis action with no container.
linkAn action inside text.

null uses the theme's default for that component.

Tone: color family​

ToneMeaning
defaultNeutral or brand.
errorDestructive or failed.
successCompleted.
warningNeeds attention.
infoInformational.

Together​

CamoButton("Save", onClick = save) // brand, default weight
CamoButton("Delete", onClick = delete, appearance = Appearance.Outline, tone = Tone.Error)
CamoButton("Cancel", onClick = cancel, appearance = Appearance.Ghost)

The destructive button is red in every skin and every theme, in dark mode too, and always has enough contrast, because you named the meaning, not a hex value.