Skip to main content

A modern, Tailwind CSS-based UI library for Python web frameworks

Project description

EidosUI 🎨

A modern, flexible Tailwind CSS-based UI library for Python web frameworks. Built for maximum developer flexibility while providing excellent defaults.

Abstractions

  • Themes: A Theme is a series of CSS variables. See theme/dark.css and theme/light.css for examples
  • Theme Switching is done in static/eidos-ui.js this is all AI generated and not looked at yet so probably bad
  • Styles are in styles.py where we define data classes based on the css variables defined in the themes. These are a collection of class strings.
  • components are fasttags that FT components by default. For example
def H1(*content, cls: str = typography_styles.h1, **kwargs) -> ft.H1:
    """Semantic H1 heading"""
    return ft.H1(*content, cls=cls, **kwargs)

def Mark(*content, cls: str = typography_styles.mark, **kwargs) -> ft.Mark:
    """Highlighted text"""
    return ft.Mark(*content, cls=cls, **kwargs)

def Small(*content, cls: str = typography_styles.small, **kwargs) -> ft.Small:
    """Small text"""
    return ft.Small(*content, cls=cls, **kwargs) 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eidosui-0.1.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eidosui-0.1.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file eidosui-0.1.0.tar.gz.

File metadata

  • Download URL: eidosui-0.1.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for eidosui-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b0c5463612baa3197e3fea801f1d105767c349347e7c342252e7111489f66fde
MD5 7ff8a7330baac54e8e17788cbae83393
BLAKE2b-256 d039b2e71586e2ff29f3464cb01fe938880eb4ea7e1df3386f183e44613b4b09

See more details on using hashes here.

File details

Details for the file eidosui-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: eidosui-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for eidosui-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2293d8df042935324c33acb24ba8594717231f813b1bbbeba2e7f578c96a6d59
MD5 7cabf436fa86fca6b6555b966e1b7c9f
BLAKE2b-256 f02f2dee38a5480905fd67804c2c3f7a2ebb03875c642e6a5fd646e104fa0764

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page