Learn the Advanced

Learn the theme, loading, notice, and animation of Yamada UI.

This guide will help you understand the concepts of Yamada UI. We recommend reading this guide before you start developing with Yamada UI.

Theme

Yamada UI has the same concept as other UI libraries, which is theme.

Theme is an object that can be changed and has colors, spaces, font sizes, and many other tokens defined.

Breakpoints and color modes used in applications can also be easily changed.

Also, theme switching that is not implemented in other UI libraries is supported.

The current scheme is "base"

PrimarySecondaryPrimarySecondary

Layer Styles

Layer styles are tokens used to reuse visual styles across the project.

Text Styles

Text styles are tokens used to reuse text styles across the project.

Mono

Loading

Yamada UI supports loading animations needed for applications.

To execute the loading animation, use useLoading. useLoading returns instances of screen, page, and background. The instances include several methods.

  • start: Start the loading animation.
  • update: Update the loading animation.
  • finish: Finish the loading animation.
  • force: Force update the loading animation.

Use useAsyncCallback

When executing asynchronous callbacks in applications, useAsyncCallback is useful to indicate whether a button or other elements are loading.

screen and page can also be executed together.

Notice

Yamada UI supports notices needed for applications.

To display the notice, use useNotice. useNotice returns an instance that displays and controls the notice.

Animation

Yamada UI provides components specialized in CSS animations and animations.

CSS Animation

@keyframes to apply intermediate states of animations, use _keyframes.

Box

Also, you can apply common keyframes throughout your application by using theme keyframes. Set the value to animationName or _keyframes.

Box

Motion

Yamada UI provides a convenient component that extends the Yamada UI Style Props to Motion.

Motion supports gesture animations.

  • whileHover: The animation executed when the pointer is moved over the component.
  • whileTap: The animation executed when the pointer is clicked or tapped on the component.
  • whileFocus: The animation executed when the component is focused.
Click me!

Congratulations!

Congratulations!🎉

This means you've become a Wonderful Yamada🥳

Learn more

Want to learn more about Yamada UI?😎

Learn the Theme

Yamada UI's theme is customizable and ensures consistency in the application's design.

Explore the Components

Yamada UI provides over 130 flexible components. All components support animations and dark mode.

Learn the Styling

All components are designed to be styled using props.

Explore the Source Code

Yamada UI's package and documentation site are open source. If you like Yamada UI, please star it.