SwiftUI Material Theming

screenshot of SwiftUI Material Theming
material-ui

This repository contains a sample implementation of Material Theming in SwiftUI. It includes custom structs for typography, colors, shapes, and spacing, as well as a ThemeManager and custom ViewModifiers for easy implementation in your own projects

Overview

SwiftUI Material Theming is an innovative solution that allows developers to easily implement and customize Material Design principles within their SwiftUI projects. This repository not only provides a comprehensive sample implementation but also emphasizes the significance of maintaining a uniform and visually appealing user experience across applications. With built-in structures for typography, colors, shapes, and more, this toolkit serves as a valuable resource for both new and seasoned developers looking to enhance their app's design.

Beyond just aesthetics, the repository features a robust ThemeManager and custom ViewModifiers that streamline the theme application process across different views. This means you can effortlessly maintain consistency throughout your app while focusing on your main development goals. Whether you're building a new application or looking to refine an existing one, SwiftUI Material Theming offers practical tools to achieve a polished look.

Features

  • Custom Structs: Predefined structures for typography, colors, shapes, and spacing simplify the implementation of design elements.
  • ThemeManager: A dedicated manager that makes it easy to apply and maintain your theme throughout the application using environment objects.
  • Custom ViewModifiers: Enhance the appearance of your views by applying theme styles with convenient custom modifiers.
  • Easy Customization: Modify color, typography, and shape values to tailor the look and feel of your app to match your brand identity.
  • Real-World App Example: Includes a sample app that showcases how to effectively implement the theme in a practical scenario.
  • MIT License: Freely use and modify the code as needed, ensuring flexibility in applications.
  • Community Contributions: Open for suggestions and improvements, fostering a collaborative development environment.
material-ui
Material UI

material-ui adds classes to Tailwind CSS for all common UI components. Classes like btn, card, etc. This allows us to focus on important things instead of making basic elements for every project.