Skip to content

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!

License

Notifications You must be signed in to change notification settings

omamkaz/flet-wcolors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

pip install git+https://github.com/omamkaz/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

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

Languages