Accessibility

Smooth UI is an accessibility first library, which follows all WAI-ARIA practices. All components are rigourously following the specification and implement all best practices in order to make your application usable by everyone.

WAI-ARIA

Thanks to Reakit, all components follow WAI-ARIA practices. Some examples:

  • Alert has the role alert
  • Button click is triggered when space key is pressed when focused
  • Input automatically adds aria-labelledby when a label is specified
  • ...

Transitions

Reduce motion preference

All components implement reduced motion media query, it means they respect users' settings.

A utility called transition is available to implement your own accessible transitions:

Turn off all transitions

You can also choose to turn off all transitions by setting transitionEnabled to false in the theme. See theming guide.

Font size

All components are implemented using rem unit. They adapt base font size defined by the user in the browser. To know more about rem vs px, you can read this article.

You can also use xstyled transformers to automatically convert rem to px in all your styles.

Font family

Smooth UI doesn't come with any font, it uses the default font of the user operating system. Usually operating systems are comfortable and chosen by the user. It is also faster, no font is loaded.

To know more about system font stack, you can read this article.