The TecNM Control Escolar app uses Material Design 3 (Material You) for its design system, providing adaptive theming, dynamic colors, and modern UI components.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Jesus-Puertos/AppTECNMControlEscolar/llms.txt
Use this file to discover all available pages before exploring further.
Color Palette
The app defines a custom color palette that includes TecNM branding colors:Color.kt
Brand Colors
TecBlue
#1B396A - Official TecNM blue for primary branding
TecGold
#B8860B - Official TecNM gold for accents and highlights
Material 3 Palette
The app includes Material 3’s default color palette for light and dark themes:| Color | Light (40) | Dark (80) | Usage |
|---|---|---|---|
| Purple | #6650a4 | #D0BCFF | Primary theme color |
| Purple Grey | #625b71 | #CCC2DC | Secondary theme color |
| Pink | #7D5260 | #EFB8C8 | Tertiary theme color |
The number suffix (40/80) refers to the tone value in Material 3’s tonal palette system. 40-tone colors are used for light themes, while 80-tone colors are used for dark themes.
Theme Configuration
The main theme is defined inTheme.kt with support for light/dark modes and dynamic colors:
Theme.kt
Color Schemes
Light Color Scheme
Light Color Scheme
Used when the system is in light mode or when dark theme is disabled:
- Primary: Purple40 (#6650a4)
- Secondary: PurpleGrey40 (#625b71)
- Tertiary: Pink40 (#7D5260)
Dark Color Scheme
Dark Color Scheme
Used when the system is in dark mode:
- Primary: Purple80 (#D0BCFF)
- Secondary: PurpleGrey80 (#CCC2DC)
- Tertiary: Pink80 (#EFB8C8)
Dynamic Color Scheme
Dynamic Color Scheme
On Android 12+ devices with
dynamicColor = true, the app adapts to the user’s wallpaper colors using Material You’s dynamic theming.Theme Parameters
Controls whether to use dark or light color scheme. Defaults to following system preference.
Enables Material You dynamic colors on Android 12+ devices. When enabled, colors adapt to the user’s wallpaper.
The app content to be themed
Typography
The app uses Material 3’s default typography system with customizable text styles:Type.kt
Typography Scale
Material 3 provides a comprehensive typography scale:| Style | Size | Weight | Usage |
|---|---|---|---|
| displayLarge | 57sp | Regular | Large hero text |
| displayMedium | 45sp | Regular | Medium hero text |
| displaySmall | 36sp | Regular | Small hero text |
| headlineLarge | 32sp | Regular | Large headings |
| headlineMedium | 28sp | Regular | Medium headings |
| headlineSmall | 24sp | Regular | Small headings |
| titleLarge | 22sp | Regular | Large titles |
| titleMedium | 16sp | Medium | Medium titles |
| titleSmall | 14sp | Medium | Small titles |
| bodyLarge | 16sp | Regular | Large body text (customized) |
| bodyMedium | 14sp | Regular | Medium body text |
| bodySmall | 12sp | Regular | Small body text |
| labelLarge | 14sp | Medium | Large labels |
| labelMedium | 12sp | Medium | Medium labels |
| labelSmall | 11sp | Medium | Small labels |
Theme Usage
The theme is applied at the root of the app inMainActivity:
MainActivity.kt
Accessing Theme Colors
Access theme colors in composables usingMaterialTheme.colorScheme:
Accessing Typography
Access typography styles usingMaterialTheme.typography:
Material Design 3 Features
Dynamic Color
Adapts to user’s wallpaper on Android 12+ for personalized theming
Tonal Palettes
Uses tonal color system for consistent, accessible color relationships
Dark Theme
Automatic dark mode support with proper contrast and readability
Accessibility
Built-in WCAG contrast ratios for all color combinations
Customization Guide
Adding Custom Colors
To add new brand colors:Customizing Typography
To add custom fonts:Best Practices
Do
Don't
Future Enhancements
- Apply TecBlue and TecGold as primary brand colors in color schemes
- Add custom font family matching TecNM branding
- Implement color variants for different states (pressed, disabled, etc.)
- Add semantic color tokens for specific use cases (success, error, warning)
