Skip to content

osamalzabidi/flet-wcolors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Colors v1.1.2

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:

pip install git+https://github.com/osamalzabidi/flet-wcolors.git

Usage

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

Example 2

Contributing

Pull requests and suggestions are welcome! Open an issue first to discuss any major changes.

About

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!

Resources

License

Stars

Watchers

Forks

Contributors

Languages