Anatomy

  1. Container: 56px tall (size-control-xl), radius-lg corners, shadow-2.
  2. Icon: add, 24px.
  3. Label, extended only: "Add", 16px at weight 600.
  4. State layer: the label colour laid over the fill on hover and press.

Measurements

From the design’s stylesheet, each design token with the value kanso-ui gives it in light.

ClassPropertyValue
k-fabheight56px (size-control-xl)
padding0 20px (space-xl) 0 16px (space-lg)
border0
border-radius16px (radius-lg)
box-shadowshadow-2
gap8px (space-sm)
font600 16px/20px font-plain
k-fab--iconwidth56px (size-control-xl)
padding0

Tokens used

Design tokenIn kanso-uiLightDark
ink--kui-color-ink#1a1a1a#ececec
on-ink--kui-color-on-ink#fafafa#121212
accent--kui-color-accent#1a1a1a#ececec
on-accent--kui-color-on-accent#fafafa#121212
shadow-2--kui-shadow-kanso-20px 2px 6px 0px rgba(0, 0, 0, 0.08), 0px 8px 20px 0px rgba(0, 0, 0, 0.1)0px 4px 16px 0px rgba(0, 0, 0, 0.6)
radius-lg--kui-radius-kanso-lg16px16px
radius-md--kui-radius-kanso-md12px12px
size-control-xl--kui-sizing-kanso-control-xl56px56px
size-icon-lg--kui-sizing-kanso-icon-lg24px24px
space-sm--kui-spacing-kanso-sm8px8px
space-lg--kui-spacing-kanso-lg16px16px
space-xl--kui-spacing-kanso-xl20px20px
state-hover--kui-state-layer-opacity-kanso-hover0.080.08
state-pressed--kui-state-layer-opacity-kanso-pressed0.120.12
focus-ring--kui-color-focus-ring#1a1a1a#ececec
font-plain--kui-typography-font-family-plain'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif