feat(MattiUI): Upgrade to Material Design 3 with full Jetpack Compose-aligned component library#2
Draft
Copilot wants to merge 3 commits into
Draft
feat(MattiUI): Upgrade to Material Design 3 with full Jetpack Compose-aligned component library#2Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
…e project showcase Co-authored-by: techguy0711 <32556867+techguy0711@users.noreply.github.com> Agent-Logs-Url: https://github.com/techguy0711/MattiUI/sessions/a5b903bf-84ac-4dd8-aa23-6dac7867ea90
… fix chip padding logic Co-authored-by: techguy0711 <32556867+techguy0711@users.noreply.github.com> Agent-Logs-Url: https://github.com/techguy0711/MattiUI/sessions/a5b903bf-84ac-4dd8-aa23-6dac7867ea90
Copilot
AI
changed the title
[WIP] Update repository to use latest material design with SwiftUI previews
feat(MattiUI): Upgrade to Material Design 3 with full Jetpack Compose-aligned component library
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MattiUI had a small set of rough M2-era components with no theming system. This PR introduces a complete Material Design 3 component library with an environment-based theme, using Jetpack Compose M3 naming conventions, plus a fully rewritten sample project showcasing all components via SwiftUI previews.
Theme System (
Sources/MattiUI/Theme/)MaterialColorScheme— 30 M3 color roles, baseline light/dark purple palettes, publicColor(m3hex:)extensionMaterialTypography— full type scale (displayLarge→labelSmall) with font, line-height, and letter-spacingMaterialShapes— shape scale (extraSmall4pt →full50pt)MaterialTheme— environment-injected via.materialTheme()/@Environment(\.materialTheme)New Components (Jetpack Compose M3 naming)
FilledButton,OutlinedButton,TextButton,ElevatedButton,FilledTonalButtonFloatingActionButton,SmallFloatingActionButton,LargeFloatingActionButton,ExtendedFloatingActionButtonElevatedCard,FilledCard,OutlinedCardAssistChip,FilterChip,InputChip,SuggestionChipFilledTextField,OutlinedTextField(floating label, icons, error state)MaterialSwitch(thumb icon + spring animation),MaterialCheckbox,MaterialRadioButton,MaterialRadioGroupLinearProgressIndicator,CircularProgressIndicator(determinate + indeterminate)NavigationBar+NavigationBarItem(M3 active indicator pill)TopAppBar,CenterAlignedTopAppBar,MediumTopAppBar,LargeTopAppBarAlertDialog,Badge,BadgedBox,MaterialDivider,Snackbar+.snackbar(data:onAction:)modifierSample Project
ContentView.swiftreplaced with a 4-tab showcase app (NavigationBar-driven: Buttons, Cards & Chips, Inputs, Misc) demonstrating every component with livePreviewProviders per section.Backward Compatibility
All original components (
MaterialButton,Card,MaterialToggle,MaterialDateTimePicker,Rating,ContainerWithFloatingButton) are untouched.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.