Themed components automatically adapt their colors based on the current theme (light or dark mode). They use theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/marcosfabricio3/simple-manager-mobile/llms.txt
Use this file to discover all available pages before exploring further.
useThemeColor hook to select appropriate colors.
ThemedText
A text component that automatically applies theme-aware colors and supports multiple typography variants.Props
Typography variant to apply:
default: 16px font size, 24px line heighttitle: 32px bold font, 32px line heightdefaultSemiBold: 16px semi-bold font, 24px line heightsubtitle: 20px bold fontlink: 16px font with blue color (#0a7ea4), 30px line height
Custom color to use in light mode. Overrides the default theme text color.
Custom color to use in dark mode. Overrides the default theme text color.
TypeScript Interface
Usage Examples
ThemedView
A view container component that automatically applies theme-aware background colors.Props
Custom background color to use in light mode. Overrides the default theme background color.
Custom background color to use in dark mode. Overrides the default theme background color.
TypeScript Interface
Usage Examples
How Theme Colors Work
Both components use theuseThemeColor hook internally, which:
- Detects the current color scheme (light or dark)
- Returns the appropriate color from the theme configuration
- Allows overriding with custom
lightColoranddarkColorprops
@/constants/theme.