Let's UI

State Calculator

Theme

Pick a resting colour, the label drawn on it and the tint its states mix in. A surface component tints with its own content colour; a filled one, with the colour opposite its label, so the label gains contrast on hover and press. See what each state resolves to and whether the label stays legible.

Live sample

Show state
  

States

Aa

rest

Aa

hover

Aa

pressed

Mix scale

Drag along the scale to see any amount of tint, and where the state layer sits on it.

hover pressed