Coder Social home page Coder Social logo

kashif-e / swiftui-material-theming Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 1.0 16 KB

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

Swift 100.00%
android androiddeveloper design-system ios kotlin-multiplatform material-ui swift swiftui swiftui-demo swiftui-example

swiftui-material-theming's Introduction

SwiftUI Material Theming

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.

ezgif-4-ad00a3359e

Usage

To use this theme in your own project, you can copy the structs and classes from the Theme folder and use them in your own code.

You can create a ThemeManager object and use the environmentObject to make it available throughout your views.

You can also use the custom ViewModifiers to apply the theme styles to your views, making it easy to maintain consistency throughout your app.

Customization

You can easily customize the theme to fit your brand by modifying the color, typography, and shape values in the structs. You can also add custom parameters to the structs if needed.

App

The app included in this repository demonstrates how to use the theme in a real-world scenario. You can use it as a reference for implementing the theme in your own projects.

License

This repository is under the MIT License. Feel free to use and modify the code as needed for your own projects.

Contributing

If you find any bugs or have suggestions for improvements, please feel free to open an issue or submit a pull request.

Thanks for checking out this repository!

swiftui-material-theming's People

Contributors

kashif-e avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

fhchina

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.