https://github.com/t-dynamos/materialshapes-python
Material shapes in pure python.
https://github.com/t-dynamos/materialshapes-python
kivy kivymd m3 material-ui
Last synced: 2 months ago
JSON representation
Material shapes in pure python.
- Host: GitHub
- URL: https://github.com/t-dynamos/materialshapes-python
- Owner: T-Dynamos
- License: mit
- Created: 2025-06-16T08:41:51.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-06-20T06:33:01.000Z (7 months ago)
- Last Synced: 2025-06-20T07:33:42.984Z (7 months ago)
- Topics: kivy, kivymd, m3, material-ui
- Language: Python
- Homepage: https://m3.material.io/styles/shape/overview-principles
- Size: 588 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# materialshapes-python
A complete Python port of the official Material Design 3 shape system from Android. It includes rounded polygon generation, shape morphing, and smooth transitions based on Google's original Java source.
Uses pycairo for 2D graphics rendering. Can be used with Python GUI libraries. A Kivy widget is already included.
[Material Design Shape System](https://m3.material.io/styles/shape/overview-principles)
## Docs
There is no separate documentation yet.
The examples serve as the documentation and cover all major features.
Check them out to understand usage and integration.
## Install
You can easily install it from pip by executing:
```console
pip3 install materialshapes --upgrade
```
## Examples
File: `kivy.py`
Run using:
```
python3 -m examples.kivy
```
https://github.com/user-attachments/assets/31c2ae03-9be8-4a34-b95d-b7e7219773b1
File: `loading_indicator.py`
Run using:
```
python3 -m examples.loading_indicator
```
https://github.com/user-attachments/assets/c52553f1-c4f0-4af1-8360-f72acfd78949