Skip to main content Skip to docs navigation

Floating Button

Persistent action buttons that remain visible and accessible, typically positioned in a fixed location as users scroll through content.

This documentation is a work in progress and may contain incomplete or outdated information. If you have any feedback or suggestions, please open an issue on GitHub.

Tokens

Standardized design system values that define consistent visual properties across floating button components. These tokens ensure visual coherence while enabling flexible theme customization and brand adaptation for elevated button styling.

Theming Tokens

Design tokens organized by category with color-coded labels indicating their scope and impact level. Each token includes detailed specifications with values, usage guidelines, and customization options.

Legend:
  • Granular tokens that affect only this component.
  • Granular tokens that affect other components.
  • Semantic tokens that affect the whole application.
  • Base tokens that affect the whole application.

Color

Color tokens are listed for the default context variant only. Other context variants follow the same token pattern with variant-specific color values.

context:
default
Component TokenBase Token
color.button.default.fg-idle {color.context.default.fg-idle}
color.button.default.bg-idle {color.context.default.bg-idle}
color.button.default.fg-hover {color.context.default.fg-hover}
color.button.default.bg-hover {color.context.default.bg-hover}
color.button.default.fg-press {color.context.default.fg-press}
color.button.default.bg-press {color.context.default.bg-press}
color.button.default.fg-disabled {color.context.default.fg-disabled}
color.button.default.bg-disabled {color.context.default.bg-disabled}

Typography

Component TokenValue
font.text.small.strong fontFamily: {typography.fontFamily.text}, fontWeight: {typography.fontWeight.text.strong}, lineHeight: {typography.lineHeight.text.small}, fontSize: {typography.fontSize.text.small}, letterSpacing: {typography.letterSpacing.base.zero}, paragraphSpacing: {typography.paragraphSpacing.base.zero}, textCase: {typography.textCase.base.none}, textDecoration: {typography.textDecoration.base.none}

Sizing

Component TokenBase Token
size.icon.glyph.medium {size.unit.24}
size.icon.glyph.small {size.unit.20}

Spacing

Component TokenBase Token
space.context.medium {size.unit.16}
space.context.small {size.unit.12}
space.context.xsmall {size.unit.8}
space.context.2xsmall {size.unit.4}

Border Radius

Component TokenBase Token
borderRadius.context.round-56 {size.unit.28}
borderRadius.context.round-48 {size.unit.24}
borderRadius.context.round-40 {size.unit.20}

Box Shadow

Component TokenValue
shadow.elevation.default.30 color: {color.shadow.default}, type: dropShadow, x: {dimension.base.0}, y: {dimension.base.5}, blur: {dimension.base.20}, spread: {dimension.base.n5}} {color: {color.shadow.default}, type: dropShadow, x: {dimension.base.0}, y: {dimension.base.d25}, blur: {dimension.base.10}, spread: {dimension.base.nd25}