Skip to main content

The simplicity of FastHTML with the power of Tailwind

Project description

MonsterUI

Combine the simplicity of FastHTML with the power of TailwindCSS

Why

Because UI is too complex and too aggravating, people don't want to need to become a CSS expert to make professional-looking websites.

Installation

To install this library, uses

pip install MonsterUI

Getting Started

Go to the MonsterUI Getting Started Page. It is the #1 best way to learn to get started.

TLDR

Run python file.py on this to start:

from fasthtml.common import *
from monsterui.all import *

# Choose a theme color (blue, green, red, etc)
hdrs = Theme.blue.headers()

# Create your app with the theme
app, rt = fast_app(hdrs=hdrs)

@rt
def index():
    socials = (('github','https://github.com/AnswerDotAI/MonsterUI'),
               ('twitter','https://twitter.com/isaac_flath/'),
               ('linkedin','https://www.linkedin.com/in/isaacflath/'))
    return Titled("Your First App",
        Card(
            H1("Welcome!"),
            P("Your first MonsterUI app", cls=TextPresets.muted_sm),
            P("I'm excited to see what you build with MonsterUI!"),
            footer=DivLAligned(*[UkIconLink(icon,href=url) for icon,url in socials])))

serve()

LLM context files

Using LLMs for development is a best practice way to get started and explore. While LLMs cannot code for you, they can be helpful assistants. You must check, refactor, test, and vet any code any LLM generates for you - but they are helpful productivity tools. Take a look inside the llms.txt file to see links to particularly useful context files!

  • llms.txt: Links to what is included
  • llms-ctx.txt: MonsterUI Documentation Pages
  • API list: API list for MonsterUI (included in llms-ctx.txt)

In addition you can add /md (for markdown) to a url to get a markdown representation and /rmd for rendered markdown representation (nice for looking to see what would be put into context.

Step by Step

To get started, check out:

  1. Start by importing the modules as follows:
from fasthtml.common import *
from monsterui.all import *
  1. Instantiate the app with the MonsterUI headers
app = FastHTML(hdrs=Theme.blue.headers())

# Alternatively, using the fast_app method
app, rt = fast_app(hdrs=Theme.slate.headers())

The color option can be any of the theme options available out of the box

From here, you can explore the API Reference & examples to see how to implement the components. You can also check out these demo videos in the documentation page

More resources and improvements to the documentation will be added here soon!

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

monsterui-1.0.2.tar.gz (31.3 kB view details)

Uploaded Source

Built Distribution

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

MonsterUI-1.0.2-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file monsterui-1.0.2.tar.gz.

File metadata

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

File hashes

Hashes for monsterui-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1dbd2c91a77c255cd694e2f55013e2e3bad372aa80234a32838f86683a7842c9
MD5 33ea90a448b82860d6fa592a8ff12331
BLAKE2b-256 7bef20d68cdcbd8134a69e7dc9188f103ca79f7b05b8ec0504d6314b1da36b49

See more details on using hashes here.

File details

Details for the file MonsterUI-1.0.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for MonsterUI-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9f86dbbf0af995f6ea2c8db74caebacfcc61e9aca579aaaca29941739db9791e
MD5 e3c191d0dc600da8ff75419368439381
BLAKE2b-256 d539834cb0a3a8d8dcbf321e7167fb0fb6d7179ba775f918d8a8f73a86bc4528

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