Skip to main content Skip to docs navigation

Form Check

Checkbox and radio button controls that allow users to select one or multiple options from a set of choices.

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 form check components. These tokens ensure visual coherence while enabling flexible theme customization and brand adaptation.

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 form components.
  • Semantic tokens that affect the whole application.
  • Base tokens that affect the whole application.

Color

state:
idle
Component TokenBase Token
color.form-input.idle.bg-regular {color.context.default.bg-main}
color.form-input.idle.border {color.context.default.border-main}
color.form-input.idle.fg-active {color.context.default.fg-main}
color.form-input.idle.help {color.context.default.fg-main}
color.context.primary.base-color {color.base.context.light.primary.base-color}
color.context.primary.contrast-color {color.base.context.light.primary.contrast-color}

Typography

Component TokenBase Token
font.form-input.floating-label {font.text.xsmall.normal}
font.form-input.floating-text {font.text.medium.normal}
font.assist.medium {font.text.medium.normal}

Sizing

Component TokenBase Token
size.icon.glyph.small {size.unit.20}
size.icon.glyph.medium {size.unit.24}
size.icon.glyph.xsmall {size.unit.16}
size.form-input.medium-icon {size.unit.20}
size.form-input.small-icon {size.unit.16}
size.form-input.large-icon {size.unit.24}

Spacing

Component TokenBase Token
space.form-input.medium-gap {space.unit.12}
space.form-input.large-gap {space.unit.16}
space.form-input.small-gap {space.unit.8}
space.unit.8 {dimension.base.8}

Border Width

Component TokenBase Token
borderWidth.form-input.regular {borderWidth.context.medium}

Border Radius

Component TokenBase Token
borderRadius.context.xsmall {dimension.base.2}

Asset

Component TokenToken Value
icon.form-input.feedback-valid <svg width='24' height='24' viewBox='0 0 24 24' fill='currentcolor' xmlns='http://www.w3.org/2000/svg'><path d='M12 22C8.40625 22 5.125 20.125 3.32812 17C1.53125 13.9141 1.53125 10.125 3.32812 7C5.125 3.91406 8.40625 2 12 2C15.5547 2 18.8359 3.91406 20.6328 7C22.4297 10.125 22.4297 13.9141 20.6328 17C18.8359 20.125 15.5547 22 12 22ZM16.4141 10.1641H16.375C16.7656 9.8125 16.7656 9.22656 16.375 8.83594C16.0234 8.48438 15.4375 8.48438 15.0859 8.83594L10.75 13.2109L8.91406 11.375C8.52344 10.9844 7.9375 10.9844 7.58594 11.375C7.19531 11.7266 7.19531 12.3125 7.58594 12.6641L10.0859 15.1641C10.4375 15.5547 11.0234 15.5547 11.4141 15.1641L16.4141 10.1641Z' fill='currentcolor'/></svg>
icon.form-input.feedback-invalid <svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='currentcolor' class='icon-exclamation-circle-solid' viewBox='0 0 24 24'><path d='M12 22C8.40625 22 5.125 20.125 3.32812 17C1.53125 13.9141 1.53125 10.125 3.32812 7C5.125 3.91406 8.40625 2 12 2C15.5547 2 18.8359 3.91406 20.6328 7C22.4297 10.125 22.4297 13.9141 20.6328 17C18.8359 20.125 15.5547 22 12 22ZM12 7C11.4531 7 11.0625 7.42969 11.0625 7.9375V12.3125C11.0625 12.8594 11.4531 13.25 12 13.25C12.5078 13.25 12.9375 12.8594 12.9375 12.3125V7.9375C12.9375 7.42969 12.5078 7 12 7ZM10.75 15.75C10.75 16.4531 11.2969 17 12 17C12.6641 17 13.25 16.4531 13.25 15.75C13.25 15.0859 12.6641 14.5 12 14.5C11.2969 14.5 10.75 15.0859 10.75 15.75Z'/></svg>