diff --git a/packages/react-docs/pages/getting-started/usage/index.page.mdx b/packages/react-docs/pages/getting-started/usage/index.page.mdx index 8c7e564996..bb23f8d36c 100644 --- a/packages/react-docs/pages/getting-started/usage/index.page.mdx +++ b/packages/react-docs/pages/getting-started/usage/index.page.mdx @@ -12,10 +12,10 @@ Go to the root of your application and do the following: import React from 'react'; import { Box, - TonicProvider, - colorStyle, // The default color style object - createTheme, // The function for theme customization - theme, // The default theme configuration + TonicProvider, // Provides theme and context for Tonic UI components + colorStyle, // Default color style object + createTheme, // For theme customization (introduced in v2.5.0) + theme, // Default theme configuration } from '@tonic-ui/react'; const customTheme = createTheme(theme, { @@ -62,14 +62,14 @@ import { Global, css } from '@emotion/react'; import React from 'react'; import { Box, - PortalManager, // allows you to create and manage portals in the application - ToastManager, // allows you to create and manage toasts in the application - TonicProvider, - colorStyle, - createTheme, - theme, - useColorMode, - useTheme, + PortalManager, // Manages portals in the application + ToastManager, // Manages toasts in the application + TonicProvider, // Provides theme and context for Tonic UI components + colorStyle, // Default color style object + createTheme, // For theme customization (introduced in v2.5.0) + theme, // Default theme configuration + useColorMode, // Hook to manage color mode (e.g., light/dark) + useTheme, // Hook to access the theme object } from '@tonic-ui/react'; const customTheme = createTheme(theme, { @@ -202,7 +202,9 @@ function Layout(props) { Sometimes you may need to apply base CSS styles to your application. Tonic UI provides an optional `CSSBaseline` component that fixes some inconsistencies across browsers and devices while providing slightly more opinionated resets to common HTML elements. `CSSBaseline` is recommended to add at the root to ensure all components work correctly. ```jsx disabled - + ``` @@ -296,14 +298,9 @@ const customColorStyle = merge(colorStyle, { ```jsx disabled {children} @@ -349,7 +346,9 @@ const customTheme = createTheme(theme, { #### 2. Setting up the provider ```jsx - + {children} ```