Tonic UI
Getting StartedColor ModeColor StyleVersionsContributing
THEME
BordersBreakpointsColorsOutlinesPositionsSpacingSizesShadowsTypography
BUILDING BLOCKS
BoxControlBox
UTILITIES

Getting Started

Install Tonic UI and its peer dependencies.

Optionally, yoiu can create a theme object and pass it to the <ThemeProvider> component.

This step is not required if you are using the default theme.

You can extend the theme object to add custom styles, including colors, fonts, and more.

Add the theme to your application with the ThemeProvider, passing in the theme object as a prop.

Using components

Import components using named imports from @trendmicro/react-styled-ui, as shown below:

Recommended setup

Sometimes you may need to apply base CSS styles to your application. Tonic UI exports a CSSBaseline that is used to normalize styles for a wide range of elements, which is based on the normalize.css.

CSSBaseline is recommended to add at the root to ensure all components work correctly.