https://github.com/omamkaz/flet-wcolors
help the developer to get many colors without remembering their hex value, and I think it's helpful to get the color with names this will be clear in the code instead hex value!
https://github.com/omamkaz/flet-wcolors
Last synced: 8 months ago
JSON representation
help the developer to get many colors without remembering their hex value, and I think it's helpful to get the color with names this will be clear in the code instead hex value!
- Host: GitHub
- URL: https://github.com/omamkaz/flet-wcolors
- Owner: omamkaz
- License: mit
- Created: 2024-12-06T18:50:31.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-24T23:11:47.000Z (11 months ago)
- Last Synced: 2025-02-09T00:14:35.284Z (10 months ago)
- Language: Python
- Homepage:
- Size: 177 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-flet - FletWColors - just to help the developer get many colors without remembering their hex value. (Uncategorized / Uncategorized)
README
# Web Colors v1.1.0
just to help the developer to get many colors without remembering their hex value, and I think it's helpful to get the color with names this will be clear in the code instead hex value!
## Features
- Color Management: Simplifies access to colors by name.
- Code Clarity: Improves readability with named colors over hex values.
- Developer-Friendly: Eliminates the need to memorize hex codes.
## Installation
You can install Flet WColors using pip:
```bash
pip install git+https://github.com/omamkaz/flet-wcolors.git
```
## Usage
```python
import flet as ft
from flet_wcolors import WColors
def main(page: ft.Page):
page.title = "Web Colors Example 2"
page.vertical_alignment = ft.MainAxisAlignment.CENTER
page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
page.window.width = 800
page.window.height = 600
page.add(
ft.Container(
width=400,
height=400,
bgcolor=WColors.AMARANTH,
alignment=ft.alignment.center,
border_radius=8,
content=ft.Text(
value = "AMARANTH"
)
)
)
ft.app(target=main)
```
## Output of above code
